# Package-level declarations

Classes to connect and manage a set of Square Readers.

## Types

CardEntryMethod
Link copied to clipboard
enum CardEntryMethod : Enum<CardEntryMethod>

Methods of payments that might be supported by readers.

PairingErrorCode
Link copied to clipboard
enum PairingErrorCode : Enum<PairingErrorCode> , ErrorCode

Error conditions that arise when pairing readers.

PairingHandle
Link copied to clipboard
interface PairingHandle

Representation of a reader pairing available immediately from ReaderManager.pairReader. Provides a way to interact with an ongoing reader pairing, e.g. stop it.

ReaderChangedEvent
Link copied to clipboard
class ReaderChangedEvent(val change: ReaderChangedEvent.Change, val reader: ReaderInfo, val readerSerialNumber: String?)

Data provided by Mobile Payments SDK to indicate a change in a specific reader.

ReaderInfo
Link copied to clipboard
class ReaderInfo(val id: String, val model: ReaderInfo.Model, state: ReaderInfo.State, val status: ReaderInfo.Status, val serialNumber: String?, val name: String, val connectionType: ReaderInfo.ConnectionType, val batteryStatus: ReaderInfo.BatteryStatus?, val firmwareVersion: String?, val firmwarePercent: Int?, val supportedCardEntryMethods: Set<CardEntryMethod>, val isForgettable: Boolean = model == Model.CONTACTLESS_AND_CHIP, val isBlinkable: Boolean = model == Model.CONTACTLESS_AND_CHIP)

Provides information about an individual card reader at a given time. This is an immutable snapshot of the reader's past state, not a live model object. Updates are provided via callbacks registered via ReaderManager.setReaderChangedCallback.

ReaderManager
Link copied to clipboard
interface ReaderManager

Tracks changes to the set of available readers and their state; provides pairing and removal capabilities for card readers.

TapToPaySettings
Link copied to clipboard
interface TapToPaySettings