DeviceStateRequirement

DeviceStateRequirement

enum DeviceStateRequirement : Parcelable, Enum<DeviceStateRequirement>

Entries

NetworkNetwork
Requirement that the device has network connectivity.
NetworkUnmeteredNetworkUnmetered
Requirement that the device has a network connection that is unmetered.
DeviceIdleDeviceIdle
Requirement that the device is idle.
DeviceChargingDeviceCharging
Requirement that the device is charging.
DeviceStorageNotLowDeviceStorageNotLow
Requirement that the device's internal storage is not low. Note that this requirement is not affected by the status of external storage.

Properties

NameSummary
entriesval entries: EnumEntries<DeviceStateRequirement>
Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

NameSummary
valueOffun valueOf(value: String): DeviceStateRequirement
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<DeviceStateRequirement>
Returns an array containing the constants of this enum type, in the order they're declared.