to top
Datalogic APIs
public final enum

BatteryChargingProfilePersistencePolicy

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ com.datalogic.device.configuration.BatteryChargingProfilePersistencePolicy

Class Overview

Enum BatteryChargingProfilePersistencePolicy defines the policies for applying the battery charging profile used by the property POWER_BATTERY_CHARGING_PROFILE_PERSISTENCE_POLICY.

Summary

Enum Values
BatteryChargingProfilePersistencePolicy  SET_BY_BATTERY  Persistence is set by battery: the battery will be charged according to the profile stored in the battery memory. 
BatteryChargingProfilePersistencePolicy  SET_BY_DEVICE  Persistence is set by device: the battery will be charged according to the profile stored by the device. 
Public Methods
static BatteryChargingProfilePersistencePolicy fromInt(int id)
Retrieves the corresponding BatteryChargingProfilePersistencePolicy value, from a valid integer.
int toInt()
Retrieves the corresponding int value.
static BatteryChargingProfilePersistencePolicy valueOf(String name)
final static BatteryChargingProfilePersistencePolicy[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final BatteryChargingProfilePersistencePolicy SET_BY_BATTERY

Added in revision 36

Persistence is set by battery: the battery will be charged according to the profile stored in the battery memory. So, when the user changes the battery, the new battery will not be re-configured by the device. That profile could be different to the one used by other batteries.

public static final BatteryChargingProfilePersistencePolicy SET_BY_DEVICE

Added in revision 36

Persistence is set by device: the battery will be charged according to the profile stored by the device. So, when the user changes the battery, the new battery will be configured to be charged with that profile, the same of the previous battery.

Public Methods

public static BatteryChargingProfilePersistencePolicy fromInt (int id)

Added in revision 36

Retrieves the corresponding BatteryChargingProfilePersistencePolicy value, from a valid integer.

Parameters
id int
Returns
  • Type the corresponding one.

public int toInt ()

Added in revision 37

Retrieves the corresponding int value.

Returns
  • int

public static BatteryChargingProfilePersistencePolicy valueOf (String name)

Added in revision 36

public static final BatteryChargingProfilePersistencePolicy[] values ()

Added in revision 36