CefRequestHandler
interface CefRequestHandler
Implement this interface to handle events related to browser requests. The methods of this class will be called on the thread indicated.
Inheritors
Types
Link copied to clipboard
enum TerminationStatus
Process termination status values.
Functions
Link copied to clipboard
abstract fun getAuthCredentials(browser: CefBrowser, origin_url: String, isProxy: Boolean, host: String, port: Int, realm: String, scheme: String, callback: CefAuthCallback): Boolean
Called on the IO thread when the browser needs credentials from the user.
Link copied to clipboard
abstract fun getResourceRequestHandler(browser: CefBrowser, frame: CefFrame, request: CefRequest, isNavigation: Boolean, isDownload: Boolean, requestInitiator: String, disableDefaultHandling: BoolRef): CefResourceRequestHandler
Called on the IO thread before a resource request is initiated.
Link copied to clipboard
abstract fun onBeforeBrowse(browser: CefBrowser, frame: CefFrame, request: CefRequest, user_gesture: Boolean, is_redirect: Boolean): Boolean
Called on the UI thread before browser navigation.
Link copied to clipboard
abstract fun onCertificateError(browser: CefBrowser, cert_error: CefLoadHandler.ErrorCode, request_url: String, sslInfo: CefSSLInfo, callback: CefCallback): Boolean
Called on the UI thread to handle requests for URLs with an invalid SSL certificate.
Link copied to clipboard
abstract fun onOpenURLFromTab(browser: CefBrowser, frame: CefFrame, target_url: String, user_gesture: Boolean): Boolean
Called on the UI thread before OnBeforeBrowse in certain limited cases where navigating a new or different browser might be desirable.
Link copied to clipboard
abstract fun onRenderProcessTerminated(browser: CefBrowser, status: CefRequestHandler.TerminationStatus)
Called on the browser process UI thread when the render process terminates unexpectedly.