Google is committed to advancing racial equity for Black communities. See how.

DeviceConfig

class DeviceConfig
kotlin.Any
   ↳ androidx.wear.watchface.client.DeviceConfig

Describes the hardware configuration of the device the watch face is running on.

Summary

Public constructors
<init>(hasLowBitAmbient: Boolean, hasBurnInProtection: Boolean, analogPreviewReferenceTimeMillis: Long, digitalPreviewReferenceTimeMillis: Long)

Describes the hardware configuration of the device the watch face is running on.

Properties
Long

UTC reference time for screenshots of analog watch faces in milliseconds since the epoch.

Long

UTC reference time for screenshots of digital watch faces in milliseconds since the epoch.

Boolean

Whether or not the watch hardware supports burn in protection.

Boolean

Whether or not the watch hardware supports low bit ambient support.

Public constructors

<init>

DeviceConfig(
    hasLowBitAmbient: Boolean,
    hasBurnInProtection: Boolean,
    analogPreviewReferenceTimeMillis: Long,
    digitalPreviewReferenceTimeMillis: Long)

Describes the hardware configuration of the device the watch face is running on.

Properties

analogPreviewReferenceTimeMillis

val analogPreviewReferenceTimeMillis: Long

UTC reference time for screenshots of analog watch faces in milliseconds since the epoch.

digitalPreviewReferenceTimeMillis

val digitalPreviewReferenceTimeMillis: Long

UTC reference time for screenshots of digital watch faces in milliseconds since the epoch.

hasBurnInProtection

val hasBurnInProtection: Boolean

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

val hasLowBitAmbient: Boolean

Whether or not the watch hardware supports low bit ambient support.