Join us on the livestream at Android Dev Summit on 7-8 November 2018, starting at 10AM PDT!

LifecycleOwner

public interface LifecycleOwner

android.arch.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

Lifecycle getLifecycle ()

Returns the Lifecycle of the provider.

Returns
Lifecycle The lifecycle of the provider.