fun SKryptonApp.screen(url: String, showCursor: Boolean = true, width: Int = 1280, height: Int = 720, action: SKryptonScreen.() -> Unit = {}): SKryptonScreen
Creates a SKryptonScreen under this SKryptonApp instance
url - URL string to load initially.
showCursor - Whether or not to show the virtual cursor on web view.
width - Initial width of the web view.
height - Initial height of the web view.
action - Lambda function with created screen as its receiver. Is run on a separate thread.
Receiver
SKryptonApp
Return
Created SKryptonScreen
fun SKryptonWebView.screen(action: SKryptonScreen.() -> Unit = {}): SKryptonScreen
Creates a SKryptonScreen under this SKryptonWebView instance
action - Lambda function with created screen as its receiver. Is run on a separate thread.
Receiver
SKryptonWebView
Return
Created SKryptonScreen