com.bear.common.sdk.ui.activities.main / IArActivity

IArActivity

interface IArActivity

Interface for implementing an augmented reality activity.

Properties

bearHandler

abstract val bearHandler: IBearHandler

The IBearHandler.

scanLineColor

abstract val scanLineColor: Int

The scan line color. White if not set.

scanTimeout

abstract val scanTimeout: Int

The scan timeout duration in seconds. Disabled if not set or set to 0.

Functions

inflateContentView

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.

openPlayer

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.

openWebView

abstract fun openWebView(url: String): Unit

Called when webview asset is clicked.

pauseArView

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.

resumeArView

abstract fun resumeArView(): Unit

Resume augmented reality view. This method can be called from a fragment.

showAlert

abstract fun showAlert(message: String): Unit
abstract fun showAlert(messageId: Int): Unit

Method for showing alert messages from SDK.

showArSceneWithoutTracking

abstract fun showArSceneWithoutTracking(markerId: Int): Unit

Display marker without tracking. This method can be called from a fragment.

Inheritors

ArActivity

abstract class ArActivity : AppCompatActivity, IArActivity

This activity provides augmented reality view. Implements IArActivity.