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