setCurrentStateInSteps

fun LifecycleRegistry.setCurrentStateInSteps(state: Lifecycle.State)

Updates the LifecycleRegistry's state to the given state. This can be used instead of the default LifecycleRegistry.setCurrentState to update each LifecycleObserver for every step in the state change. See handleLifecycleEventInSteps for an explanation why updating the state without steps can be problematic.

Note: Any state transition to State.INITIALIZED is not supported.