IExtensionHandlerOnBeforeBrowser Method |
Version 112.3.0
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 112.3.0.0 (112.3.0.0)
Syntax bool OnBeforeBrowser(
IExtension extension,
IBrowser browser,
IBrowser activeBrowser,
int index,
string url,
bool active,
IWindowInfo windowInfo,
IBrowserSettings settings
)
bool OnBeforeBrowser(
IExtension^ extension,
IBrowser^ browser,
IBrowser^ activeBrowser,
int index,
String^ url,
bool active,
IWindowInfo^ windowInfo,
IBrowserSettings^ settings
)
Parameters
- extension
- Type: CefSharpIExtension
the source of the API call - browser
- Type: CefSharpIBrowser
the source of the API call - activeBrowser
- Type: CefSharpIBrowser
may optionally be specified via the windowId property or
returned via the GetActiveBrowser() callback and provides the default for the new browser - index
- Type: SystemInt32
is the position value optionally specified via the index property - url
- Type: SystemString
is the URL that will be loaded in the browser - active
- Type: SystemBoolean
is true if the new browser should be active when opened - windowInfo
- Type: CefSharpIWindowInfo
optionally modify if you are going to allow creation of the browser - settings
- Type: CefSharpIBrowserSettings
optionally modify browser settings
Return Value
Type:
BooleanTo cancel creation of the browser return true. To allow creation return false and optionally modify windowInfo and settings
See Also