# Change

enum Change : Enum<ReaderChangedEvent.Change>

Types of reader-related changes.

## Entries

ADDED
Link copied to clipboard
ADDED

Discovery of a new card reader.

CHANGED_STATE
Link copied to clipboard
CHANGED_STATE

A change to the internal state of the reader. See ReaderInfo.state for details.

BATTERY_THRESHOLD
Link copied to clipboard
BATTERY_THRESHOLD

Called when a reader's battery level passes pre-defined thresholds.

BATTERY_CHARGING
Link copied to clipboard
BATTERY_CHARGING

Called when a reader is plugged in or unplugged from charging.

FIRMWARE_PROGRESS
Link copied to clipboard
FIRMWARE_PROGRESS

Called repeatedly during a firmware update to report completion status. Reader state may be either ReaderInfo.State.UpdatingFirmware for blocking updates, or ReaderInfo.State.Ready during non-blocking updates.

REMOVED
Link copied to clipboard
REMOVED

Called when a reader is unplugged from device, or "forgotten" from pairing.

## Properties

entries
Link copied to clipboard
val entries: EnumEntries<ReaderChangedEvent.Change>

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

## Functions

valueOf
Link copied to clipboard
fun valueOf(value: String): ReaderChangedEvent.Change

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<ReaderChangedEvent.Change>

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