GoogleARCore.AndroidPermissionsManager

Manages Android permissions for the Unity application.

Summary

Inheritance

Inherits from: AndroidJavaProxy

Public static functions

IsPermissionGranted(string permissionName)
bool
Checks if an Android permission is granted to the application.
RequestPermission(string permissionName)
Requests an Android permission from the user.

Public static functions

IsPermissionGranted

bool IsPermissionGranted(
  string permissionName
)

Checks if an Android permission is granted to the application.

Details
Parameters
permissionName
The full name of the Android permission to check (e.g. android.permission.CAMERA).
Returns
true if permissionName is granted to the application, otherwise false.

RequestPermission

AsyncTask< AndroidPermissionsRequestResult > RequestPermission(
  string permissionName
)

Requests an Android permission from the user.

Details
Parameters
permissionName
The permission to be requested (e.g. android.permission.CAMERA).
Returns
An asynchronous task the completes when the user has accepted/rejected the requested permission and yields a AndroidPermissionsRequestResult that summarizes the result. If this method is called when another permissions request is pending null will be returned instead.

Send feedback about...