# PairingErrorCode

enum PairingErrorCode : Enum<PairingErrorCode> , ErrorCode

Error conditions that arise when pairing readers.

## Entries

BLUETOOTH_ALREADY_SCANNING
Link copied to clipboard
BLUETOOTH_ALREADY_SCANNING

Only one scan is allowed at a time.

BLUETOOTH_DISABLED
Link copied to clipboard
BLUETOOTH_DISABLED

Bluetooth is disabled.

BLUETOOTH_PERMISSION_DENIED
Link copied to clipboard
BLUETOOTH_PERMISSION_DENIED

Missing one or both of the Android runtime permissions for Bluetooth, BLUETOOTH_CONNECT and/or BLUETOOTH_SCAN.

BLUETOOTH_UNSUPPORTED
Link copied to clipboard
BLUETOOTH_UNSUPPORTED

Device does not support bluetooth.

NOT_AUTHORIZED
Link copied to clipboard
NOT_AUTHORIZED

Pairing attempted before authorization.

TIMEOUT
Link copied to clipboard
TIMEOUT

Pairing did not complete in reasonable time.

USAGE_ERROR
Link copied to clipboard
USAGE_ERROR

ReaderManager.pairReader was used in an unexpected or unsupported way. See the debug code and debug message for more information.

## Properties

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

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

isUsageError
Link copied to clipboard
open override val isUsageError: Boolean

Returns `true` if the error is a usage error, `false` otherwise.

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

## Functions

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

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<PairingErrorCode>

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