Example #1
0
        private void BLE_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
        {
            System.Diagnostics.Debug.WriteLine($"The bluetooth state changed to {e.NewState}");

            if (e.NewState == BluetoothState.On)
            {
                Device.BeginInvokeOnMainThread(async() => { await StartScanning(); });
            }
        }
Example #2
0
 void Current_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     CheckState();
 }
Example #3
0
 private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     CurrentState = $"The bluetooth state changed to {e.NewState}";
 }
Example #4
0
 private void _ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     PublishBluetoothState(e.NewState);
 }
Example #5
0
 public void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     Debug.WriteLine($"The bluetooth state changed to {e.NewState}");
 }
Example #6
0
 private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     dialogScr.Toast("BLE state changed: " + e.OldState.ToString() + " -> " + e.NewState.ToString());
 }