Google is committed to advancing racial equity for Black communities. See how.

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