removeScreen

inline fun <Type : ScreenType> removeScreen(): Type?

Removes cached instance of Screen of the selected type. Note that this method does not dispose of the screen and will not affect shownScreen.

Return

removed instance of Screen extending passed Type if was registered. null otherwise.

Parameters

Type

concrete class of the screen implementation.

See also


open fun <Type : ScreenType> removeScreen(type: Class<Type>): Type?

Removes cached instance of Screen of the selected type. Note that this method does not dispose of the screen and will not affect shownScreen.

Return

removed instance of Screen extending passed type if was registered. null otherwise.

Parameters

type

concrete class of the screen implementation.

See also