Reader
-
Information about a card reader that has been discovered by or connected to the SDK.
Some of the properties are only applicable to a certain device type. These properties are labeled with the reader or reader type to which they apply.
See moreDeclaration
Objective-C
@interface SCPReader : NSObject <SCPJSONDecodable>
Swift
class Reader : NSObject, JSONDecodable
-
Declaration
Objective-C
enum SCPDeviceType : NSUInteger {}
Swift
enum DeviceType : UInt, @unchecked Sendable
-
Implement this protocol to handle a connected Bluetooth reader’s events throughout the lifetime of its connection.
Implementing this delegate is required when connecting to any Bluetooth connected reader, such as the Chipper 2X BT and the WisePad 3.
The provided delegate must be retained by your application until the reader disconnects.
See moreDeclaration
Objective-C
@protocol SCPBluetoothReaderDelegate <NSObject>
Swift
protocol BluetoothReaderDelegate : NSObjectProtocol
-
Implement this protocol to handle a connected local mobile reader’s events throughout the lifetime of its connection.
Implementing this delegate is required when connecting to any Local Mobile reader.
The provided delegate must be retained by your application until the reader disconnects.
See moreDeclaration
Objective-C
@protocol SCPLocalMobileReaderDelegate <NSObject>
Swift
protocol LocalMobileReaderDelegate : NSObjectProtocol
-
The possible events from a connected reader. Used by
See more[SCPBluetoothReaderDelegate reader:didReportReaderEvent:info:]
.Declaration
Objective-C
enum SCPReaderEvent : NSUInteger {}
Swift
enum ReaderEvent : UInt, @unchecked Sendable
-
This OptionSet represents all of the input methods available to your user when the reader begins waiting for input. Used by
See more[SCPBluetoothReaderDelegate reader:didRequestReaderInput:]
.Declaration
Objective-C
enum SCPReaderInputOptions : NSUInteger {}
Swift
struct ReaderInputOptions : OptionSet, @unchecked Sendable
-
The display messages that a reader may request be displayed by your app. Used by
See more[SCPBluetoothReaderDelegate reader:didRequestReaderDisplayMessage:]
.Declaration
Objective-C
enum SCPReaderDisplayMessage : NSUInteger {}
Swift
enum ReaderDisplayMessage : UInt, @unchecked Sendable
-
The possible networking statuses for a reader.
See moreDeclaration
Objective-C
enum SCPReaderNetworkStatus : NSUInteger {}
Swift
enum ReaderNetworkStatus : UInt, @unchecked Sendable
-
A categorization of a reader’s battery charge level.
See moreDeclaration
Objective-C
enum SCPBatteryStatus : NSUInteger {}
Swift
enum BatteryStatus : UInt, @unchecked Sendable
-
An
SCPCart
object contains information about what line items are included in the current transaction. A cart object should be created and then passed intoTerminal.shared.setReaderDisplay()
, which will display the cart’s contents on the reader’s screen.The
SCPCart
only represents exactly what will be shown on the screen, and is not reflective of what the customer is actually charged. You are responsible for making sure that tax and total reflect what is in the cart.Note
Only Internet readers support setReaderDisplay functionality
Declaration
Objective-C
@interface SCPCart : NSObject
Swift
class Cart : NSObject