Summary:
Methods
LifecycleOwner
public
interface
LifecycleOwner
android.arch.lifecycle.LifecycleOwner
Known indirect subclasses
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 | |
|---|---|
abstract
Lifecycle
|
getLifecycle()
Returns the Lifecycle of the provider. |
Public methods
Annotations
Interfaces
Classes
- AndroidViewModel
- Lifecycle
- LifecycleRegistry
- LifecycleService
- LiveData
- LiveDataReactiveStreams
- MediatorLiveData
- MutableLiveData
- ProcessLifecycleOwner
- ServiceLifecycleDispatcher
- Transformations
- ViewModel
- ViewModelProvider
- ViewModelProvider.AndroidViewModelFactory
- ViewModelProvider.NewInstanceFactory
- ViewModelProviders
- ViewModelProviders.DefaultFactory
- ViewModelStore
- ViewModelStores
Enums
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025年02月10日 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025年02月10日 UTC."],[],[]]