# LifecycleOwnerKt

Added in 2.6.0

*** ** * ** ***


```
public final class LifecycleOwnerKt
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/lifecycle/LifecycleCoroutineScope` | `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwnerKt#(androidx.lifecycle.LifecycleOwner).getLifecycleScope()(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner receiver)` `https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html` tied to this `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`'s `https://developer.android.com/reference/androidx/lifecycle/Lifecycle`. |

## Public methods

### getLifecycleScope

Artifact: [androidx.lifecycle:lifecycle-common](https://developer.android.com/jetpack/androidx/releases/lifecycle) [View Source](https://cs.android.com/search?q=file:androidx/lifecycle/LifecycleOwner.kt+symbol:lifecycleScope) Added in [2.6.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.6.0)

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

`https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/index.html` tied to this `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`'s `https://developer.android.com/reference/androidx/lifecycle/Lifecycle`.

Canceled when the `https://developer.android.com/reference/androidx/lifecycle/Lifecycle` is destroyed. Bound to `Dispatchers.Main.immediate`.