SCPSimulateReaderUpdate
Objective-C
enum SCPSimulateReaderUpdate : NSUInteger {}
Swift
enum SimulateReaderUpdate : UInt, @unchecked Sendable
Enum used to simulate various types of reader updates being available for a simulated bluetooth or tap to pay reader.
-
Default value.
- When connecting to a Bluetooth reader, an update is available that is marked as needing to be installed within 7 days.
- When connecting to a Tap To Pay reader, a mandatory update will complete during the connection flow.
Declaration
Objective-C
SCPSimulateReaderUpdateAvailable = 0
Swift
case available = 0
-
No updates are available
Declaration
Objective-C
SCPSimulateReaderUpdateNone
Swift
case none = 1
-
A required full reader software update exists. Use this to simulate the auto-install of a required update that will be applied during connect. This simulated update will take 1 minute and progress will be provided to the delegate provided to
connectReader
.See
SCPMobileReaderDelegateSee
SCPTapToPayReaderDelegateDeclaration
Objective-C
SCPSimulateReaderUpdateRequired
Swift
case required = 2
-
A required update exists.
- When connecting to a Bluetooth reader, the connection will fail because the reader’s battery is too low for an update to begin.
- When connecting to a Tap To Pay reader, a mandatory update will complete during the connection flow.
Declaration
Objective-C
SCPSimulateReaderUpdateLowBattery
Swift
case lowBattery = 3
-
A required update exists.
- When connecting to a Bluetooth reader, the update will fail because the reader’s battery is too low for an update to begin, but the the connection succeeds because the reader is on a recent software version.
- When connecting to a Tap To Pay reader, a mandatory update will complete during the connection flow.
Declaration
Objective-C
SCPSimulateReaderUpdateLowBatterySucceedConnect
Swift
case lowBatterySucceedConnect = 4
-
Randomly picks a type of update for the reader to help exercise the various states.
Declaration
Objective-C
SCPSimulateReaderUpdateRandom
Swift
case random = 5