UsbManagerExtensions.

PermissionRequested(UsbManager, Context, UsbAccessory) Method

Summary

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.
Namespace
ReactiveUI
Containing Type
UsbManagerExtensions

Syntax

public static IObservable<bool> PermissionRequested(this UsbManager manager, Context context, UsbAccessory accessory)

Parameters

Name Type Description
manager UsbManager The UsbManager system service.
context Context The Context to request the permission from.
accessory UsbAccessory The UsbAccessory to request permission for.

Return Value

Type Description
IObservable<bool> The observable sequence of permission values.