API reference

Device Class

Modifiers: final
Contains metadata information about a Meta Wearables device.
This data class provides essential information about a device's identity, availability status, and hardware type, which can be used for device management and feature detection.

Signature

data class Device(val name: String, val linkState: LinkState = LinkState.DISCONNECTED, val deviceType: DeviceType = DeviceType.UNKNOWN, val firmwareInfo: String? = null, val compatibility: DeviceCompatibility = DeviceCompatibility.COMPATIBLE)

Constructors

Device ( name , linkState , deviceType , firmwareInfo , compatibility )
Signature
constructor(name: String, linkState: LinkState = LinkState.DISCONNECTED, deviceType: DeviceType = DeviceType.UNKNOWN, firmwareInfo: String? = null, compatibility: DeviceCompatibility = DeviceCompatibility.COMPATIBLE)
Parameters
name: String  The human-readable name of the device
linkState: LinkState  Whether the device is Connected, Connecting, or Disconnected
deviceType: DeviceType  The specific type of Meta Wearables device
firmwareInfo: String?  Optional firmware build version information for the device
compatibility: DeviceCompatibility
Returns
Device

Properties

compatibility : DeviceCompatibility
[Get]
Signature
val compatibility: DeviceCompatibility
deviceType : DeviceType
[Get]
The specific type of Meta Wearables device
Signature
val deviceType: DeviceType
firmwareInfo : String?
[Get]
Optional firmware build version information for the device
Signature
val firmwareInfo: String? = null
linkState : LinkState
[Get]
Whether the device is Connected, Connecting, or Disconnected
Signature
val linkState: LinkState
name : String
[Get]
The human-readable name of the device
Signature
val name: String