androidx.lifecycle:lifecycle-service
Official Description: Android Lifecycle Service
CommonsWare’s Notes
This artifact provides LifecycleService
, a Service
implementation
that dispatches lifecycle events and is a LifecycleOwner
. If you wish
to use LiveData
from an ordinary Service
, switching to LifecycleService
as a base class will let you designate your service as the LifecycleOwner
to use when registering LiveData
observers.
On the other hand, since this is a class, not an interface, this will not
work for any services that require another base class, such as JobIntentService
or TileService
.
Documentation
Versions
- Latest Stable: 2.3.0
- Latest Release Candidate: 2.3.0-rc01
- Latest Beta: 2.3.0-beta01
- Latest Alpha: 2.3.0-alpha07
- 2.3.0
- 2.3.0-rc01
- 2.3.0-beta01
- 2.3.0-alpha07
- 2.3.0-alpha06
- 2.3.0-alpha05
- 2.3.0-alpha04
- 2.3.0-alpha03
- 2.3.0-alpha02
- 2.3.0-alpha01
- 2.2.0
- 2.2.0-rc03
- 2.2.0-rc02
- 2.2.0-rc01
- 2.2.0-beta01
- 2.2.0-alpha05
- 2.2.0-alpha04
- 2.2.0-alpha03
- 2.2.0-alpha02
- 2.2.0-alpha01
- 2.1.0
- 2.1.0-rc01
- 2.1.0-beta01
- 2.1.0-alpha04
- 2.1.0-alpha03
- 2.1.0-alpha02
- 2.1.0-alpha01
- 2.0.0
- 2.0.0-rc01
- 2.0.0-beta01
- 2.0.0-alpha1