onTransitionTo

Adds an event handler that always transitions to a specific state.

Return

This builder for method chaining

Parameters

eventClass

The class of events to handle

newState

The state to transition to


Adds an event handler that always transitions to a specific state using reified generics.

Return

This builder for method chaining

Parameters

newState

The state to transition to