# DeviceConfig

# 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)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/watchface/client/DeviceConfig "View this page in Java")

<br />

```
class DeviceConfig
```

<br />

*** ** * ** ***

| **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/kotlin/androidx/wear/watchface/client/DeviceConfig#DeviceConfig(kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long))~~`(` ` hasLowBitAmbient: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` hasBurnInProtection: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`,` ` analogPreviewReferenceTimeMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` digitalPreviewReferenceTimeMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

|                                        ### Public functions                                         |
|-----------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `open operator `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | ~~[equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#equals(kotlin.Any))~~`(other: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?)` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `open `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                  | ~~[hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#hashCode())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |
| `open `[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)            | ~~[toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#toString())~~`()` **This function is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                                                                                            |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)       | [analogPreviewReferenceTimeMillis](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#analogPreviewReferenceTimeMillis()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.   |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)       | [digitalPreviewReferenceTimeMillis](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#digitalPreviewReferenceTimeMillis()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [hasBurnInProtection](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#hasBurnInProtection()) **This property is deprecated.**AndroidX watchface libraries are deprecated, use Watch Face Format instead.                             |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | [hasLowBitAmbient](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#hasLowBitAmbient()) **This property 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)  

```
[DeviceConfig](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#DeviceConfig(kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long))(
    hasLowBitAmbient: Boolean,
    hasBurnInProtection: Boolean,
    analogPreviewReferenceTimeMillis: Long,
    digitalPreviewReferenceTimeMillis: Long
)
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

|                                                     Parameters                                                     |
|--------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------|
| `hasLowBitAmbient: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)            | Whether or not the watch hardware supports low bit ambient support.                        |
| `hasBurnInProtection: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)         | Whether or not the watch hardware supports burn in protection.                             |
| `analogPreviewReferenceTimeMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)  | UTC reference time for screenshots of analog watch faces in milliseconds since the epoch.  |
| `digitalPreviewReferenceTimeMillis: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | UTC reference time for screenshots of digital watch faces in milliseconds since the epoch. |

## Public functions

### equals

```
open operator fun [equals](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#equals(kotlin.Any))(other: Any?): Boolean
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### hashCode

```
open fun [hashCode](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#hashCode())(): Int
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

### toString

```
open fun [toString](https://developer.android.com/reference/kotlin/androidx/wear/watchface/client/DeviceConfig#toString())(): String
```
| **This function is deprecated.**   
AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff  

## Public properties

### analogPreviewReferenceTimeMillis

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)  

```
val analogPreviewReferenceTimeMillis: Long
```
| **This property 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.  

### digitalPreviewReferenceTimeMillis

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)  

```
val digitalPreviewReferenceTimeMillis: Long
```
| **This property 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)  

```
val hasBurnInProtection: Boolean
```
| **This property 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)  

```
val hasLowBitAmbient: Boolean
```
| **This property 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.