open

fun open(definition: UiDefinition, eventSession: UiSession? = null): UiSession(source)

Opens a definition after validating the native thread, returning its stable event receiver.