欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

LifecycleRegistryOwner

public interface LifecycleRegistryOwner
implements LifecycleOwner

androidx.lifecycle.LifecycleRegistryOwner


This interface is deprecated.
Use androidx.appcompat.app.AppCompatActivity which extends LifecycleOwner, so there are no use cases for this class.

Summary

Public methods

abstract LifecycleRegistry getLifecycle()

Returns the Lifecycle of the provider.

Inherited methods

Public methods

getLifecycle

public abstract LifecycleRegistry getLifecycle ()

Returns the Lifecycle of the provider.

Returns
LifecycleRegistry The lifecycle of the provider.