class DeviceConfig


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

Summary

Public constructors

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

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public 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

DeviceConfig

Added in 1.0.0
DeviceConfig(
    hasLowBitAmbient: Boolean,
    hasBurnInProtection: Boolean,
    analogPreviewReferenceTimeMillis: Long,
    digitalPreviewReferenceTimeMillis: Long
)
Parameters
hasLowBitAmbient: Boolean

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

hasBurnInProtection: Boolean

Whether or not the watch hardware supports burn in protection.

analogPreviewReferenceTimeMillis: Long

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

digitalPreviewReferenceTimeMillis: Long

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

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

analogPreviewReferenceTimeMillis

Added in 1.0.0
val analogPreviewReferenceTimeMillisLong

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

digitalPreviewReferenceTimeMillis

Added in 1.0.0
val digitalPreviewReferenceTimeMillisLong

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

hasBurnInProtection

Added in 1.2.0
val hasBurnInProtectionBoolean

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

Added in 1.2.0
val hasLowBitAmbientBoolean

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