Android 12 Developer Preview is here! Try it out, and give us your feedback!

Observer

interface Observer<T : Any!>
androidx.wear.watchface.Observer

A simple callback that can receive from ObservableWatchData. NB defined in java to allow SAM conversion of kotlin lambdas.

Summary

Public methods
abstract Unit
onChanged(@NonNull t: T)

Called when the data is changed.

Public methods

onChanged

abstract fun onChanged(@NonNull t: T): Unit

Called when the data is changed.

Parameters
t T: The new data