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)); }
public static IObservable <object> WhenAdapterStatusChanged() => AndroidObservables.WhenIntentReceived(BluetoothAdapter.ActionStateChanged);
public static IObservable <object> WhenAdapterDiscoveryStarted() => AndroidObservables.WhenIntentReceived(BluetoothAdapter.ActionDiscoveryStarted);