LifecycleOwner  |  API reference  |  Android Developers (original) (raw)

public interface LifecycleOwner
``

android.arch.lifecycle.LifecycleOwner

Known indirect subclasses

LifecycleRegistryOwner, LifecycleService, ProcessLifecycleOwner

LifecycleRegistryOwner This interface was deprecated in API level 1.1.0. Use android.support.v7.app.AppCompatActivity which extends LifecycleOwner, so there are no use cases for this class.
LifecycleService A Service that is also a LifecycleOwner.
ProcessLifecycleOwner Class that provides lifecycle for the whole application process.

A class that has an Android lifecycle. These events can be used by custom components to handle lifecycle changes without implementing any code inside the Activity or the Fragment.

See also:

Summary

Public methods
abstractLifecycle getLifecycle() Returns the Lifecycle of the provider.

Public methods

getLifecycle

Lifecycle getLifecycle ()

Returns the Lifecycle of the provider.

Returns
Lifecycle The lifecycle of the provider.