# DeviceScannerState

enum DeviceScannerState : Enum<IDeviceScanner.DeviceScannerState>

Enum class to describe the current state of the IDeviceScanner.

## Entries

IDLE
Link copied to clipboard
IDLE

Bluetooth scanner is not actively searching for devices.

SCANNING
Link copied to clipboard
SCANNING

Bluetooth scanner is actively searching for devices.

ERROR_BLUETOOTH_PERMISSIONS
Link copied to clipboard
ERROR_BLUETOOTH_PERMISSIONS

Bluetooth scanner could not start because Bluetooth permissions have not been granted.

ERROR_BLUETOOTH_DISABLED
Link copied to clipboard
ERROR_BLUETOOTH_DISABLED

Bluetooth scanner could not start because Bluetooth is disabled on this Android device.

ERROR_BLUETOOTH_UNAVAILABLE
Link copied to clipboard
ERROR_BLUETOOTH_UNAVAILABLE

Bluetooth scanner could not start because Bluetooth is not available on this Android device.

ERROR_INVALID_HARDWARE_ID
Link copied to clipboard
ERROR_INVALID_HARDWARE_ID

Bluetooth scanner could not start because an invalid hardware ID was provided.

ERROR_INTERNAL
Link copied to clipboard
ERROR_INTERNAL

Bluetooth scanner could not start due to an internal error.

ERROR_LICENSE
Link copied to clipboard
ERROR_LICENSE

Bluetooth scanner could not start due to a problem with the LicenseManager. Check LicenseManager.Shared.state for details.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<IDeviceScanner.DeviceScannerState>

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): IDeviceScanner.DeviceScannerState

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<IDeviceScanner.DeviceScannerState>

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