C# Class ReactiveUI.UsbManagerExtensions

Mostra file Open project: reactiveui/ReactiveUI

Public Methods

Method Description
PermissionRequested ( this manager, Android.Content.Context context, Android.Hardware.Usb.UsbAccessory accessory ) : IObservable

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.

PermissionRequested ( this manager, Android.Content.Context context, Android.Hardware.Usb.UsbDevice device ) : IObservable

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.

Method Details

PermissionRequested() public static method

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 PermissionRequested ( this manager, Android.Content.Context context, Android.Hardware.Usb.UsbAccessory accessory ) : IObservable
manager this The UsbManager system service.
context Android.Content.Context The Context to request the permission from.
accessory Android.Hardware.Usb.UsbAccessory The UsbAccessory to request permission for.
return IObservable

PermissionRequested() public static method

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 PermissionRequested ( this manager, Android.Content.Context context, Android.Hardware.Usb.UsbDevice device ) : IObservable
manager this The UsbManager system service.
context Android.Content.Context The Context to request the permission from.
device Android.Hardware.Usb.UsbDevice The UsbDevice to request permission for.
return IObservable