API reference

RegistrationError Enum

Enum representing errors that can occur during the Meta Wearables registration process.
Each error is identified by a unique string resource that provides a human-readable description to help identify and resolve issues that prevent successful registration with the Meta Wearables platform.

Signature

enum RegistrationError : Enum<RegistrationError> , DatError

Enumeration Constants

MemberDescription
ALREADY_REGISTERED
User is already registered when attempting to register again.
ALREADY_UNREGISTERED
User is already unregistered when attempting to unregister again.
FAILED_TO_REGISTER
Registration process failed for an unspecified reason.
FAILED_TO_UNREGISTER
Unregistration process failed for an unspecified reason.
META_AI_NOT_INSTALLED
The Meta AI app is not installed on the device, which is required for registration.
UNKNOWN
An unknown error occurred during the registration process.

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 RegistrationError.description.
Returns
String  The localized error description, or the default description if localization unavailable.