KCEFBuilder

Class used to configure the JCef environment. Specify an installation directory, arguments to be passed to JCef and configure the Settings to your needs.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class Download(val url: Url, val client: HttpClient, val transform: KCEFBuilder.Download.Transform?, val bufferSize: Long = 16 * 1024)
Link copied to clipboard
interface InitProgress
Link copied to clipboard
data class Settings @JvmOverloads constructor(var cachePath: String? = null, var backgroundColor: CefSettings.ColorType? = null, var browserSubProcessPath: String? = null, var commandLineArgsDisabled: Boolean = false, var cookieableSchemesExcludeDefaults: Boolean = false, var cookieableSchemesList: String? = null, var javascriptFlags: String? = null, var locale: String? = null, var localesDirPath: String? = null, var logFile: String? = null, var logSeverity: KCEFBuilder.Settings.LogSeverity = LogSeverity.Default, var packLoadingDisabled: Boolean = false, var persistSessionCookies: Boolean = false, var remoteDebuggingPort: Int = 0, var resourcesDirPath: String? = null, var uncaughtExceptionStackSize: Int = 0, var userAgent: String? = null, var userAgentProduct: String? = null, var windowlessRenderingEnabled: Boolean = false, var noSandbox: Boolean = scopeCatching { JCefAppConfig.getInstance().cefSettings.no_sandbox }.getOrNull() ?: CefSettings().no_sandbox)

Functions

Link copied to clipboard
fun addArgs(vararg args: String): KCEFBuilder

Add one or multiple arguments to pass to the JCef library. Arguments may contain spaces.

Link copied to clipboard

Assign an AppHandler to CefApp. The AppHandler can be used to evaluate application arguments, to register your own schemes and to hook into the shutdown sequence. See CefAppHandler for more details.

Link copied to clipboard
fun args(vararg args: String): KCEFBuilder

Clear all previous added arguments and use the specified ones to pass to the JCef library. Arguments may contain spaces.

Link copied to clipboard

Specify your download options.

Link copied to clipboard

Overwrite the buffer size to download the runtime package on the client.

Link copied to clipboard

Overwrite the buffer size to extract the runtime package on the client.

Link copied to clipboard

Sets the installation directory to use. Defaults to "./jcef-bundle".

Link copied to clipboard

Specify a progress listener to receive install progress updates.

Link copied to clipboard

Set the used runtime package to the latest release.

Specify and pin the used runtime package to a tag.

Link copied to clipboard

Specify the Settings to create the Cef instance.