Class UsbPermissionBroadcastReceiver
Inheritance
System.Object
Java.Lang.Object
Android.Content.BroadcastReceiver
UsbPermissionBroadcastReceiver
Implements
Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable
Inherited Members
Android.Content.BroadcastReceiver.InvokeAbortBroadcast()
Android.Content.BroadcastReceiver.ClearAbortBroadcast()
Android.Content.BroadcastReceiver.GetResultExtras(System.Boolean)
Android.Content.BroadcastReceiver.GoAsync()
Android.Content.BroadcastReceiver.PeekService(Android.Content.Context, Android.Content.Intent)
Android.Content.BroadcastReceiver.SetOrderedHint(System.Boolean)
Android.Content.BroadcastReceiver.SetResult(Android.App.Result, System.String, Android.OS.Bundle)
Android.Content.BroadcastReceiver.SetResultExtras(Android.OS.Bundle)
Android.Content.BroadcastReceiver.AbortBroadcast
Android.Content.BroadcastReceiver.DebugUnregister
Android.Content.BroadcastReceiver.IsInitialStickyBroadcast
Android.Content.BroadcastReceiver.IsOrderedBroadcast
Android.Content.BroadcastReceiver.ResultCode
Android.Content.BroadcastReceiver.ResultData
Java.Lang.Object.Java.Interop.IJavaPeerable.DisposeUnlessReferenced()
Java.Lang.Object.Java.Interop.IJavaPeerable.Disposed()
Java.Lang.Object.Java.Interop.IJavaPeerable.Finalized()
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniIdentityHashCode(System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetJniManagedPeerState(Java.Interop.JniManagedPeerStates)
Java.Lang.Object.Java.Interop.IJavaPeerable.SetPeerReference(Java.Interop.JniObjectReference)
Java.Lang.Object.Dispose()
Java.Lang.Object.Dispose(System.Boolean)
Java.Lang.Object.GetObject<T>(System.IntPtr, System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.GetObject<T>(System.IntPtr, Android.Runtime.JniHandleOwnership)
Java.Lang.Object.FromArray<T>(T[])
Java.Lang.Object.Clone()
Java.Lang.Object.Equals(Java.Lang.Object)
Java.Lang.Object.JavaFinalize()
Java.Lang.Object.GetHashCode()
Java.Lang.Object.Notify()
Java.Lang.Object.NotifyAll()
Java.Lang.Object.ToString()
Java.Lang.Object.Wait()
Java.Lang.Object.Wait(System.Int64)
Java.Lang.Object.Wait(System.Int64, System.Int32)
Java.Lang.Object.Java.Interop.IJavaPeerable.JniManagedPeerState
Java.Lang.Object.Class
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Usb.Net.Android
Assembly: Usb.Net.Android.dll
Syntax
public class UsbPermissionBroadcastReceiver : BroadcastReceiver, IJavaObject, IJavaObjectEx, IJavaPeerable, IDisposable, IUsbPermissionBroadcastReceiver
Constructors
UsbPermissionBroadcastReceiver(UsbManager, UsbDevice, Context, IAndroidFactory, ILogger)
Declaration
public UsbPermissionBroadcastReceiver(UsbManager manager, UsbDevice device, Context context, IAndroidFactory androidFactory, ILogger logger = null)
Parameters
Type | Name | Description |
---|---|---|
Android.Hardware.Usb.UsbManager | manager | |
Android.Hardware.Usb.UsbDevice | device | |
Android.Content.Context | context | |
IAndroidFactory | androidFactory | |
Microsoft.Extensions.Logging.ILogger | logger |
Properties
IsPermissionGranted
Declaration
public bool? IsPermissionGranted { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> |
Methods
OnReceive(Context, Intent)
Declaration
public override void OnReceive(Context context, Intent intent)
Parameters
Type | Name | Description |
---|---|---|
Android.Content.Context | context | |
Android.Content.Intent | intent |
Overrides
Android.Content.BroadcastReceiver.OnReceive(Android.Content.Context, Android.Content.Intent)
Register()
Declaration
public void Register()
Events
Received
Declaration
public event EventHandler Received
Event Type
Type | Description |
---|---|
System.EventHandler |
Implements
Android.Runtime.IJavaObject
Java.Interop.IJavaPeerable
System.IDisposable