init

suspend fun init(builder: KCEFBuilder.() -> Unit, onError: KCEF.InitError = InitError { }, onRestartRequired: KCEF.InitRestartRequired = InitRestartRequired { })(source)

Download, install and initialize CEF on the client.

Parameters

builder

builder method to create a KCEFBuilder to use

onError

an optional listener for errors

onRestartRequired

an optional listener to be notified when the application needs a restart, may happen on some platforms if CEF couldn't be initialized after downloading and installing.

Throws


suspend fun init(builder: KCEFBuilder, onError: KCEF.InitError = InitError { }, onRestartRequired: KCEF.InitRestartRequired = InitRestartRequired { })(source)

Download, install and initialize CEF on the client.

Parameters

builder

the KCEFBuilder to use

onError

an optional listener for errors

onRestartRequired

an optional listener to be notified when the application needs a restart, may happen on some platforms if CEF couldn't be initialized after downloading and installing.

Throws


fun init(cefApp: CefApp = CefApp.getInstance())(source)

Mark CEF as initialized on the client.

Parameters

cefApp

the initialized CefApp instance, used to create clients.