Beispiel #1
0
 public static IObservable <BluetoothDevice> WhenDeviceEventReceived(string action)
 => AndroidObservables
 .WhenIntentReceived(action)
 .Select(intent =>
 {
     var device = (BluetoothDevice)intent.GetParcelableExtra(BluetoothDevice.ExtraDevice);
     return(device);
 });
 public static IObservable <object> WhenAdapterDiscoveryFinished()
 {
     return(AndroidObservables.WhenIntentReceived(BluetoothAdapter.ActionDiscoveryFinished));
 }
Beispiel #3
0
 public static IObservable <object> WhenAdapterStatusChanged()
 => AndroidObservables.WhenIntentReceived(BluetoothAdapter.ActionStateChanged);
 public static IObservable <object> WhenAdapterDiscoveryStarted()
 => AndroidObservables.WhenIntentReceived(BluetoothAdapter.ActionDiscoveryStarted);