public class

PowerStatusManager

extends Object
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. 
Public Constructors
PowerStatusManager()
This is the constructor of PowerStatusManager.
Public Methods
boolean addPowerStatusChangeListener(PowerStatusManager.PowerStatusChangeListener listener)
Adds a listener to power status change events.
PowerStatusManager.Status getStatus()
This method returns the current power status.
boolean removePowerStatusChangeListener(PowerStatusManager.PowerStatusChangeListener listener)
Removes a listener to power status change events.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PowerStatusManager ()

Added in revision 46

This is the constructor of PowerStatusManager.

Throws
DeviceException in case of error.

Public Methods

public boolean addPowerStatusChangeListener (PowerStatusManager.PowerStatusChangeListener listener)

Added in revision 46

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.
Throws
DeviceException in case of error, when exceptions are enabled through the ErrorManager singleton.

public PowerStatusManager.Status getStatus ()

Added in revision 46

This method returns the current power status.

Returns
  • The current power status.
Throws
DeviceException in case of error.

public boolean removePowerStatusChangeListener (PowerStatusManager.PowerStatusChangeListener listener)

Added in revision 46

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.
Throws
DeviceException in case of error, when exceptions are enabled through the ErrorManager singleton.