Lifecycle Owner Delegate
expect class LifecycleOwnerDelegate : LifecycleOwner, ViewModelStoreOwner, SavedStateRegistryOwner, HasDefaultViewModelProviderFactory
生命周期拥有者的代理,
Types
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun <VM : ViewModel> ViewModelStoreOwner.createVM(modelClass: KClass<VM>, key: String?, extras: CreationExtras): VM
用于构造简单的ViewModel的工厂
Link copied to clipboard
Link copied to clipboard
suspend fun LifecycleOwner.repeatOnLifecycle(state: Lifecycle.State, block: suspend CoroutineScope.() -> Unit)
Link copied to clipboard
Update the state to be the lower of the two constraints: