# ComplicationDisplayPolicies

Artifact: [androidx.wear.watchface:watchface-complications-data](https://developer.android.com/jetpack/androidx/releases/wear-watchface) [View Source](https://cs.android.com/search?q=file:androidx/wear/watchface/complications/data/Data.kt+class:androidx.wear.watchface.complications.data.ComplicationDisplayPolicies) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-watchface#1.2.0)

*** ** * ** ***


```
public static class ComplicationDisplayPolicies
```

<br />

*** ** * ** ***

The policies that control when complications should be displayed.

## Summary

| ### Constants |
|---|---|
| `static final int` | `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationDisplayPolicies#ALWAYS_DISPLAY() = 0` The default policy is that the complication should always be shown. |
| `static final int` | `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationDisplayPolicies#DO_NOT_SHOW_WHEN_DEVICE_LOCKED() = 1` Instructs the system not to display the complication while the device is locked. |

| ### Public fields |
|---|---|
| `static @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationDisplayPolicies` | `https://developer.android.com/reference/androidx/wear/watchface/complications/data/ComplicationDisplayPolicies#INSTANCE()` |

## Constants

### ALWAYS_DISPLAY

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

```
public static final int ALWAYS_DISPLAY = 0
```

The default policy is that the complication should always be shown.

### DO_NOT_SHOW_WHEN_DEVICE_LOCKED

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

```
public static final int DO_NOT_SHOW_WHEN_DEVICE_LOCKED = 1
```

Instructs the system not to display the complication while the device is locked.

## Public fields

### INSTANCE

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

```
public static @NonNull ComplicationDisplayPolicies INSTANCE
```