setScreen
Replaces current screen with the registered screen instance of the passed type.
Parameters
Type
concrete class of the screen implementation. The screen instance of this type must have been added with addScreen before calling this method.
See also
Replaces current screen with the registered screen instance of the passed type. Calls hide
method of the previous screen and show
method of the current screen. Override this method to control screen transitions.
Parameters
type
concrete class of the screen implementation. The screen instance of this type must have been added with addScreen before calling this method.