Method RequestPermission
RequestPermission(string, Action<string, bool>)
Requests an Android permission from the user.
Declaration
public static void RequestPermission(string permissionName, Action<string, bool> callback)
Parameters
Type | Name | Description |
---|---|---|
string | permissionName | The permission to be requested (e.g. android.permission.CAMERA). |
Action<string, bool> | callback | A delegate to invoke when the permission has been granted or denied. The
parameters of the delegate are the |