SCPDisconnectReason
Objective-C
enum SCPDisconnectReason : NSUInteger {}
Swift
enum DisconnectReason : UInt, @unchecked Sendable
Possible reasons for Bluetooth reader disconnects.
-
Unexpected disconnect.
Declaration
Objective-C
SCPDisconnectReasonUnknownSwift
case unknown = 0 -
Terminal.disconnectReader was called.
Declaration
Objective-C
SCPDisconnectReasonDisconnectRequestedSwift
case disconnectRequested = 1 -
Terminal.rebootReader was called.
Declaration
Objective-C
SCPDisconnectReasonRebootRequestedSwift
case rebootRequested = 2 -
Reader disconnected after performing its required security reboot. This will happen if the reader has been running for 24 hours. To control this you can call Terminal.rebootReader which will reset the 24 hour timer.
Declaration
Objective-C
SCPDisconnectReasonSecurityRebootSwift
case securityReboot = 3 -
Reader disconnected because its battery was critically low and needs to be charged before it can be used.
Declaration
Objective-C
SCPDisconnectReasonCriticallyLowBatterySwift
case criticallyLowBattery = 4 -
Reader was powered off.
Declaration
Objective-C
SCPDisconnectReasonPoweredOffSwift
case poweredOff = 5 -
Bluetooth was disabled on the device.
Declaration
Objective-C
SCPDisconnectReasonBluetoothDisabledSwift
case bluetoothDisabled = 6