A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cefsharp.github.io/api/118.6.x/html/T_CefSharp_IFrameHandler.htm below:

Version 118.6.80

Implement this interface to handle frame events All methods will be called on the CEF UI thread

Namespace:  CefSharp
Assembly:

CefSharp (in CefSharp.dll) Version: 118.6.80.0 (118.6.80.0)

Syntax
public interface IFrameHandler
public interface class IFrameHandler

The IFrameHandler type exposes the following members.

Methods   Name Description OnFrameAttached

Called when a frame can begin routing commands to/from the associated renderer process. Any commands that were queued have now been dispatched.

OnFrameCreated

Called when a new frame is created. This will be the first notification that references frame. Any commands that require transport to the associated renderer process (LoadRequest, SendProcessMessage, GetSource, etc.) will be queued until OnFrameAttached is called for frame.

OnFrameDetached

Called when a frame loses its connection to the renderer process and will be destroyed. Any pending or future commands will be discarded and

IsValid

will now return

false

for

frame

. If called after

OnBeforeClose(IWebBrowser, IBrowser)

during browser destruction then

IsValid

will return

false

for

browser

.

OnMainFrameChanged

Called when the main frame changes due to one of the following: - (a) initial browser creation - (b) final browser destruction - (c) cross-origin navigation - (d) re-navigation after renderer process termination (due to crashes, etc).

oldFrame

will be

null

and

newFrame

will be non-

null

when a main frame is assigned to

browser

for the first time.

oldFrame

will be non-

null

and

newFrame

will be

null

when a main frame is removed from

browser

for the last time. Both

oldFrame

and

newFrame

will be non-

null

for cross-origin navigations or re-navigation after renderer process termination. This method will be called after

OnFrameCreated(IWebBrowser, IBrowser, IFrame)

for

newFrame

and/or after

OnFrameDetached(IWebBrowser, IBrowser, IFrame)

for

oldFrame

. If called after

OnBeforeClose(IWebBrowser, IBrowser)

during browser destruction then

IsValid

will return

false

for

browser

.

Top See Also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4