java.lang.Object |
↳ |
com.datalogic.device.power.PowerStatusManager |
Class Overview
Class exposing power status methods.
Summary
Nested Classes |
enum |
PowerStatusManager.ChargeStatus |
Enumerative representing the possible charge status values. |
class |
PowerStatusManager.CriticalFailureStatus |
Class representing the possible critical failure status values. |
class |
PowerStatusManager.FailureStatus |
Class representing the possible failure status values. |
interface |
PowerStatusManager.PowerStatusChangeListener |
Interface representing a listener of power status change events. |
class |
PowerStatusManager.Status |
Class that stores the power status information. |
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
PowerStatusManager
()
This is the constructor of PowerStatusManager.
Public Methods
Adds a listener to power status change events.
Parameters
listener
| The listener to add. |
Returns
- True if the listener has been added successfully, false otherwise
or throws an exception if exceptions are enabled through the
ErrorManager
singleton.
This method returns the current power status.
Returns
- The current power status.
Removes a listener to power status change events.
Parameters
listener
| The listener to remove. |
Returns
- True if the listener has been removed successfully, false otherwise
or throws an exception if exceptions are enabled through the
ErrorManager
singleton.