# LifecycleRegistryOwner

Artifact: [androidx.lifecycle:lifecycle-runtime](https://developer.android.com/jetpack/androidx/releases/lifecycle) [View Source](https://cs.android.com/search?q=file:androidx/lifecycle/LifecycleRegistryOwner.java+class:androidx.lifecycle.LifecycleRegistryOwner) Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.0.0) Deprecated in [2.0.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.0.0)

*** ** * ** ***


```
public interface LifecycleRegistryOwner extends LifecycleOwner
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This interface is deprecated.**   
>
> Use `androidx.appcompat.app.AppCompatActivity` which extends `https://developer.android.com/reference/androidx/lifecycle/LifecycleOwner`, so there are no use cases for this class.

## Summary

| ### Public methods |
|---|---|
| `abstract @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/lifecycle/LifecycleRegistry` | `[getLifecycle](https://developer.android.com/reference/androidx/lifecycle/LifecycleRegistryOwner#getLifecycle())()` **This method is deprecated.** Deprecated in Java |

## Public methods

### getLifecycle

Added in [2.0.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.0.0) Deprecated in [2.0.0](https://developer.android.com/jetpack/androidx/releases/lifecycle#2.0.0)

```
abstract @NonNull LifecycleRegistry [getLifecycle](https://developer.android.com/reference/androidx/lifecycle/LifecycleRegistryOwner#getLifecycle())()
```

> [!CAUTION]
> **This method is deprecated.**   
> Deprecated in Java

The `https://developer.android.com/reference/androidx/lifecycle/Lifecycle` of this owner.