BluetoothManager
final class BluetoothManager : NSObject
Undocumented
-
Undocumented
Declaration
Swift
var onStateChanged: ((BluetoothManager, BluetoothManagerState) -> Void)?
-
Undocumented
Declaration
Swift
var onDebugMessage: ((BluetoothManager, String) -> Void)?
-
Undocumented
Declaration
Swift
var onReceivedAPDU: ((BluetoothManager, Data) -> Void)?
-
Undocumented
Declaration
Swift
var deviceName: String? { get }
-
Undocumented
Declaration
Swift
fileprivate(set) var state: BluetoothManagerState { get set }
-
Undocumented
Declaration
Swift
func scanForDevice()
-
Undocumented
Declaration
Swift
func stopSession()
-
Undocumented
Declaration
Swift
func exchangeAPDU(_ data: Data)
-
Undocumented
Declaration
Swift
func centralManagerDidUpdateState(_ central: CBCentralManager)
-
Undocumented
Declaration
Swift
func centralManager(_ central: CBCentralManager, didDiscover peripheral: CBPeripheral, advertisementData: [String : Any], rssi RSSI: NSNumber)
-
Undocumented
Declaration
Swift
func centralManager(_ central: CBCentralManager, didConnect peripheral: CBPeripheral)
-
Undocumented
Declaration
Swift
func centralManager(_ central: CBCentralManager, didFailToConnect peripheral: CBPeripheral, error: Error?)
-
Undocumented
Declaration
Swift
func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: Error?)