DeviceStatus

public enum DeviceStatus extends Enum<DeviceStatus>

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

Entries

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard
private final String name
Link copied to clipboard
private final Integer ordinal
Link copied to clipboard
private final Integer value

Functions

Link copied to clipboard

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

Link copied to clipboard
public final String getName()
Link copied to clipboard
public final Integer getOrdinal()
Link copied to clipboard
public final Integer getValue()
Link copied to clipboard
public final DeviceStatus valueOf(String value)

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

Link copied to clipboard
public final Array<DeviceStatus> values()

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