abstract class ArActivity : AppCompatActivity, IArActivity
This activity provides augmented reality view. Implements IArActivity.
ArActivity()
This activity provides augmented reality view. Implements IArActivity. |
val bearHandler: IBearHandler
The IBearHandler. |
|
open val scanLineColor: Int
The scan line color. White if not set. |
|
open val scanTimeout: Int
The scan timeout duration in seconds. Disabled if not set or set to 0. |
open fun onCreate(savedInstanceState: Bundle?): Unit
Called when the activity is starting. Initialize augmented reality view. |
|
open fun onDestroy(): Unit
Perform any final cleanup before activity is destroyed. |
|
open fun onPause(): Unit
This callback will stop scan if running. |
|
open fun onRequestPermissionsResult(requestCode: Int, permissions: Array<out String>, grantResults: IntArray): Unit |
|
open fun onStart(): Unit
This callback will trigger ArActivity.resumeArView. |
|
open fun onStop(): Unit
This callback will trigger ArActivity.pauseArView. |
|
open fun onWindowFocusChanged(hasFocus: Boolean): Unit |
|
fun openPlayer(assetId: Int, timeStamp: Long): Unit
Called when video or audio asset is clicked. Opens video or audio player depending on asset type. |
|
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. |
|
fun resumeArView(): Unit
Resume augmented reality view. This method can be called from a fragment. |
|
fun showArSceneWithoutTracking(markerId: Int): Unit
Display marker without tracking. This method can be called from a fragment. |
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 openWebView(url: String): Unit
Called when webview asset is clicked. |
|
abstract fun showAlert(message: String): Unit abstract fun showAlert(messageId: Int): Unit
Method for showing alert messages from SDK. |