java.lang.Object | |
↳ | com.datalogic.device.configuration.EnterpriseBatterySaverActivationItems.ActivationItem.Builder |
Builds the ActivationItem object.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new Builder for the ActivationItem object, with the following default
values:
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builds and return a newly created ActivationItem object.
| |||||||||||
Configures the activation item to be always on, i.e.
| |||||||||||
Configures the activation item to be triggered when the battery level is below or
equal to the specified value.
| |||||||||||
Configures the activation item to be triggered when the device is connected to
one of the connection types specified in the mask.
| |||||||||||
Sets the name of the activation item.
| |||||||||||
Configures the activation item to be triggered the pocket mode is in the state
described by the `active` parameter.
| |||||||||||
Configures the activation item to be triggered the power source is one of the
ones specified in the mask.
| |||||||||||
Sets the profile name of the activation item.
| |||||||||||
Configures the activation item to be triggered when the device is in a specific
time interval.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a new Builder for the ActivationItem object, with the following default values:
Builds and return a newly created ActivationItem object. The created object is guaranteed to be valid and ready to use.
IllegalStateException | if the activation item is not properly configured. |
---|
Configures the activation item to be always on, i.e. it will be always triggered when present. This is the default state of the device.
Configures the activation item to be triggered when the battery level is below or equal to the specified value.
batteryLevel | The battery level, in percentage (0-100). |
---|
IllegalArgumentException | if the battery level is not in the range 0-100. |
---|
Configures the activation item to be triggered when the device is connected to one of the connection types specified in the mask.
connectionMask | The connection types mask. Valid values are
FLAG_CONNECTED_WLAN and FLAG_CONNECTED_WWAN .
|
---|
Sets the name of the activation item. The name must be non empty and unique among all activation items.
name | The name of the activation item. |
---|
IllegalArgumentException | if the name is empty or null. |
---|
Configures the activation item to be triggered the pocket mode is in the state described by the `active` parameter.
active | If true, the activation item is triggered when the pocket mode is active. If false, it is triggered when the pocket mode is inactive. |
---|
Configures the activation item to be triggered the power source is one of the ones specified in the mask.
powerSourceMask | The power source types mask. Valid values are
FLAG_POWER_SOURCE_USB ,
FLAG_POWER_SOURCE_AC ,
FLAG_POWER_SOURCE_WIRELESS ,
FLAG_POWER_SOURCE_WIRED_DOCK and
FLAG_POWER_SOURCE_WIRELESS_DOCK .
|
---|
Sets the profile name of the activation item. It need to match the name of a profile already defined. When the activation item is triggered, the profile will be activated.
profileName | The name of the profile. |
---|
IllegalArgumentException | if the profile name is empty or null. |
---|
Configures the activation item to be triggered when the device is in a specific time interval.
dayOfWeekStart | The start day of the week (1-7, where 1 is Monday and 7 is Sunday). |
---|---|
timeStart | The start time of the interval. |
dayOfWeekEnd | The end day of the week (1-7, where 1 is Monday and 7 is Sunday). |
timeEnd | The end time of the interval. |
IllegalArgumentException | if the start time is after the end time or if the days of the week are not in the range 1-7. |
---|