{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

LifecycleKt

public final class LifecycleKt


Summary

Public methods

static final @NonNull LifecycleCoroutineScope

CoroutineScope tied to this Lifecycle.

Public methods

getCoroutineScope

public static final @NonNull LifecycleCoroutineScope getCoroutineScope(@NonNull Lifecycle receiver)

CoroutineScope tied to this Lifecycle.

This scope will be cancelled when the Lifecycle is destroyed.

This scope is bound to Dispatchers.Main.immediate