blob: 7a50c828f71e7678ebe9409d61143c063baa9794 [file]
<html devsite="true">
<head>
<title>LifecycleRegistryOwner</title>
{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %}
{% include "_shared/_reference-head-tags.html" %}
</head>
<body>
<div itemscope="" itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="LifecycleRegistryOwner">
<meta itemprop="path" content="androidx.lifecycle">
<meta itemprop="property" content="getLifecycle()">
<meta itemprop="language" content="JAVA">
</div>
<div id="header-block">
<div>
<h1>LifecycleRegistryOwner</h1>
</div>
<div id="metadata-info-block">
<div id="source-link"><a href="https://cs.android.com/search?q=file:androidx/lifecycle/LifecycleRegistryOwner.java+class:androidx.lifecycle.LifecycleRegistryOwner&amp;ss=androidx/platform/frameworks/support" class="external">View Source</a></div>
</div>
</div>
<div id="refdoc-switcher-placeholder"></div>
<p>
<pre>public interface <a href="/reference/androidx/lifecycle/LifecycleRegistryOwner.html">LifecycleRegistryOwner</a> extends <a href="/reference/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a></pre>
</p>
<hr>
<aside class="caution"><strong>This interface is deprecated.</strong><br>
<p>Use <code>androidx.appcompat.app.AppCompatActivity</code> which extends <code><a href="/reference/androidx/lifecycle/LifecycleOwner.html">LifecycleOwner</a></code>, so there are no use cases for this class.</p>
</aside>
<h2>Summary</h2>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%"><h3>Public methods</h3></th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code>abstract @<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/lifecycle/LifecycleRegistry.html">LifecycleRegistry</a></code></td>
<td>
<div><code><a href="/reference/androidx/lifecycle/LifecycleRegistryOwner.html#getLifecycle()">getLifecycle</a>()</code></div>
<p>Returns the Lifecycle of the provider.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="list">
<h2>Public methods</h2>
<div class="api-item"><a name="getLifecycle--"></a><a name="getlifecycle"></a>
<div class="api-name-block">
<div>
<h3 id="getLifecycle()">getLifecycle</h3>
</div>
</div>
<pre class="api-signature no-pretty-print">abstract&nbsp;@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/lifecycle/LifecycleRegistry.html">LifecycleRegistry</a>&nbsp;<a href="/reference/androidx/lifecycle/LifecycleRegistryOwner.html#getLifecycle()">getLifecycle</a>()</pre>
<p>Returns the Lifecycle of the provider.</p>
<div class="devsite-table-wrapper">
<table class="responsive">
<colgroup>
<col width="40%">
<col>
</colgroup>
<thead>
<tr>
<th colspan="100%">Returns</th>
</tr>
</thead>
<tbody class="list">
<tr>
<td><code>@<a href="/reference/androidx/annotation/NonNull.html">NonNull</a> <a href="/reference/androidx/lifecycle/LifecycleRegistry.html">LifecycleRegistry</a></code></td>
<td>
<p>The lifecycle of the provider.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>
</html>