DeviceConfig


public final class DeviceConfig


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

use Watch Face Format instead

Summary

Public constructors

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

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

Public methods

boolean
equals(Object other)

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

final long

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

final long

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

final boolean

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

final boolean

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

int

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

@NonNull String

This method 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
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
Deprecated in 1.3.0-alpha06
public final long getAnalogPreviewReferenceTimeMillis()

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

getDigitalPreviewReferenceTimeMillis

Added in 1.0.0
Deprecated in 1.3.0-alpha06
public final long getDigitalPreviewReferenceTimeMillis()

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
public final boolean hasBurnInProtection()

Whether or not the watch hardware supports burn in protection.

hasLowBitAmbient

Added in 1.2.0
Deprecated in 1.3.0-alpha06
public final boolean hasLowBitAmbient()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()