com.bear.common.sdk.ui.activities.main / ArActivity / addArViewInitListener

addArViewInitListener

open fun addArViewInitListener(listener: InitStatusListener): Unit

Overrides IArActivity.addArViewInitListener

Add listener for augmented reality view initialization. Black screen is displayed while initialization in progress. Override R.drawable.ar_splashscreen to display custom splashscreen during initialization. Callback for initialization completion will be called once after view created so this method should be called in ArActivity.onCreate. The listener will automatically be removed on initialization completion or after augmented reality view is destroyed.

Parameters

listener - the InitStatusListener.