Saved State Handle Binding Property
class SavedStateHandleBindingProperty<T>(savedStateHandle: SavedStateHandle, key: String)
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
A delegate class for persisting key-value map and notifying changed value on a property.
Parameters
savedStateHandle
A handle to saved state passed down to androidx.lifecycle.ViewModel.
key
A key for finding saved value.
Constructors
SavedStateHandleBindingProperty
Link copied to clipboard
fun SavedStateHandleBindingProperty(savedStateHandle: SavedStateHandle, key: String)
Content copied to clipboard
A handle to saved state passed down to androidx.lifecycle.ViewModel.
Functions
getValue
Link copied to clipboard
operator fun getValue(bindingObservable: BindingObservable, property: KProperty<*>): T?
Content copied to clipboard
setValue
Link copied to clipboard
operator fun setValue(bindingObservable: BindingObservable, property: KProperty<*>, value: T?)
Content copied to clipboard