partial void onGetConncetedDevices(Foundation.NSObject sender) { var connectionManager = BluetoothConnectionManager.GetBluetoothManager(); var myConnectedDecices = connectionManager.getBluetoothDevices(); Console.WriteLine(myConnectedDecices); }
public static BluetoothConnectionManager GetBluetoothManager() { if (bluetoothConnectionManager == null) { bluetoothConnectionManager = new BluetoothConnectionManager(); } return(bluetoothConnectionManager); }
partial void onDisconnectTapped(Foundation.NSObject sender) { var connectionManager = BluetoothConnectionManager.GetBluetoothManager(); connectionManager.closeConnectionToBTDevice(); }
partial void onConnectTapped(Foundation.NSObject sender) { var connectionManager = BluetoothConnectionManager.GetBluetoothManager(); connectionManager.openConnectionForAccessory("22253627", "com.diagsys.consbt"); }