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