DefaultComponentModel
Properties
Functions
Adds an AutoCloseable resource to this ComponentModel. The resource will be closed right before the onCleared method is called.
Adds an AutoCloseable resource with an associated key to this ComponentModel. The resource will be closed right before the onCleared method is called.
Clears all resources associated with this ComponentModel and marks it as cleared.
Extension function to create a CoroutineScope on the current Lifecycle.
Extension function to create a CoroutineScope on the current Lifecycle using the platform defaultDispatcher.
Returns the AutoCloseable resource associated to the given key, or null
if such a key is not present in this ComponentModel.
Extension function to create a CoroutineScope on the current Lifecycle using the platform ioDispatcher.
Extension function to launch a CoroutineScope on the current Lifecycle using the platform defaultDispatcher.
Extension function to launch a CoroutineScope on the current Lifecycle using the platform ioDispatcher.
Extension function to launch a CoroutineScope on the current Lifecycle using the platform mainDispatcher.
Extension function to create a CoroutineScope on the current Lifecycle using the platform mainDispatcher.
This method will be called when this ComponentModel is no longer used and will be destroyed.
LifecycleOwner's extension function for Lifecycle.repeatOnLifecycle to allow an easier call to the API from LifecycleOwners such as Activities and Fragments.