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.connectBluetoothReader()
.
-
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. You must also set an
autoReconnectionDelegate
for your application to respond accordingly to reconnection attempts. EnablingautoReconnectOnUnexpectedDisconnect
without providing anautoReconnectionDelegate
will error withSCPErrorReaderConnectionConfigurationInvalid
.When set to false, we will immediately surface any disconnection through TerminalDelegate.
Defaults to false.
Declaration
Objective-C
@property (nonatomic, readonly) BOOL autoReconnectOnUnexpectedDisconnect;
Swift
var autoReconnectOnUnexpectedDisconnect: Bool { get }
-
Contains callback methods for Bluetooth auto-reconnection.
Declaration
Objective-C
@property (nonatomic, weak, readonly, nullable) id<SCPReconnectionDelegate> autoReconnectionDelegate;
Swift
weak var autoReconnectionDelegate: ReconnectionDelegate? { get }
-
Unavailable
Declaration
Objective-C
- (nonnull instancetype)init;
-
Unavailable
Declaration
Objective-C
+ (nonnull instancetype)new;