API reference

DeviceCompatibility Enum

Indicates the compatibility status between AI glasses and the Wearables Device Access Toolkit.
Compatibility is determined by comparing firmware versions on the device with SDK requirements. Use Device.compatibility to check a device's compatibility before attempting operations. The AutoDeviceSelector automatically filters out incompatible devices by default.
Example:
val metadata = Wearables.devicesMetadata[deviceId]?.value
when (metadata?.compatibility) {
    DeviceCompatibility.COMPATIBLE -> startSession(deviceId)
    DeviceCompatibility.DEVICE_UPDATE_REQUIRED -> showUpdateDevicePrompt()
    DeviceCompatibility.SDK_UPDATE_REQUIRED -> showUpdateSdkPrompt()
    else -> showUnknownCompatibilityWarning()
}

See Also

Signature

enum DeviceCompatibility : Enum<DeviceCompatibility> 

Enumeration Constants

MemberDescription
UNDEFINED
Unknown compatibility status, typically before version information is available.
COMPATIBLE
Device is fully compatible with the current Wearables Device Access Toolkit version.
DEVICE_UPDATE_REQUIRED
Device firmware is outdated and requires an update to work with this SDK version.
SDK_UPDATE_REQUIRED
Wearables Device Access Toolkit version is outdated and requires an update to work with this device.

Properties

displayString : String
[Get]
A human-readable description of the compatibility status
Signature
val displayString: String