androidx.lifecycle:lifecycle-common-java8
Official Description: Android Lifecycle-Common for Java 8 Language
CommonsWare’s Notes
This artifact provides the DefaultLifecycleObserver
interface. If you need
to observe lifecycle events from a Lifecycle
, and you are compiling with
Java 8, Google recommends that you add this artifact and use this interface.
One benefit is that it takes advantage of Java 8’s support for default implementations
on interface methods, so you only need to override methods corresponding with
the lifecycle events that you care about.
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