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 |
|---|
This method is deprecated. AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
Public methods |
|
|---|---|
boolean |
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
publicDeviceConfig(
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
getAnalogPreviewReferenceTimeMillis
public final long getAnalogPreviewReferenceTimeMillis()UTC reference time for screenshots of analog watch faces in milliseconds since the epoch.
getDigitalPreviewReferenceTimeMillis
public final long getDigitalPreviewReferenceTimeMillis()UTC reference time for screenshots of digital watch faces in milliseconds since the epoch.
hasBurnInProtection
public final boolean hasBurnInProtection()Whether or not the watch hardware supports burn in protection.
hasLowBitAmbient
public final boolean hasLowBitAmbient()Whether or not the watch hardware supports low bit ambient support.