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