changeTo
inline suspend fun <T : Scene> changeTo(vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition): T
Changes to the T, with a set of optional injects instances during time time, and with transition. This method waits until the transition has been completed, and returns the T created instance.
suspend fun <T : Scene> changeTo(clazz: KClass<T>, vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition): T
Changes to the T Scene, with a set of optional injects instances during time time, and with transition. This method waits until the transition has been completed, and returns the T created instance.
inline suspend fun <T : Scene> changeTo(vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition, crossinline gen: Injector.() -> T): T
inline suspend fun <T : Scene> changeTo(clazz: KClass<T>, crossinline gen: Injector.() -> T, vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition, remap: Boolean = false): T
inline suspend fun <T : Scene> changeTo(crossinline gen: (Injector) -> T, vararg injects: Any, time: TimeSpan = 0.seconds, transition: Transition = defaultTransition): T
Deprecated
Use changeTo { ... }