ObservableViewModel

abstract class ObservableViewModel : ViewModel, Observable

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard
open override fun addOnPropertyChangedCallback(callback: Observable.OnPropertyChangedCallback)
Link copied to clipboard
Link copied to clipboard

Notifies listeners that all properties of this instance have changed.

Link copied to clipboard

Notifies listeners that a specific property has changed. The getter for the property that changes should be marked with Bindable to generate a field in BR to be used as fieldId.

Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
open override fun removeOnPropertyChangedCallback(callback: Observable.OnPropertyChangedCallback)