Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 2.0.0
belongs to Maven artifact androidx.lifecycle:lifecycle-livedata-core:2.1.0-alpha01

Observer

public interface Observer

androidx.lifecycle.Observer<T>


A simple callback that can receive from LiveData.

Summary

Public methods

abstract void onChanged(T t)

Called when the data is changed.

Public methods

onChanged

added in version 2.0.0
public abstract void onChanged (T t)

Called when the data is changed.

Parameters
t T: The new data