public class ChargingProfile
extends java.lang.Object
ChargingProfile represents a charging profile used by the DLBatteryManager to manage the charging preferences.
This class can be used to setup a different charging preference, to retrieve the current charging
preference or retrieve the available charging preferences.
Charging preference is a device independent concept, but the settings of each charging profile
are device dependent and their details are hidden to the programmer.| Modifier and Type | Field and Description |
|---|---|
static int |
CHARGING_PROFILE_CAPACITY
Charging profile with capacity only preference.
|
static int |
CHARGING_PROFILE_CAPACITY_LIFETIME
Charging profile with capacity and lifetime preference.
|
static int |
CHARGING_PROFILE_CHARGING_SPEED
Charging profile with charging speed only preference.
|
static int |
CHARGING_PROFILE_CHARGING_SPEED_CAPACITY
Charging profile with charging speed and capacity preference.
|
static int |
CHARGING_PROFILE_CHARGING_SPEED_LIFETIME
Charging profile with charging speed and lifetime preference.
|
static int |
CHARGING_PROFILE_LIFETIME
Charging profile with lifetime only preference.
|
| Constructor and Description |
|---|
ChargingProfile() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDescription()
Returns the description of this charging profile.
|
int |
getId()
Returns the charging profile ID.
|
java.lang.String |
getName()
Returns the charging profile name.
|
public static final int CHARGING_PROFILE_CHARGING_SPEED
public static final int CHARGING_PROFILE_CAPACITY
public static final int CHARGING_PROFILE_CHARGING_SPEED_CAPACITY
public static final int CHARGING_PROFILE_LIFETIME
public static final int CHARGING_PROFILE_CHARGING_SPEED_LIFETIME
public static final int CHARGING_PROFILE_CAPACITY_LIFETIME
public int getId()
int
The charging profile ID.public java.lang.String getName()
String
The charging profile name.public java.lang.String getDescription()
String
The description of this charging profile.