State View Model
继承这个类可以快速创建具备SaveInstance功能的ViewModel
Constructors
StateViewModel
Link copied to clipboard
Properties
stateHandle
Link copied to clipboard
Extensions
stateHandle
Link copied to clipboard
inline fun <V> StateViewModel?.stateHandle(defValue: V? = null, name: String? = null): ReadWriteProperty<StateViewModel, V>
Content copied to clipboard
自动根据生命周期使用FragmentActivity.onSaveInstanceState