XR8.requiredPermissions()
XR8.requiredPermissions()
Description
Return a list of permissions required by the application.
Parameters
None
Returns
A list of XR8.XrPermissions.permissions()
.
Example
if (XR8.XrPermissions) {
const permissions = XR8.XrPermissions.permissions()
const requiredPermissions = XR8.requiredPermissions()
if (!requiredPermissions.has(permissions.DEVICE_ORIENTATION)) {
return
}
}