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

Observer

public interface Observer

androidx.wear.watchface.Observer<T>


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

Summary

Public methods

abstract void onChanged(T t)

Called when the data is changed.

Public methods

onChanged

public abstract void onChanged (T t)

Called when the data is changed.

Parameters
t T: The new data