CanvasComplication.InvalidateCallback


Note: As of July 10, 2024, watch faces must use the Watch Face Format in order to be installed on new watches that launch with Wear OS 5 pre-installed. Learn more about the user-facing changes in this Help Center article.

Additionally, starting in early 2025 (specific date to be announced during Q4 2024), all new watch faces published on Google Play must use the Watch Face Format.

interface CanvasComplication.InvalidateCallback


Interface for observing when a CanvasComplication needs the screen to be redrawn.

Summary

Public functions

Unit

Signals that the complication needs to be redrawn.

Public functions

onInvalidate

Added in 1.0.0
fun onInvalidate(): Unit

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