# ComplicationDisplayPolicies

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

*** ** * ** ***

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

<br />

```
object ComplicationDisplayPolicies
```

<br />

*** ** * ** ***

The policies that control when complications should be displayed.

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [ALWAYS_DISPLAY](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationDisplayPolicies#ALWAYS_DISPLAY())` = 0` The default policy is that the complication should always be shown.                                              |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DO_NOT_SHOW_WHEN_DEVICE_LOCKED](https://developer.android.com/reference/kotlin/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. |

## Constants

### ALWAYS_DISPLAY

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

```
const val ALWAYS_DISPLAY = 0: Int
```

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)  

```
const val DO_NOT_SHOW_WHEN_DEVICE_LOCKED = 1: Int
```

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