ARMOD SDK Documents
Search…
Android Native Calls Protocol API
NativeCallsProtocol defines protocol with methods you want to be called from managed.

DeviceNotSupoort

Current device is not support ARMOD
1
@Override
2
public void onDeviceNotSupport();
Copied!

RemoveLoadingOverlay

Loading ARExperience finished
1
@Override
2
public void onRemoveLoadingOverlay();
Copied!

UpdateLoadingProgress

Loading ARExperience asset progress
Param
Type
Description
progress
float
The progress value of float type
1
@Override
2
public void onUpdateLoadingProgress(float _progressValue);
Copied!

AddLoadingOverlay

Start loading ARExperience
1
@Override
2
public void onAddLoadingOverlay();
Copied!

ThrowException

The method will be executed if an exception occurs
Param
Type
Description
message
String
SDK error string
code
int
SDK error code
1
@Override
2
public void onThrowException(String _error,int _errorCode);
Copied!

NeedInstallARCoreService

When your device supports ARCore but you are installing the ARCore service, this method will be executed, prompting the user to install the ARCore service.
1
@Override
2
public void onNeedInstallARCoreService();
Copied!

OpenBuiltInBrowser

Open the URL in a custom browser
Param
Type
Description
url
String
URL of NSString type
1
@Override
2
public void onOpenBuiltInBrowser(String _url);
Copied!

SDKInitialized

After the AR algorithm is initialized, the method will be executed
1
@Override
2
public void onSdkInitialized();
Copied!

RecognitionStart(unavailable)

Start recognition
1
@Override
2
public void onRecognitionStart();
Copied!

RecognitionComplete(unavailable)

Recognized successfully
1
@Override
2
public void onRecognitionComplete();
Copied!

TryAcquireInformation

Get app information from ARExperience script
Param
Type
Description
opTag
String
The type of operation request initiated by AR Experience.
1
@Override
2
public void onTryAcquireInformation(String opTag, AndroidCallback androidCallback)
Copied!

PackageSizeMoreThanPresetSize

Detected that the ARExperience package is too large
Param
Type
Description
currentSize
float
Current package size
presetSize
float
Maximum downloadable package size
1
@Override
2
private void onPackageSizeMoreThanPresetSize(float currentSize,float presetSize)
Copied!

OnARMODLaunch

Execute when the AR-MOD SDK is start
1
@Override
2
public void onARMODLaunch()
Copied!

OnARMODExit

Execute when the AR-MOD SDK is closed
1
@Override
2
public void onARMODExit()
Copied!
Last modified 2mo ago