DeviceConfig

public final class DeviceConfig


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

Summary

Public fields

final long

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

final long

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

final boolean

Whether or not the watch hardware supports burn in protection.

final boolean

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

Public constructors

DeviceConfig(
    boolean hasLowBitAmbient,
    boolean hasBurnInProtection,
    long analogPreviewReferenceTimeMillis,
    long digitalPreviewReferenceTimeMillis
)

Public fields

analogPreviewReferenceTimeMillis

@NonNull
public final long analogPreviewReferenceTimeMillis

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

digitalPreviewReferenceTimeMillis

@NonNull
public final long digitalPreviewReferenceTimeMillis

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

hasBurnInProtection

@NonNull
public final boolean hasBurnInProtection

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

@NonNull
public final boolean hasLowBitAmbient

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

Public constructors

DeviceConfig

public final DeviceConfig(
    boolean hasLowBitAmbient,
    boolean hasBurnInProtection,
    long analogPreviewReferenceTimeMillis,
    long digitalPreviewReferenceTimeMillis
)
Parameters
boolean hasLowBitAmbient

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

boolean hasBurnInProtection

Whether or not the watch hardware supports burn in protection.

long analogPreviewReferenceTimeMillis

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

long digitalPreviewReferenceTimeMillis

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