LifecycleOwnerKt

Added in 2.2.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.

This scope will be cancelled when the Lifecycle is destroyed.

This scope is bound to Dispatchers.Main.immediate.