# CanvasComplication.InvalidateCallback

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/ComplicationSlot.kt+class:androidx.wear.watchface.CanvasComplication.InvalidateCallback) 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 interface CanvasComplication.InvalidateCallback
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
> AndroidX watchface libraries are deprecated, use Watch Face Format instead. For more info see: https://developer.android.com/training/wearables/wff

Interface for observing when a `https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication` needs the screen to be redrawn.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `[onInvalidate](https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication.InvalidateCallback#onInvalidate())()` **This method is deprecated.** AndroidX watchface libraries are deprecated, use Watch Face Format instead. |

## Public methods

### onInvalidate

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)

```
abstract void [onInvalidate](https://developer.android.com/reference/androidx/wear/watchface/CanvasComplication.InvalidateCallback#onInvalidate())()
```

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

Signals that the complication needs to be redrawn. Can be called on any thread.