LifecycleViewModel

actual open class LifecycleViewModel : ViewModel

Simple ViewModel class that is to be bound to a View lifecycle

expect open class LifecycleViewModel

Simple ViewModel class that is to be bound to a View lifecycle

Inheritors

actual open class LifecycleViewModel

Simple ViewModel class that is to be bound to a View lifecycle

actual open class LifecycleViewModel

Simple ViewModel class that is to be bound to a View lifecycle

actual open class LifecycleViewModel

Simple ViewModel class that is to be bound to a View lifecycle

Properties

Link copied to clipboard
actual val coroutineScope: CoroutineScope

CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.

expect val coroutineScope: CoroutineScope

CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.

actual val coroutineScope: CoroutineScope

CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.

actual val coroutineScope: CoroutineScope

CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.

actual val coroutineScope: CoroutineScope

CoroutineScope of the ViewModel. This scope is active until the ViewModel lifecycle is cleared.

Functions

Link copied to clipboard
Link copied to clipboard
fun clear()

Call this when the LifecycleViewModel should be cleared to cancel all its coroutines.

fun clear()

Call this when the LifecycleViewModel should be cleared to cancel all its coroutines.

fun clear()

Call this when the LifecycleViewModel should be cleared to cancel all its coroutines.