API reference

RegistrationState Class

Represents the current state of user registration with the Meta Wearables platform. Each state can optionally contain a registration error if the state transition was caused by an error.

Signature

sealed class RegistrationState

Properties

[Get]
An optional registration error associated with this state
Signature
open val error: RegistrationError? = null

Inner Classes

Unavailable Class

Modifiers: final
Registration is not currently available, typically due to system constraints.

Signature

data class Unavailable(val error: RegistrationError? = null) : RegistrationState

Constructors

Unavailable ( error )
Signature
constructor(error: RegistrationError? = null)
Parameters
error: RegistrationError?  An optional registration error that caused this state
Returns
RegistrationState.Unavailable

Properties

[Get]
An optional registration error that caused this state
Signature
open override val error: RegistrationError? = null

Available Class

Modifiers: final
Registration is available and can be initiated.

Signature

data class Available(val error: RegistrationError? = null) : RegistrationState

Constructors

Available ( error )
Signature
constructor(error: RegistrationError? = null)
Parameters
error: RegistrationError?  An optional registration error that caused this state
Returns
RegistrationState.Available

Properties

[Get]
An optional registration error that caused this state
Signature
open override val error: RegistrationError? = null

Unregistering Class

Modifiers: final
Unregistration process is currently in progress.

Signature

data class Unregistering(val error: RegistrationError? = null) : RegistrationState

Constructors

Unregistering ( error )
Signature
constructor(error: RegistrationError? = null)
Parameters
error: RegistrationError?  An optional registration error that caused this state
Returns
RegistrationState.Unregistering

Properties

[Get]
An optional registration error that caused this state
Signature
open override val error: RegistrationError? = null

Registered Class

Modifiers: final
User is successfully registered with the platform.

Signature

data class Registered(val error: RegistrationError? = null) : RegistrationState

Constructors

Registered ( error )
Signature
constructor(error: RegistrationError? = null)
Parameters
error: RegistrationError?  An optional registration error that caused this state
Returns
RegistrationState.Registered

Properties

[Get]
An optional registration error that caused this state
Signature
open override val error: RegistrationError? = null

Registering Class

Modifiers: final
Registration process is currently in progress.

Signature

data class Registering(val error: RegistrationError? = null) : RegistrationState

Constructors

Registering ( error )
Signature
constructor(error: RegistrationError? = null)
Parameters
error: RegistrationError?  An optional registration error that caused this state
Returns
RegistrationState.Registering

Properties

[Get]
An optional registration error that caused this state
Signature
open override val error: RegistrationError? = null