Interface IFlashlightListener

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IFlashlightListener
Callback interface used for notifications of flashlight/torch states and return code.
Author:
Christopher Mindus
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onFlashlight(IFlashlight flashlight, boolean isAvailable, boolean success)
    Notification of the flashback state and possible return code from the previous operation.
  • Method Details

    • onFlashlight

      void onFlashlight(IFlashlight flashlight, boolean isAvailable, boolean success)
      Notification of the flashback state and possible return code from the previous operation.
      Parameters:
      flashlight - The flashlight interface of the client session.
      isAvailable - Flag for flashlight availability.
      success - Success flag of the IFlashlight.getAsyncState() operation.