Restart

class Restart(val applicationClass: KClass<out Application>, val rawArgs: Array<out String> = emptyArray())

When an Application ends, it can choose to restart by adding an item to GlokSettings.restarts. applicationClass can be the same as the previous application, or another one.

The 'DemoMenu' (in the glok-demos subproject) and all the actual demos that it launches uses Restarts. This allows each demo to be a self-contained Application, and also launched via the DemoMenu Application.

Constructors

Link copied to clipboard
constructor(applicationClass: KClass<out Application>, rawArgs: Array<out String> = emptyArray())

Properties

Link copied to clipboard
Link copied to clipboard
val rawArgs: Array<out String>