requiredPermissions()
requiredPermissions: ([permissions])
Description​
requiredPermissions
is used to define the list of permissions required by a pipeline module.
Parameters​
Parameter | Description |
---|---|
permissions | An array of XR8.XrPermissions.permissions() required by the pipeline module. |
Example​
XR8.addCameraPipelineModule({
name: 'request-gyro',
requiredPermissions: () => ([XR8.XrPermissions.permissions().DEVICE_ORIENTATION]),
})