Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 2.0.0
belongs to Maven artifact androidx.lifecycle:lifecycle-common:2.0.0-rc01

LifecycleOwner

public interface LifecycleOwner

androidx.lifecycle.LifecycleOwner


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

abstract Lifecycle getLifecycle()

Returns the Lifecycle of the provider.

Public methods

getLifecycle

added in version 2.0.0
public abstract Lifecycle getLifecycle ()

Returns the Lifecycle of the provider.

Returns
Lifecycle The lifecycle of the provider.