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 }
-
Initialize your connect options with a location ID.
Declaration
Objective-C
- (nonnull instancetype)initWithLocationId:(nonnull NSString *)locationId;
Swift
init(locationId: String)