to top
Datalogic APIs
public static class

EnterpriseBatterySaverActivationItems.ActivationItem

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.EnterpriseBatterySaverActivationItems.ActivationItem

Class Overview

Represents an activation item.

Summary

Nested Classes
class EnterpriseBatterySaverActivationItems.ActivationItem.Builder Builds the ActivationItem object. 
enum EnterpriseBatterySaverActivationItems.ActivationItem.Type An activation item is used to trigger a profile when a condition is met. 
Constants
int FLAG_CONNECTED_WLAN Mask for the connection types.
int FLAG_CONNECTED_WWAN
int FLAG_POWER_SOURCE_AC
int FLAG_POWER_SOURCE_USB Mask for the power source types.
int FLAG_POWER_SOURCE_WIRED_DOCK
int FLAG_POWER_SOURCE_WIRELESS
int FLAG_POWER_SOURCE_WIRELESS_DOCK
String PARAM_BATTERY_LEVEL_THRESHOLD This is the list of keys used to identify the parameters of the activation item from the `Map` returned by the getParams() method.
String PARAM_CONNECTION_SOURCE_MASK
String PARAM_POCKET_MODE_ACTIVE
String PARAM_POWER_SOURCE_TYPE_MASK
String PARAM_TIME_INTERVAL_HOUR_END
String PARAM_TIME_INTERVAL_HOUR_START
String PARAM_TIME_INTERVAL_MINUTE_END
String PARAM_TIME_INTERVAL_MINUTE_START
String PARAM_TIME_INTERVAL_WEEK_DAY_END
String PARAM_TIME_INTERVAL_WEEK_DAY_START
int WEEK_DAY_FRIDAY
int WEEK_DAY_MONDAY Constants for the days of the week (ISO-8601).
int WEEK_DAY_SATURDAY
int WEEK_DAY_SUNDAY
int WEEK_DAY_THURSDAY
int WEEK_DAY_TUESDAY
int WEEK_DAY_WEDNESDAY
Public Constructors
ActivationItem()
Public Methods
String getName()
Returns the name of the activation item.
Map<String, String> getParams()
Returns the representation of the internal parameters of the activation item.
String getProfileName()
Returns the profile name of the activation item.
EnterpriseBatterySaverActivationItems.ActivationItem.Type getType()
Returns the type of the activation item.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int FLAG_CONNECTED_WLAN

Added in revision 44

Mask for the connection types.

Constant Value: 1 (0x00000001)

public static final int FLAG_CONNECTED_WWAN

Added in revision 44

Constant Value: 2 (0x00000002)

public static final int FLAG_POWER_SOURCE_AC

Added in revision 44

Constant Value: 2 (0x00000002)

public static final int FLAG_POWER_SOURCE_USB

Added in revision 44

Mask for the power source types.

Constant Value: 1 (0x00000001)

public static final int FLAG_POWER_SOURCE_WIRED_DOCK

Added in revision 44

Constant Value: 8 (0x00000008)

public static final int FLAG_POWER_SOURCE_WIRELESS

Added in revision 44

Constant Value: 4 (0x00000004)

public static final int FLAG_POWER_SOURCE_WIRELESS_DOCK

Added in revision 44

Constant Value: 16 (0x00000010)

public static final String PARAM_BATTERY_LEVEL_THRESHOLD

Added in revision 45

This is the list of keys used to identify the parameters of the activation item from the `Map` returned by the getParams() method. The values are represented as strings, and their actual type depends on the type of the activation item and an explicit conversion might be needed. The type of each parameter is as follows:

Constant Value: "batteryLevel"

public static final String PARAM_CONNECTION_SOURCE_MASK

Added in revision 45

Constant Value: "connectionMask"

public static final String PARAM_POCKET_MODE_ACTIVE

Added in revision 45

Constant Value: "active"

public static final String PARAM_POWER_SOURCE_TYPE_MASK

Added in revision 45

Constant Value: "sourceTypeMask"

public static final String PARAM_TIME_INTERVAL_HOUR_END

Added in revision 45

Constant Value: "hourOfDayEnd"

public static final String PARAM_TIME_INTERVAL_HOUR_START

Added in revision 45

Constant Value: "hourOfDayStart"

public static final String PARAM_TIME_INTERVAL_MINUTE_END

Added in revision 45

Constant Value: "minuteEnd"

public static final String PARAM_TIME_INTERVAL_MINUTE_START

Added in revision 45

Constant Value: "minuteStart"

public static final String PARAM_TIME_INTERVAL_WEEK_DAY_END

Added in revision 45

Constant Value: "dayOfWeekEnd"

public static final String PARAM_TIME_INTERVAL_WEEK_DAY_START

Added in revision 45

Constant Value: "dayOfWeekStart"

public static final int WEEK_DAY_FRIDAY

Added in revision 44

Constant Value: 5 (0x00000005)

public static final int WEEK_DAY_MONDAY

Added in revision 44

Constants for the days of the week (ISO-8601).

Constant Value: 1 (0x00000001)

public static final int WEEK_DAY_SATURDAY

Added in revision 44

Constant Value: 6 (0x00000006)

public static final int WEEK_DAY_SUNDAY

Added in revision 44

Constant Value: 7 (0x00000007)

public static final int WEEK_DAY_THURSDAY

Added in revision 44

Constant Value: 4 (0x00000004)

public static final int WEEK_DAY_TUESDAY

Added in revision 44

Constant Value: 2 (0x00000002)

public static final int WEEK_DAY_WEDNESDAY

Added in revision 44

Constant Value: 3 (0x00000003)

Public Constructors

public ActivationItem ()

Added in revision 44

Public Methods

public String getName ()

Added in revision 44

Returns the name of the activation item.

public Map<String, String> getParams ()

Added in revision 44

Returns the representation of the internal parameters of the activation item. The parameters are represented as a map of key-value pairs, and their actual values depend on the type of the activation item. See PARAM_BATTERY_LEVEL_THRESHOLD, PARAM_POWER_SOURCE_TYPE_MASK, PARAM_TIME_INTERVAL_WEEK_DAY_START, PARAM_TIME_INTERVAL_MINUTE_START, PARAM_TIME_INTERVAL_HOUR_START, PARAM_TIME_INTERVAL_WEEK_DAY_END, PARAM_TIME_INTERVAL_MINUTE_END, PARAM_TIME_INTERVAL_HOUR_END, PARAM_POCKET_MODE_ACTIVE, PARAM_CONNECTION_SOURCE_MASK for the list of parameters and their meaning.

public String getProfileName ()

Added in revision 44

Returns the profile name of the activation item.

public EnterpriseBatterySaverActivationItems.ActivationItem.Type getType ()

Added in revision 44

Returns the type of the activation item. See EnterpriseBatterySaverActivationItems.ActivationItem.Type for the list of supported types.