CefApp

Exposes static methods for managing the global CEF context.

Types

Link copied to clipboard
The CefAppState gives you a hint if the CefApp is already usable or not usable any more.
Link copied to clipboard
open inner class CefVersion

Functions

Link copied to clipboard
open fun addAppHandler(appHandler: CefAppHandler)
Assign an AppHandler to CefApp.
Link copied to clipboard
Clear all registered scheme handler factories.
Link copied to clipboard
Creates a new client instance and returns it to the caller.
Link copied to clipboard
fun dispose()
To shutdown the system, it's important to call the dispose method.
Link copied to clipboard
fun doMessageLoopWork(delay_ms: Long)
Perform a single message loop iteration.
Link copied to clipboard
open fun getArgs(): Array<String>
Link copied to clipboard
open fun getInstance(): CefApp
Get an instance of this class.
open fun getInstance(args: Array<String>): CefApp
open fun getInstance(settings: CefSettings): CefApp
open fun getInstance(args: Array<String>, settings: CefSettings): CefApp
Link copied to clipboard
Link copied to clipboard
Returns the current state of CefApp.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onBeforeChildProcessLaunch(command_line: String)
Called before a child process is launched.
Link copied to clipboard
open fun onBeforeCommandLineProcessing(process_type: String, command_line: CefCommandLine)
Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium.
Link copied to clipboard
Provides an opportunity to hook into the native shutdown process.
Link copied to clipboard
Called on the browser process UI thread immediately after the CEF context has been initialized.
Link copied to clipboard
open fun onInitialization(initListener: CefAppStateHandler)
open fun onInitialization(initListener: CefAppStateHandler, first: Boolean)
Link copied to clipboard
Provides an opportunity to register custom schemes.
Link copied to clipboard
open fun onScheduleMessagePumpWork(delay_ms: Long)
Called from any thread when work has been scheduled for the browser process main (UI) thread.
Link copied to clipboard
open fun registerSchemeHandlerFactory(schemeName: String, domainName: String, factory: CefSchemeHandlerFactory): Boolean
Register a scheme handler factory for the specified |scheme_name| and optional |domain_name|.
Link copied to clipboard
fun setSettings(settings: CefSettings)
Link copied to clipboard
open fun startup(args: Array<String>): Boolean
This method must be called at the beginning of the main() method to perform platform-specific startup initialization.
Link copied to clipboard
open fun startupAsync()
Link copied to clipboard
abstract fun stateHasChanged(state: CefApp.CefAppState)
Implement this method to get state changes of the CefApp.
Link copied to clipboard
open fun updateArgs(args: Array<String>)