com.bear.common.sdk.listeners.scan / IArStateObserver

IArStateObserver

interface IArStateObserver

This class provides ability to handle ArState changes.

Properties

arStateObservingSubject

abstract val arStateObservingSubject: PublishSubject<ArStateChangeRegistrar>

RxJava2 PublishSubject, subscribing to which you will get ArState changes events, as alternative to callbacks. It is safer to use CompositeDisposable for this.

Functions

addArStateListener

abstract fun addArStateListener(listener: IArStateListener): Boolean

Add listener for ArState. removeArStateListener should be called when activity/fragment is destroyed.

getCurrentArState

abstract fun getCurrentArState(): ArState

Get current AR state.

removeArStateListener

abstract fun removeArStateListener(listener: IArStateListener): Boolean

Remove listener for ArState.

Inheritors

IBearHandler

interface IBearHandler : IArStateObserver, IFlashStatusHandler

This class provides ability to handle BEAR SDK features.