KCEF

data object KCEF(source)

Class used to initialize the JCef environment.

Create a new KCEFClient after initialization easily.

Dispose the JCef environment if you don't need it anymore.

Types

Link copied to clipboard
open class AppHandler @JvmOverloads constructor(args: Array<String> = emptyArray()) : CefAppHandlerAdapter
Link copied to clipboard
fun interface InitError
Link copied to clipboard
fun interface InitRestartRequired
Link copied to clipboard
fun interface NewClientOrNullError

Functions

Link copied to clipboard
suspend fun dispose()

Dispose the CefApp instance if it is not needed anymore. For example on exiting the application.

Link copied to clipboard

Blocking equivalent of dispose

Link copied to clipboard
fun init(cefApp: CefApp = CefApp.getInstance())

Mark CEF as initialized on the client.

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

Download, install and initialize CEF on the client.

Link copied to clipboard
fun initBlocking(builder: KCEFBuilder, onError: KCEF.InitError = InitError { }, onRestartRequired: KCEF.InitRestartRequired = InitRestartRequired { })
fun initBlocking(builder: KCEFBuilder.() -> Unit, onError: KCEF.InitError = InitError { }, onRestartRequired: KCEF.InitRestartRequired = InitRestartRequired { })

Blocking equivalent of init

Link copied to clipboard

Create a new CefClient after CEF has been initialized.

Link copied to clipboard

Blocking equivalent of newClient

Link copied to clipboard
suspend fun newClientOrNull(onError: KCEF.NewClientOrNullError = NewClientOrNullError { }): KCEFClient?

Create a new CefClient after CEF has been initialized.

Link copied to clipboard

Blocking equivalent of newClientOrNull

Link copied to clipboard

Create a new client if CEF has been initialized.