public static interface FlashlightController.FlashlightListener
Modifier and Type | Method and Description |
---|---|
void |
onFlashlightAvailabilityChanged(boolean available)
Called when there is a change in availability of the flashlight functionality
|
void |
onFlashlightChanged(boolean enabled)
Called when the flashlight was turned off or on.
|
void |
onFlashlightError()
Called when there is an error that turns the flashlight off.
|
void onFlashlightChanged(boolean enabled)
enabled
- true if the flashlight is currently turned on.void onFlashlightError()
void onFlashlightAvailabilityChanged(boolean available)
available
- true if the flashlight is currently available.