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