BluetoothTerminalManagerDelegate
public protocol BluetoothTerminalManagerDelegate
The BluetoothTerminalManagerDelegate protocol defines the methods that a
delegate of a BluetoothTerminalManager object must adopt.
-
Invoked when the central manager’s state is updated.
Declaration
Swift
func bluetoothTerminalManagerDidUpdateState( _ manager: BluetoothTerminalManager)Parameters
managerthe Bluetooth terminal manager
-
Invoked when the Bluetooth terminal manager discovers a card terminal while scanning.
Declaration
Swift
func bluetoothTerminalManager(_ manager: BluetoothTerminalManager, didDiscover terminal: CardTerminal)Parameters
managerthe Bluetooth terminal manager
terminalthe card terminal
-
bluetoothTerminalManager(_:Default implementationdidDisconnect: error: ) Invoked when the Bluetooth terminal manager disconnects a card terminal.
Since
0.7Default Implementation
Declaration
Swift
func bluetoothTerminalManager(_ manager: BluetoothTerminalManager, didDisconnect terminal: CardTerminal, error: Error?)Parameters
managerthe Bluetooth terminal manager
terminalthe card terminal
errorthe cause of the failure, or nil if no error occurred.