public class

ChargingProfile

extends Object
java.lang.Object
   ↳ com.datalogic.device.battery.ChargingProfile

Class Overview

The 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.

Summary

Constants
int CHARGING_PROFILE_CAPACITY This profile allows to fully charge the device to maximum battery capacity.
int CHARGING_PROFILE_CAPACITY_LIFETIME This profile optimizes battery lifetime and fully charges the device to maximum battery capacity.
int CHARGING_PROFILE_CHARGING_SPEED This profile allows the device to be charged faster delivering more current and reducing the maximum capacity level.
int CHARGING_PROFILE_CHARGING_SPEED_CAPACITY This profile allows the device to be fully charge faster delivering more current.
int CHARGING_PROFILE_CHARGING_SPEED_LIFETIME This profile optimizes battery lifetime and allows the device to be charge faster delivering more current.
int CHARGING_PROFILE_LIFETIME This profile charges the device reducing the maximum capacity level.
Public Constructors
ChargingProfile()
Public Methods
String getDescription()
Returns the description of this charging profile.
int getId()
Returns the charging profile ID.
String getName()
Returns the charging profile name.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int CHARGING_PROFILE_CAPACITY

Added in revision 13

This profile allows to fully charge the device to maximum battery capacity.
Increasing charge current and fully charge the device could stress the battery and affect negatively its health in the longterm.

Constant Value: 2 (0x00000002)

public static final int CHARGING_PROFILE_CAPACITY_LIFETIME

Added in revision 13

This profile optimizes battery lifetime and fully charges the device to maximum battery capacity.
Fully charging the device could affect negatively battery health in the longterm.

Constant Value: 6 (0x00000006)

public static final int CHARGING_PROFILE_CHARGING_SPEED

Added in revision 13

This profile allows the device to be charged faster delivering more current and reducing the maximum capacity level.
Increasing charge current could stress the battery reducing battery lifespan in the longterm.
Charging device partially instead has the advantage of preserve battery health in the longterm.

Constant Value: 1 (0x00000001)

public static final int CHARGING_PROFILE_CHARGING_SPEED_CAPACITY

Added in revision 13

This profile allows the device to be fully charge faster delivering more current.
Fully charging the device could affect negatively battery health in the longterm.

Constant Value: 3 (0x00000003)

public static final int CHARGING_PROFILE_CHARGING_SPEED_LIFETIME

Added in revision 13

This profile optimizes battery lifetime and allows the device to be charge faster delivering more current.
Fully charging the device could affect negatively battery health in the longterm.
This profile damages battery less than the other speed profiles.

Constant Value: 5 (0x00000005)

public static final int CHARGING_PROFILE_LIFETIME

Added in revision 13

This profile charges the device reducing the maximum capacity level.
Charging device partially has the advantage of preserve battery health in the longterm.

Constant Value: 4 (0x00000004)

Public Constructors

public ChargingProfile ()

Added in revision 13

Public Methods

public String getDescription ()

Added in revision 13

Returns the description of this charging profile.

Returns
  • String The description of this charging profile.

public int getId ()

Added in revision 13

Returns the charging profile ID.

Returns
  • int The charging profile ID.

public String getName ()

Added in revision 13

Returns the charging profile name.

Returns
  • String The charging profile name.