on
State
Changed
open override fun onStateChanged(source: LifecycleOwner, event: Lifecycle.Event)
Content copied to clipboard
method to register and unregister based on Lifecycle event