API reference
API reference
Select your platform
No SDKs available
No versions available

OVRPermissionsRequester Class

This class handles Android permission requests for the capabilities listed in Permission.
It is recommended to use Unity's Android Permission API directly to request permissions which require callbacks. Subscribing to events here may not be guaranteed to be called when using OVRManager startup permissions toggle, due to a potential race condition if the request completes before your callback has been registered.

Member Enumerations

Enumeration Permission

Enum listing the capabilities this class can request permission for.
FaceTracking
Represents the Face Tracking capability.
BodyTracking
Represents the Body Tracking capability.
EyeTracking
Represents the Eye Tracking capability.
Scene
Represents the Scene capability.
RecordAudio
Represents the Audio Recording permission (required for audio based Face Tracking capability).

Events

Occurs when a Permission is granted.

Public Statics

static const string FaceTrackingPermission[Get]
static const string EyeTrackingPermission[Get]
static const string BodyTrackingPermission[Get]
static const string ScenePermission[Get]
static const string RecordAudioPermission[Get]

Static Member Functions

Returns the permission ID of the given Permission to be requested from the user.
Parameters
permission
The Permission to get the ID of.
Returns
Exceptions
ArgumentOutOfRangeException
Thrown when an invalid Permission is used.
Returns whether the permission has been granted.
These permissions are Android-specific, therefore we always return true if on any other platform.
Parameters
permission
Permission to be checked.
Requests the listed permissions.
Parameters
permissions
Set of Permission to be requested.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon