API reference

PermissionError Enum

Represents the specific types of errors that can occur during permission operations with Meta Wearables devices.
These errors help identify the root cause of permission failures for proper error handling and user communication.

Signature

enum PermissionError : Enum<PermissionError> , DatError

Enumeration Constants

MemberDescription
NO_DEVICE
No wearable devices have been discovered or registered.
NO_DEVICE_WITH_CONNECTION
All discovered devices are powered off or disconnected.
META_AI_NOT_INSTALLED
The Meta AI companion app is not installed on the device.
CONNECTION_ERROR
A connection error occurred while communicating with the device.
REQUEST_IN_PROGRESS
A permission request is already in progress.
REQUEST_TIMEOUT
The permission request exceeded the allowed time limit.
INTERNAL_ERROR
An unexpected internal error occurred.

Properties

description : String
[Get]
A human-readable description of the error suitable for logging and debugging purposes.
Signature
open override val description: String

Methods

getLocalizedDescription ( context )
Returns a localized description of the error using Android string resources when available.
Signature
open override fun getLocalizedDescription(context: Context?): String
Parameters
context: Context?  Optional Android context for accessing string resources. If null or if no localized string is available, returns the default PermissionError.description.
Returns
String  The localized error description, or the default description if localization unavailable.