onInactive method
void
onInactive()
Called when the number of active observers change from 1 to 0. This does not mean that there are no observers left, there may still be observers but their lifecycle states aren't {@link Lifecycle.State#STARTED} or {@link Lifecycle.State#RESUMED} (like an Activity in the back stack).
You can check if there are observers via hasObservers().
Implementation
void onInactive() {}