pushTo

inline suspend fun <T : Scene> pushTo(vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition): T

Pushes the T, with a set of optional injects instances during time time, and with transition. It removes the old currentScene if any. This method waits until the transition has been completed, and returns the T created instance.


suspend fun <T : Scene> pushTo(clazz: KClass<T>, vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition): T

Pushes the T Scene, with a set of optional injects instances during time time, and with transition. It removes the old currentScene if any. This method waits until the transition has been completed, and returns the T created instance.