interface IFlashStatusHandler
This class provides ability to handle FlashStatus changes.
abstract val flashStatusObservingSubject: PublishSubject<FlashStatus>
RxJava2 PublishSubject, subscribing to which you will get FlashStatus changes events, as alternative to callbacks. It is safer to use CompositeDisposable for this. |
abstract fun addFlashListener(listener: FlashStatusListener): Boolean
Add listener for FlashStatus. removeFlashListener should be called when activity/fragment is destroyed. |
|
abstract fun disableFlash(): Unit
Disable flash. |
|
abstract fun enableFlash(): Unit
Enable flash. |
|
abstract fun isFlashEnabled(): Boolean
Get current flash status. |
|
abstract fun removeFlashListener(listener: FlashStatusListener): Boolean
Remove listener for FlashStatus. |
interface IBearHandler : IArStateObserver, IFlashStatusHandler
This class provides ability to handle BEAR SDK features. |