コード例 #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(); });
            }
        }
コード例 #2
0
 void Current_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     CheckState();
 }
コード例 #3
0
 private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     CurrentState = $"The bluetooth state changed to {e.NewState}";
 }
コード例 #4
0
ファイル: BleManager.cs プロジェクト: versx/Suota-Go-Plus
 private void _ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     PublishBluetoothState(e.NewState);
 }
コード例 #5
0
 public void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     Debug.WriteLine($"The bluetooth state changed to {e.NewState}");
 }
コード例 #6
0
ファイル: CgmPageViewModel.cs プロジェクト: xians78/eDroplet
 private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e)
 {
     dialogScr.Toast("BLE state changed: " + e.OldState.ToString() + " -> " + e.NewState.ToString());
 }