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

APP_UPDATE_REQUIRED
Link copied to clipboard
APP_UPDATE_REQUIRED

App version is incompatible with reader firmware and requires an update.

BOND_FAILED
Link copied to clipboard
BOND_FAILED

Unable to create a Bluetooth bond with the reader device.

INTERNAL_FIRMWARE_ERROR
Link copied to clipboard
INTERNAL_FIRMWARE_ERROR

An internal firmware error occurred on the reader device.

UNKNOWN_ERROR
Link copied to clipboard
UNKNOWN_ERROR

An unknown error occurred while attempting to pair with the reader.

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