on State Changed
open fun onStateChanged(@NonNull source: LifecycleOwner, @NonNull event: Lifecycle.Event)
Content copied to clipboard
Called when a state transition event happens.
Parameters
source
The source of the event
event
The event