onBeforeBrowse
abstract fun onBeforeBrowse(browser: CefBrowser, frame: CefFrame, request: CefRequest, user_gesture: Boolean, is_redirect: Boolean): Boolean
Called on the UI thread before browser navigation. CefLoadHandler.onLoadingStateChange() will be called twice in all cases. If the navigation is allowed CefLoadHandler.onLoadStart() and CefLoadHandler.onLoadEnd() will be called. If the navigation is canceled CefLoadHandler.onLoadError() will be called with an errorCode value of ERR_ABORTED.
Return
True to cancel the navigation or false to continue.
Parameters
browser
The corresponding browser.
frame
The frame generating the event. Instance only valid within the scope of this method.
request
The request itself. Cannot be modified in this callback. Instance only valid within the scope of this method.
user_gesture
True if the request was initiated by a user gesture.
is_redirect
True if the request was redirected.