The com.bear.common.sdk.BearCallback provides 4 different callbacks for BEAR SDK:
- onArViewInitialized(): the augmented reality view has been initialized.
- onMarkerRecognized(int markerId, List
assetIds) : the marker is recognized and will be displayed in the augmented reality view. In this callback you can handle to display additional layout on the view or call a fragment. - onMarkerNotRecognized(): no marker found (depends on scan timeout configured). If called, beware of light conditions, network connection and correct license keys, else there is no marker in the scanned place.
- onAssetClicked(int assetId): user clicked on an asset
- onError(Throwable error): error while retrieving marker from backend.
The BearCallback can be registered from ArActivity using IBearHandler.registerBearCallback method. See example.