Scoop API

scoop:scoop.ui:0.1.0

UiHost

class UiHost

source · line 18
public
public class UiHost public constructor(
    private val onRootError: (WindowId, Throwable) -> Unit = { _, error -> throw error },
    private val onApplicationError: (Throwable) -> Unit = { error -> throw error },
    private val handler: (UiHost, ActiveApplication, ApplicationEvent) -> Unit = { _, _, _ -> }
) : ApplicationHandler, Closeable

Runs logical updates and Surface frames on the existing application owner.

constructor constructor

source · line 18
public
constructor(private val onRootError: (WindowId, Throwable) -> Unit = { _, error -> throw error }, private val onApplicationError: (Throwable) -> Unit = { error -> throw error }, private val handler: (UiHost, ActiveApplication, ApplicationEvent) -> Unit = { _, _, _ -> })

function attach

source · line 138
public
public fun <C: Component> attach(window: Window, create: (ComponentScope) -> C, fonts: FontCollection? = None, preferences: UiPreferences = uiPreferences()): UiWindow?