# DeviceStatus

enum DeviceStatus : Enum<DeviceStatus>

Enum describing the possible causes of a device disconnection event in the IDeviceCompat.OnDeviceStateChangeListener

## Entries

SUCCESS
Link copied to clipboard
SUCCESS

The device had disconnected normally (e.g. - via calling IDeviceCompat.disconnect)

ERROR_MAX_ATTEMPTS
Link copied to clipboard
ERROR_MAX_ATTEMPTS

The device connection attempt was cancelled because the maximum number of attempts was reached.

ERROR_TIMEOUT
Link copied to clipboard
ERROR_TIMEOUT

The device connection attempt was cancelled due to a timeout error.

ERROR_UNSUPPORTED_DEVICE
Link copied to clipboard
ERROR_UNSUPPORTED_DEVICE

The device connection attempt was cancelled because the specified device type was not supported.

ERROR_DROPPED_CONNECTION
Link copied to clipboard
ERROR_DROPPED_CONNECTION

The device has disconnected unexpectedly (possibly due to low Bluetooth signal strength or low battery level).

ERROR_UNAUTHORIZED
Link copied to clipboard
ERROR_UNAUTHORIZED

The device connection attempt was cancelled because the specified device was not authorized for this build of the Nix SDK. Check that the device allocation code and/or serial number is expected to be authorized for this build.

ERROR_INTERNAL
Link copied to clipboard
ERROR_INTERNAL

The device has disconnected for an unknown reason (internal SDK error).

ERROR_LICENSE
Link copied to clipboard
ERROR_LICENSE

The device disconnected due to a problem with the LicenseManager. Check that the license is active via LicenseManager.Shared.state and that the device type is supported via LicenseManager.Shared.isDeviceTypeSupported.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<DeviceStatus>

Returns a representation of an immutable list of all enum entries, in the order they're declared.

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int
value
Link copied to clipboard
val value: Int

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): DeviceStatus

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.)

values
Link copied to clipboard
fun values(): Array<DeviceStatus>

Returns an array containing the constants of this enum type, in the order they're declared.