Lifecycle Owner Delegate
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
actual fun LifecycleOwnerDelegate.LocalOwnersProvider(saveableStateHolder: SaveableStateHolder, pageScope: PageScope, content: () -> Unit)
expect fun LifecycleOwnerDelegate.LocalOwnersProvider(saveableStateHolder: SaveableStateHolder, pageScope: PageScope, content: @Composable () -> Unit)
actual fun LifecycleOwnerDelegate.LocalOwnersProvider(saveableStateHolder: SaveableStateHolder, pageScope: PageScope, content: () -> Unit)
actual fun LifecycleOwnerDelegate.LocalOwnersProvider(saveableStateHolder: SaveableStateHolder, pageScope: PageScope, content: () -> Unit)
actual fun LifecycleOwnerDelegate.LocalOwnersProvider(saveableStateHolder: SaveableStateHolder, pageScope: PageScope, content: () -> Unit)
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: