Class WakeLockEvent


public class WakeLockEvent extends ClientEvent<WakeLockListener>
Event fired when a wake lock state changes.
Author:
Marvin P. Warble Jr.
See Also:
  • Constructor Details

    • WakeLockEvent

      public WakeLockEvent(boolean acquired)
      Constructs a WakeLockEvent.
      Parameters:
      acquired - True if the wake lock was acquired, false if released.
  • Method Details

    • isAcquired

      public boolean isAcquired()
      Returns whether the wake lock was acquired.
      Returns:
      True if acquired.
    • isReleased

      public boolean isReleased()
      Returns whether the wake lock was released.
      Returns:
      True if released.
    • dispatchTo

      public void dispatchTo(WakeLockListener listener)
      Description copied from class: Event
      Dispatches this event to the specified listener.

      Subclasses implement this method to call the appropriate handler method on the listener interface.

      Specified by:
      dispatchTo in class Event<WakeLockListener>
      Parameters:
      listener - the listener to dispatch this event to
    • toString

      public String toString()
      Overrides:
      toString in class Object