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(); }); } }
void Current_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e) { CheckState(); }
private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e) { CurrentState = $"The bluetooth state changed to {e.NewState}"; }
private void _ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e) { PublishBluetoothState(e.NewState); }
public void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e) { Debug.WriteLine($"The bluetooth state changed to {e.NewState}"); }
private void Ble_StateChanged(object sender, Plugin.BLE.Abstractions.EventArgs.BluetoothStateChangedArgs e) { dialogScr.Toast("BLE state changed: " + e.OldState.ToString() + " -> " + e.NewState.ToString()); }