onStateChanged

open fun onStateChanged(@NonNull source: LifecycleOwner, @NonNull event: Lifecycle.Event)

Called when a state transition event happens.

Parameters

source

The source of the event

event

The event