SCPBluetoothConnectionConfiguration
Objective-C
@interface SCPBluetoothConnectionConfiguration : SCPConnectionConfiguration
Swift
class BluetoothConnectionConfiguration : ConnectionConfiguration
This class lets you define Bluetooth reader connection options.
An object of this class should get passed into Terminal.shared.connectReader()
.
-
The MobileReaderDelegate to use for this connection to the reader.
Declaration
Objective-C
@property (nonatomic, weak, readonly) id<SCPMobileReaderDelegate> _Nullable delegate;
Swift
weak var delegate: (any MobileReaderDelegate)? { get }
-
The ID of the Location which the reader should be registered to during connection.
If the provided ID matches the location the reader is already registered to, the location will not be changed.
When connecting to a simulated reader, pass in the reader’s pre-existing mock location. You can find the mock location ID on the reader object returned to the DiscoveryDelegate, on the
locationId
property.Declaration
Objective-C
@property (nonatomic, readonly) NSString *_Nonnull locationId;
Swift
var locationId: String { get }
-
When set to true, the Terminal SDK will attempt a Bluetooth auto-reconnection on any unexpected disconnect. Implement the
reader:didStartReconnect:
and related callbacks for your application to respond accordingly to reconnection attempts.When set to false, the SDK will immediately surface any disconnection through ReaderDelegate.
Defaults to true.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL autoReconnectOnUnexpectedDisconnect;
Swift
var autoReconnectOnUnexpectedDisconnect: Bool { get }
-
Unavailable
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Declaration
Objective-C
+ (nonnull instancetype)new;