# WatchState

Artifact: [androidx.wear.watchface:watchface](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/WatchState.kt+class:androidx.wear.watchface.WatchState) 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 WatchState
```

<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 current state of the wearable including some hardware details such as whether or not it supports burn in prevention and low-bit ambient.

## Summary

| ### Public constructors |
|---|
| `[WatchState](https://developer.android.com/reference/androidx/wear/watchface/WatchState#WatchState(kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long,kotlin.Int,kotlin.Boolean))( @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Integer.html> interruptionFilter, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isAmbient, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isBatteryLowAndNotCharging, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isVisible, boolean hasLowBitAmbient, boolean hasBurnInProtection, long analogPreviewReferenceTimeMillis, long digitalPreviewReferenceTimeMillis, int chinHeight, boolean isHeadless )` **This method is deprecated.** WatchState constructors without watchFaceInstanceId are deprecated |
| `[WatchState](https://developer.android.com/reference/androidx/wear/watchface/WatchState#WatchState(kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long,kotlin.Int,kotlin.Boolean,kotlinx.coroutines.flow.StateFlow))( @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Integer.html> interruptionFilter, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isAmbient, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isBatteryLowAndNotCharging, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isVisible, boolean hasLowBitAmbient, boolean hasBurnInProtection, long analogPreviewReferenceTimeMillis, long digitalPreviewReferenceTimeMillis, @https://developer.android.com/reference/androidx/annotation/Px int chinHeight, boolean isHeadless, @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> watchFaceInstanceId )` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

| ### Public methods |
|---|---|
| `final long` | `[getAnalogPreviewReferenceTimeMillis](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getAnalogPreviewReferenceTimeMillis())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/Px int` | `[getChinHeight](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getChinHeight())()` **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/WatchState#getDigitalPreviewReferenceTimeMillis())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Integer.html>` | `[getInterruptionFilter](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getInterruptionFilter())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html>` | `[getWatchFaceInstanceId](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getWatchFaceInstanceId())()` **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/WatchState#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/WatchState#hasLowBitAmbient())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html>` | `[isAmbient](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isAmbient())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html>` | `[isBatteryLowAndNotCharging](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isBatteryLowAndNotCharging())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final boolean` | `[isHeadless](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isHeadless())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html>` | `[isVisible](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isVisible())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public constructors

### WatchState

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

```
public [WatchState](https://developer.android.com/reference/androidx/wear/watchface/WatchState#WatchState(kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long,kotlin.Int,kotlin.Boolean))(
    @NonNull StateFlow<Integer> interruptionFilter,
    @NonNull StateFlow<Boolean> isAmbient,
    @NonNull StateFlow<Boolean> isBatteryLowAndNotCharging,
    @NonNull StateFlow<Boolean> isVisible,
    boolean hasLowBitAmbient,
    boolean hasBurnInProtection,
    long analogPreviewReferenceTimeMillis,
    long digitalPreviewReferenceTimeMillis,
    int chinHeight,
    boolean isHeadless
)
```

> [!CAUTION]
> **This method is deprecated.**   
> WatchState constructors without watchFaceInstanceId are deprecated

### WatchState

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

```
public [WatchState](https://developer.android.com/reference/androidx/wear/watchface/WatchState#WatchState(kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlinx.coroutines.flow.StateFlow,kotlin.Boolean,kotlin.Boolean,kotlin.Long,kotlin.Long,kotlin.Int,kotlin.Boolean,kotlinx.coroutines.flow.StateFlow))(
    @NonNull StateFlow<Integer> interruptionFilter,
    @NonNull StateFlow<Boolean> isAmbient,
    @NonNull StateFlow<Boolean> isBatteryLowAndNotCharging,
    @NonNull StateFlow<Boolean> isVisible,
    boolean hasLowBitAmbient,
    boolean hasBurnInProtection,
    long analogPreviewReferenceTimeMillis,
    long digitalPreviewReferenceTimeMillis,
    @Px int chinHeight,
    boolean isHeadless,
    @NonNull StateFlow<@NonNull String> watchFaceInstanceId
)
```

> [!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 |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Integer.html> interruptionFilter` | The current user interruption settings. See `https://developer.android.com/reference/android/app/NotificationManager.html`. This is initially `null` because the watch face is created before the system has sent the state. Based on the value the watch face should adjust the amount of information it displays. For example, if it displays the number of pending emails, it should hide it if interruptionFilter is equal to `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_NONE`. `interruptionFilter` can be `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_NONE`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_PRIORITY`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALL`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALARMS`, or `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_UNKNOWN`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isAmbient` | Whether or not the watch is in ambient mode. This is initially `null` because the watch face is created before the system has sent the state. The order in which ambient vs style changes are reported is not guaranteed. Likewise the order of isAmbient flow callbacks and `https://developer.android.com/reference/androidx/wear/watchface/Renderer.CanvasRenderer#render(android.graphics.Canvas,android.graphics.Rect,java.time.ZonedDateTime)` or `https://developer.android.com/reference/androidx/wear/watchface/Renderer.GlesRenderer#render(java.time.ZonedDateTime)` calls is not defined. For rendering please refer to `https://developer.android.com/reference/androidx/wear/watchface/RenderParameters#drawMode()` instead of isAmbient because you might receive requests for rendering non-ambient frames while the watch is ambient (e.g. editing from the companion phone). |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isBatteryLowAndNotCharging` | Whether or not we should conserve power due to a low battery which isn't charging. This is initially `null` because the watch face is created before the system has sent the state. Only valid if `https://developer.android.com/reference/android/support/wearable/watchface/WatchFaceStyle.html#hideNotificationIndicator` is true. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<https://developer.android.com/reference/java/lang/Boolean.html> isVisible` | Whether or not the watch face is visible. This is initially `null` because the watch face is created before the system has sent the state. |
| `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 previews of analog watch faces in milliseconds since the epoch. |
| `long digitalPreviewReferenceTimeMillis` | UTC reference time for previews of digital watch faces in milliseconds since the epoch. |
| `@https://developer.android.com/reference/androidx/annotation/Px int chinHeight` | the size, in pixels, of the chin or zero if the device does not have a chin. A chin is a section at the bottom of a circular display that is visible due to hardware limitations. |
| `boolean isHeadless` | Whether or not this is a headless watchface. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-state-flow/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html> watchFaceInstanceId` | The ID associated with the watch face instance. Note there may be more than one instance associated with a `https://developer.android.com/reference/androidx/wear/watchface/WatchFaceService`. See `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId` for more details. ``` @deprecated use Watch Face Format instead ``` |

## Public methods

### 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/WatchState#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 previews of analog watch faces in milliseconds since the epoch.

### getChinHeight

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 @Px int [getChinHeight](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getChinHeight())()
```

> [!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

the size, in pixels, of the chin or zero if the device does not have a chin. A chin is a section at the bottom of a circular display that is visible due to hardware limitations.

### 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/WatchState#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 previews of digital watch faces in milliseconds since the epoch.

### getInterruptionFilter

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 @NonNull StateFlow<Integer> [getInterruptionFilter](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getInterruptionFilter())()
```

> [!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

The current user interruption settings. See `https://developer.android.com/reference/android/app/NotificationManager.html`. This is initially `null` because the watch face is created before the system has sent the state. Based on the value the watch face should adjust the amount of information it displays. For example, if it displays the number of pending emails, it should hide it if interruptionFilter is equal to `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_NONE`. `interruptionFilter` can be `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_NONE`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_PRIORITY`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALL`, `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALARMS`, or `https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_UNKNOWN`.

### getWatchFaceInstanceId

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

```
public final @NonNull StateFlow<@NonNull String> [getWatchFaceInstanceId](https://developer.android.com/reference/androidx/wear/watchface/WatchState#getWatchFaceInstanceId())()
```

> [!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

The ID associated with the watch face instance. Note there may be more than one instance associated with a `https://developer.android.com/reference/androidx/wear/watchface/WatchFaceService`. See `https://developer.android.com/reference/androidx/wear/watchface/client/WatchFaceId` for more details.

```
@deprecated use Watch Face Format instead
```

### 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/WatchState#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/WatchState#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.

### isAmbient

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 @NonNull StateFlow<Boolean> [isAmbient](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isAmbient())()
```

> [!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 is in ambient mode. This is initially `null` because the watch face is created before the system has sent the state. The order in which ambient vs style changes are reported is not guaranteed. Likewise the order of isAmbient flow callbacks and `https://developer.android.com/reference/androidx/wear/watchface/Renderer.CanvasRenderer#render(android.graphics.Canvas,android.graphics.Rect,java.time.ZonedDateTime)` or `https://developer.android.com/reference/androidx/wear/watchface/Renderer.GlesRenderer#render(java.time.ZonedDateTime)` calls is not defined. For rendering please refer to `https://developer.android.com/reference/androidx/wear/watchface/RenderParameters#drawMode()` instead of isAmbient because you might receive requests for rendering non-ambient frames while the watch is ambient (e.g. editing from the companion phone).

### isBatteryLowAndNotCharging

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

```
public final @NonNull StateFlow<Boolean> [isBatteryLowAndNotCharging](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isBatteryLowAndNotCharging())()
```

> [!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 we should conserve power due to a low battery which isn't charging. This is initially `null` because the watch face is created before the system has sent the state. Only valid if `https://developer.android.com/reference/android/support/wearable/watchface/WatchFaceStyle.html#hideNotificationIndicator` is true.

### isHeadless

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 boolean [isHeadless](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isHeadless())()
```

> [!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 this is a headless watchface.

### isVisible

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 @NonNull StateFlow<Boolean> [isVisible](https://developer.android.com/reference/androidx/wear/watchface/WatchState#isVisible())()
```

> [!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 face is visible. This is initially `null` because the watch face is created before the system has sent the state.