コード例 #1
0
        partial void onGetConncetedDevices(Foundation.NSObject sender)
        {
            var connectionManager = BluetoothConnectionManager.GetBluetoothManager();

            var myConnectedDecices = connectionManager.getBluetoothDevices();

            Console.WriteLine(myConnectedDecices);
        }
コード例 #2
0
 public static BluetoothConnectionManager GetBluetoothManager()
 {
     if (bluetoothConnectionManager == null)
     {
         bluetoothConnectionManager = new BluetoothConnectionManager();
     }
     return(bluetoothConnectionManager);
 }
コード例 #3
0
        partial void onDisconnectTapped(Foundation.NSObject sender)
        {
            var connectionManager = BluetoothConnectionManager.GetBluetoothManager();

            connectionManager.closeConnectionToBTDevice();
        }
コード例 #4
0
        partial void onConnectTapped(Foundation.NSObject sender)
        {
            var connectionManager = BluetoothConnectionManager.GetBluetoothManager();

            connectionManager.openConnectionForAccessory("22253627", "com.diagsys.consbt");
        }