C# Class ZXing.Net.Mobile.Android.PermissionsHandler

Mostrar archivo Open project: Redth/ZXing.Net.Mobile

Public Methods

Method Description
NeedsPermissionRequest ( Android.Content.Context context ) : bool
OnRequestPermissionsResult ( int requestCode, string permissions, Permission grantResults ) : void
RequestPermissionsAsync ( Android.App.Activity activity ) : Task

Private Methods

Method Description
CheckCameraPermissions ( Android.Content.Context context, bool throwOnError = true ) : bool
CheckPermissions ( Android.Content.Context context, string permission, bool throwOnError = true ) : bool
CheckTorchPermissions ( Android.Content.Context context, bool throwOnError = true ) : bool
DoRequestPermissions ( Android.App.Activity activity, string permissions, int requestCode ) : bool
IsPermissionGranted ( Android.Content.Context context, string permission ) : bool
IsPermissionInManifest ( Android.Content.Context context, string permission ) : bool

Method Details

NeedsPermissionRequest() public static method

public static NeedsPermissionRequest ( Android.Content.Context context ) : bool
context Android.Content.Context
return bool

OnRequestPermissionsResult() public static method

public static OnRequestPermissionsResult ( int requestCode, string permissions, Permission grantResults ) : void
requestCode int
permissions string
grantResults Permission
return void

RequestPermissionsAsync() public static method

public static RequestPermissionsAsync ( Android.App.Activity activity ) : Task
activity Android.App.Activity
return Task