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 canceled when the Lifecycle is destroyed.

This scope is bound to MainCoroutineDispatcher.immediate.