java.lang.Object | ||
↳ | PayPalRetailObject | |
↳ | com.paypal.paypalretailsdk.BatteryInfo |
BatteryInfo class contains information about the health of the device battery and the instant it was measured
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BatteryInfo(Integer percentage, Boolean isCharging, Date measuredOn, batteryStatus status)
Create a new Battery info object
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Boolean |
getIsCharging()
Indicates if the device battery is connected to power
| ||||||||||
Boolean |
getIsLevelCritical()
Indicates that the device battery is at Critical or less and not charging
| ||||||||||
Boolean |
getIsLevelUpdateCritical()
Indicates that the device battery is at UpdateCritical or less and not charging
| ||||||||||
Date |
getMeasuredOn()
The time the battery information was retrieved
| ||||||||||
Integer |
getPercentage()
The level of battery in percentage
| ||||||||||
batteryStatus |
getStatus()
Status of the battery
| ||||||||||
void |
setIsCharging(Boolean value)
Indicates if the device battery is connected to power
| ||||||||||
void |
setIsLevelCritical(Boolean value)
Indicates that the device battery is at Critical or less and not charging
| ||||||||||
void |
setIsLevelUpdateCritical(Boolean value)
Indicates that the device battery is at UpdateCritical or less and not charging
| ||||||||||
void |
setMeasuredOn(Date value)
The time the battery information was retrieved
| ||||||||||
void |
setPercentage(Integer value)
The level of battery in percentage
| ||||||||||
void |
setStatus(batteryStatus value)
Status of the battery
| ||||||||||
String |
toString()
Returns a string representing the serialized state of the BatteryInfo object
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Create a new Battery info object
Indicates if the device battery is connected to power
Indicates that the device battery is at Critical or less and not charging
Indicates that the device battery is at UpdateCritical or less and not charging
The time the battery information was retrieved
The level of battery in percentage
Indicates if the device battery is connected to power
Indicates that the device battery is at Critical or less and not charging
Indicates that the device battery is at UpdateCritical or less and not charging
The time the battery information was retrieved
The level of battery in percentage
Returns a string representing the serialized state of the BatteryInfo object