AndroidXRPermissionUtil
Utility component to help manage runtime permission requests.
Summary
Inheritance
Inherits from:MonoBehaviour
Public attributes |
|
---|---|
AndroidXRPermissions = new List
|
List< AndroidXRPermission >
A list of AndroidXRPermissions to request at runtime.
|
GenernalAndroidPermissions = new List
|
List< string >
A list of general Android permissions to request at runtime.
|
PermissionRationale = "Required to enable Android XR feature at runtime."
|
string
The rationale of requesting Android permissions.
|
Public functions |
|
---|---|
AllPermissionGranted()
|
bool
Checks if all permissions are granted at runtime.
|
IsPerimssionGranted(string permission)
|
bool
Checks if the given permission is granted at runtime.
|
Public attributes
AndroidXRPermissions
List< AndroidXRPermission > AndroidXRPermissions = new List()
A list of AndroidXRPermissions to request at runtime.
GenernalAndroidPermissions
List< string > GenernalAndroidPermissions = new List()
A list of general Android permissions to request at runtime.
PermissionRationale
string PermissionRationale = "Required to enable Android XR feature at runtime."
The rationale of requesting Android permissions.
Public functions
AllPermissionGranted
bool AllPermissionGranted()
Checks if all permissions are granted at runtime.
Details | |
---|---|
Returns |
A bool to indicate that all permissions are granted at runtime.
|
IsPerimssionGranted
bool IsPerimssionGranted( string permission )
Checks if the given permission is granted at runtime.
Details | |||
---|---|---|---|
Parameters |
|
||
Returns |
A bool to indicate that the permission is granted at runtime.
|