com.bear.common.sdk.listeners.flash / IFlashStatusHandler

IFlashStatusHandler

interface IFlashStatusHandler

This class provides ability to handle FlashStatus changes.

Properties

flashStatusObservingSubject

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.

Functions

addFlashListener

abstract fun addFlashListener(listener: FlashStatusListener): Boolean

Add listener for FlashStatus. removeFlashListener should be called when activity/fragment is destroyed.

disableFlash

abstract fun disableFlash(): Unit

Disable flash.

enableFlash

abstract fun enableFlash(): Unit

Enable flash.

isFlashEnabled

abstract fun isFlashEnabled(): Boolean

Get current flash status.

removeFlashListener

abstract fun removeFlashListener(listener: FlashStatusListener): Boolean

Remove listener for FlashStatus.

Inheritors

IBearHandler

interface IBearHandler : IArStateObserver, IFlashStatusHandler

This class provides ability to handle BEAR SDK features.