Table of Contents

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 UsbManager

The UsbManager system service.

context Context

The Context to request the permission from.

accessory UsbAccessory

The 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 UsbManager

The UsbManager system service.

context Context

The Context to request the permission from.

device UsbDevice

The UsbDevice to request permission for.

Returns

IObservable<bool>

The observable sequence of permission values.