{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

Observer

fun interface Observer<T : Any?>


A simple callback that can receive from LiveData.

See also
LiveData

LiveData - for a usage description.

Summary

Public functions

Unit
onChanged(value: T)

Called when the data is changed is changed to value.

Public functions

onChanged

fun onChanged(value: T): Unit

Called when the data is changed is changed to value.