DeviceState

abstract class DeviceState

Device state information.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
Link copied to clipboard

Reason why the device is in the current state.

Properties

Link copied to clipboard

Gets the currently active connector, or null if the device is not currently connected.

Link copied to clipboard
abstract val canBeConnected: Boolean

Tells whether the device can be connected.

Link copied to clipboard

Tells whether the device can be disconnected.

Link copied to clipboard
abstract val canBeForgotten: Boolean

Tells whether the device can be forgotten.

Link copied to clipboard

Gets the device connection state.

Link copied to clipboard

Gets the reason why device is in the current state.

Link copied to clipboard

Gets the list of available connectors for this device.

Link copied to clipboard
@get:IntRange(from = 0)
abstract val shutdownDelay: Int