interface IArActivity
Interface for implementing an augmented reality activity.
abstract val bearHandler: IBearHandler
The IBearHandler. |
|
abstract val scanLineColor: Int
The scan line color. White if not set. |
|
abstract val scanTimeout: Int
The scan timeout duration in seconds. Disabled if not set or set to 0. |
abstract fun inflateContentView(): Unit
This method will be called on BearCallback.onArViewInitialized. Make sure to inflate your view and add it by calling androidx.appcompat.app.AppCompatActivity.addContentView. |
|
abstract fun openPlayer(assetId: Int, timeStamp: Long): Unit
Called when video or audio asset is clicked. Opens video or audio player depending on asset type. |
|
abstract fun openWebView(url: String): Unit
Called when webview asset is clicked. |
|
abstract fun pauseArView(): Unit
Pause augmented reality view. This method can be called from a fragment. Warning: screen will become black because it will deinit camera. |
|
abstract fun resumeArView(): Unit
Resume augmented reality view. This method can be called from a fragment. |
|
abstract fun showAlert(message: String): Unit abstract fun showAlert(messageId: Int): Unit
Method for showing alert messages from SDK. |
|
abstract fun showArSceneWithoutTracking(markerId: Int): Unit
Display marker without tracking. This method can be called from a fragment. |
abstract class ArActivity : AppCompatActivity, IArActivity
This activity provides augmented reality view. Implements IArActivity. |