Application class

The Application class is the starting point, and there must be at least one class that extends the App class. It specifies the initial View that contains the display logic and layout of nodes that are managed as singleton:

    /**     * Starting point of the application     */    class DictionaryApp : App(MainView::class, Styles::class)

We need to specify the primary View to the App class as the first constructor parameter. The second Styles parameter is optional and contains the Stylesheet method.

Get Kotlin Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.