API reference

Permission Enum

Represents the types of permissions that can be requested from Meta Wearables devices.
These permissions control access to device capabilities such as camera streaming and photo capture. Permissions must be granted by the user through the Meta AI companion app before the corresponding functionality can be used. Check permission status with Wearables.checkPermissionStatus and request permissions using Wearables.RequestPermissionContract.
Example:
// Check if camera permission is granted
val result = Wearables.checkPermissionStatus(Permission.CAMERA)
result.onSuccess { status ->
    when (status) {
        PermissionStatus.Granted -> startStreaming()
        PermissionStatus.Denied -> requestPermission()
    }
}

See Also

Signature

enum Permission : Enum<Permission> 

Enumeration Constants

MemberDescription
CAMERA
Permission to access camera functionality on the connected wearable device for streaming and photo capture.
MICROPHONE
Permission to access microphone functionality on the connected wearable device.