transition To
open override fun transitionTo(targetState: ViewportState, transition: ViewportTransition?, completionListener: CompletionListener?)
Content copied to clipboard
Executes a transition to requested state.
When started, goes to ViewportTransition and to the final ViewportState when ended.
If transition is canceled, state goes to IDLE.
Parameters
target State
The target ViewportState to transition to.
transition
The ViewportTransition that's used to transition to target state, if not specified, the ViewportPlugin.defaultTransition will be used.
completion Listener
The listener to observe the completion state.