requestPermission(permission)
Requests permission to access VIVE AI Glasses resources.
func requestPermission(permission: ViveGlass.Permission) async -> ViveGlass.PermissionResult
Parameters
permission
This is the permission that the app is requesting.
Return value
PermissionResult.granted
if the user granted access permission
PermissionResult.denied
if the user denied access permission
See also
Permissions
func checkPermission()
Checks if the app has been granted the required permissions.
Enumerations
enum Permission
This defines the permission that the app is requesting.
enum PermissionResult
This indicates the result of the permission request.