LifecycleOwnerKt

Added in 2.6.0

public final class LifecycleOwnerKt


Summary

Public methods

getLifecycleScope

public static final @NonNull LifecycleCoroutineScope getLifecycleScope(@NonNull LifecycleOwner receiver)

CoroutineScope tied to this LifecycleOwner's Lifecycle.

Canceled when the Lifecycle is destroyed. Bound to Dispatchers.Main.immediate.