Package com.oorian.html.js.wakelock
Class WakeLockEvent
java.lang.Object
com.oorian.messaging.events.Event<WakeLockListener>
com.oorian.messaging.events.client.ClientEvent<WakeLockListener>
com.oorian.html.js.wakelock.WakeLockEvent
Event fired when a wake lock state changes.
- Author:
- Marvin P. Warble Jr.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchTo(WakeLockListener listener) Dispatches this event to the specified listener.booleanReturns whether the wake lock was acquired.booleanReturns whether the wake lock was released.toString()Methods inherited from class com.oorian.messaging.events.client.ClientEvent
getSource, getTarget, setSource, setTarget
-
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
Description copied from class:EventDispatches this event to the specified listener.Subclasses implement this method to call the appropriate handler method on the listener interface.
- Specified by:
dispatchToin classEvent<WakeLockListener>- Parameters:
listener- the listener to dispatch this event to
-
toString
-