public final class DeviceConfig


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

Summary

Public constructors

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

Public methods

boolean
equals(Object other)
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.

int
@NonNull String

Public constructors

DeviceConfig

Added in 1.0.0
public 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.

Public methods

equals

public boolean equals(Object other)

getAnalogPreviewReferenceTimeMillis

Added in 1.0.0
public final long getAnalogPreviewReferenceTimeMillis()

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

getDigitalPreviewReferenceTimeMillis

Added in 1.0.0
public final long getDigitalPreviewReferenceTimeMillis()

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

hasBurnInProtection

Added in 1.2.0
public final boolean hasBurnInProtection()

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

Added in 1.2.0
public final boolean hasLowBitAmbient()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()