observe

fun observe(lifeCycleOwner: LifecycleOwner, inputTorchEvents: LiveData<Boolean>)

Registers a LiveData as source of incoming torch events that the view will react to by changing the drawable to torchOnDrawable or torchOffDrawable accordingly.