# DeviceConfig

Artifact: [androidx.wear.watchface:watchface-client](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/client/DeviceConfig.kt+class:androidx.wear.watchface.client.DeviceConfig) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

*** ** * ** ***


```
public final class DeviceConfig
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

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

use Watch Face Format instead

## Summary

| ### Public constructors |
|---|
| `[DeviceConfig](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#DeviceConfig(kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long))( 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](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#equals(kotlin.Any))(https://developer.android.com/reference/java/lang/Object.html other)` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final long` | `[getAnalogPreviewReferenceTimeMillis](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#getAnalogPreviewReferenceTimeMillis())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final long` | `[getDigitalPreviewReferenceTimeMillis](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#getDigitalPreviewReferenceTimeMillis())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[hasBurnInProtection](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hasBurnInProtection())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[hasLowBitAmbient](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hasLowBitAmbient())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `int` | `[hashCode](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hashCode())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `[toString](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#toString())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### DeviceConfig

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public [DeviceConfig](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#DeviceConfig(kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long))(
    boolean hasLowBitAmbient,
    boolean hasBurnInProtection,
    long analogPreviewReferenceTimeMillis,
    long digitalPreviewReferenceTimeMillis
)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

| 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](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#equals(kotlin.Any))(Object other)
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### getAnalogPreviewReferenceTimeMillis

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final long [getAnalogPreviewReferenceTimeMillis](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#getAnalogPreviewReferenceTimeMillis())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

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

### getDigitalPreviewReferenceTimeMillis

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.0.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final long [getDigitalPreviewReferenceTimeMillis](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#getDigitalPreviewReferenceTimeMillis())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

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

### hasBurnInProtection

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final boolean [hasBurnInProtection](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hasBurnInProtection())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Whether or not the watch hardware supports burn in protection.

### hasLowBitAmbient

Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0) Deprecated in [1.3.0-alpha07](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.3.0-alpha07)

```
public final boolean [hasLowBitAmbient](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hasLowBitAmbient())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

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

### hashCode

```
public int [hashCode](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#hashCode())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

### toString

```
public @NonNull String [toString](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig#toString())()
```

> [!CAUTION]
> **This method is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff