IRequestHandlerOnBeforeBrowse Method |
Version 130.1.90Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax bool OnBeforeBrowse(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
bool userGesture,
bool isRedirect
)
bool OnBeforeBrowse(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
bool userGesture,
bool isRedirect
)
Parameters
- chromiumWebBrowser IWebBrowser
- the ChromiumWebBrowser control
- browser IBrowser
- the browser object
- frame IFrame
- The frame the request is coming from
- request IRequest
- the request object - cannot be modified in this callback
- userGesture Boolean
- The value will be true if the browser navigated via explicit user gesture
(e.g. clicking a link) or false if it navigated automatically (e.g. via the DomContentLoaded event).
- isRedirect Boolean
- has the request been redirected
Return Value
BooleanReturn true to cancel the navigation or false to allow the navigation to proceed.
See Also