https://developer.android.com/topic/libraries/architecture/lifecycle#implementing-lco
The docs say that Fragments and Activities in Support Library 26.1.0 and later already implement the LifecycleOwner interface.
This is greatly useful if we can use the LifecycleOwner of the activity or fragment to register LiveData objects or have it call our methods annotated with
@OnLifecycleEvent(Lifecycle.Event.ON_START)
@OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
etc
in our custom classes.
But we also have the option to implement a custom LifecycleOwner. Under what circumstances does it make sense to have a custom LifecycleOwner, considering that it will complicate things because now we have to manually track the lifecycle events like:
mLifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.ON_START);
mLifecycleRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP);
etc
?