Class UsbManagerExtensions
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
Extension methods for the usb manager.
public static class UsbManagerExtensions : Object
- Inheritance
-
UsbManagerExtensions
Methods
PermissionRequested(UsbManager, Context, UsbAccessory)
Requests temporary permission for the given package to access the accessory. This may result in a system dialog being displayed to the user if permission had not already been granted.
public static IObservable<bool> PermissionRequested(this UsbManager manager, Context context, UsbAccessory accessory)
Parameters
manager
UsbManagerThe UsbManager system service.
context
ContextThe Context to request the permission from.
accessory
UsbAccessoryThe UsbAccessory to request permission for.
Returns
- IObservable<bool>
The observable sequence of permission values.
PermissionRequested(UsbManager, Context, UsbDevice)
Requests temporary permission for the given package to access the device. This may result in a system dialog being displayed to the user if permission had not already been granted.
public static IObservable<bool> PermissionRequested(this UsbManager manager, Context context, UsbDevice device)
Parameters
manager
UsbManagerThe UsbManager system service.
context
ContextThe Context to request the permission from.
device
UsbDeviceThe UsbDevice to request permission for.
Returns
- IObservable<bool>
The observable sequence of permission values.