DeviceConfig


class DeviceConfig


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

use Watch Face Format instead

Summary

Public constructors

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

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public functions

open operator Boolean
equals(other: Any?)

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

open Int

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

open String

This function is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public properties

Long

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Long

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Boolean

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Boolean

This property is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead.

Public constructors

DeviceConfig

Added in 1.0.0
Deprecated in 1.3.0-alpha06
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
Deprecated in 1.3.0-alpha06
val analogPreviewReferenceTimeMillisLong

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

digitalPreviewReferenceTimeMillis

Added in 1.0.0
Deprecated in 1.3.0-alpha06
val digitalPreviewReferenceTimeMillisLong

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

hasBurnInProtection

Added in 1.2.0
Deprecated in 1.3.0-alpha06
val hasBurnInProtectionBoolean

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

Added in 1.2.0
Deprecated in 1.3.0-alpha06
val hasLowBitAmbientBoolean

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