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