CefRequestHandlerAdapter
An abstract adapter class for receiving browser request events. The methods in this class are empty. This class exists as convenience for creating handler objects.
Functions
Link copied to clipboard
open 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
open 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
open 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
open 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
open 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
open fun onRenderProcessTerminated(browser: CefBrowser, status: CefRequestHandler.TerminationStatus)
Called on the browser process UI thread when the render process terminates unexpectedly.