# ComplicationPersistencePolicies

# ComplicationPersistencePolicies

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.ComplicationPersistencePolicies)  
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/ComplicationPersistencePolicies "View this page in Java")

<br />

```
object ComplicationPersistencePolicies
```

<br />

*** ** * ** ***

The policies that control complication persistence.

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [CACHING_ALLOWED](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationPersistencePolicies#CACHING_ALLOWED())` = 0` The default policy is that persistence/caching is allowed.        |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DO_NOT_PERSIST](https://developer.android.com/reference/kotlin/androidx/wear/watchface/complications/data/ComplicationPersistencePolicies#DO_NOT_PERSIST())` = 1` Instructs the system to not persist the complication past a reboot. |

## Constants

### CACHING_ALLOWED

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

```
const val CACHING_ALLOWED = 0: Int
```

The default policy is that persistence/caching is allowed.  

### DO_NOT_PERSIST

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

```
const val DO_NOT_PERSIST = 1: Int
```

Instructs the system to not persist the complication past a reboot. This is useful when freshness is important.