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 local mobile 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 Local Mobile 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 connectBluetoothReader or connectLocalMobileReader as appropriate.

    See

    SCPBluetoothReaderReaderDelegate

    See

    SCPLocalMobileReaderDelegate

    Declaration

    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 Local Mobile reader, a mandatory update will complete during the connection flow.

    Declaration

    Objective-C

    SCPSimulateReaderUpdateLowBattery

    Swift

    case lowBattery = 3
  • Randomly picks a type of update for the reader to help exercise the various states.

    Declaration

    Objective-C

    SCPSimulateReaderUpdateRandom

    Swift

    case random = 4