# State

sealed class State

The reader's state. MAGSTRIPE readers are always `Ready`.

#### Inheritors

Disconnected
Connecting
UpdatingFirmware
FailedToConnect
Disabled
Ready

## Types

Connecting
Link copied to clipboard
object Connecting : ReaderInfo.State

The reader is connected, but not yet ready for use. It should become ready soon, typically within a minute.

Disabled
Link copied to clipboard
object Disabled : ReaderInfo.State

This reader is unusable; contact support for resolution, but hardware replacement is likely.

Disconnected
Link copied to clipboard
data class Disconnected(val error: ReaderInfo.ConnectionError?) : ReaderInfo.State

The reader is unavailable, but known. This represents a reader that has been paired via Bluetooth, but is not currently connected (typically because it is off or asleep or out of range).

FailedToConnect
Link copied to clipboard
data class FailedToConnect(val reason: ReaderInfo.DeniedReason? = null) : ReaderInfo.State

Connection to the reader failed.

Ready
Link copied to clipboard
object Ready : ReaderInfo.State

The reader is available for use. Note that it is possible for a Ready cardreader to also be receiving a firmware update: this occurs for "non-blocking" firmware updates, and the update will be applied when the reader is next not in use after the firmwarePercent reaches 100%.

UpdatingFirmware
Link copied to clipboard
object UpdatingFirmware : ReaderInfo.State

The reader is getting a blocking update, and cannot be used until that completes.