HtmlElementViewFactory

Creates new Views that host an HTML element. This allows hosting of existing web components (i.e. React) within an app.

Creates new Views that host an HTML element. This allows hosting of existing web components (i.e. React) within an app.

Functions

Link copied to clipboard
abstract operator fun invoke(element: HTMLElement, autoScale: Boolean = true): View

Creates a new View that hosts the given element. The element provided will be made to scale, so it matches the View's size.

abstract operator fun invoke(element: HTMLElement, autoScale: Boolean = true): View

Creates a new View that hosts the given element. The element provided will be made to scale, so it matches the View's size.