# AndroidXRPermissionExtensions

Helper class for[AndroidXRPermission](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#androidxrpermission).

## Summary

|                                                                                                                                                                                                                                                        ### Public static functions                                                                                                                                                                                                                                                         ||
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ToPermissionString](https://developer.android.com/develop/xr/unity/reference/class/Google/XR/Extensions/AndroidXRPermissionExtensions#topermissionstring)`(this `[AndroidXRPermission](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#androidxrpermission)` permission)` | `string` Convert[AndroidXRPermission](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#androidxrpermission)to permission string that can be used in runtime permission request. |

## Public static functions

### ToPermissionString

```c#
string ToPermissionString(
  this AndroidXRPermission permission
)
```  
Convert[AndroidXRPermission](https://developer.android.com/develop/xr/unity/reference/namespace/Google/XR/Extensions#androidxrpermission)to permission string that can be used in runtime permission request.

<br />

|                                                 Details                                                  ||
|-------------|---------------------------------------------------------------------------------------------|
| Parameters  | |--------------|----------------------------| | `permission` | The Android XR permission. | |
| **Returns** | The permission string injected to manifest.                                                 |