interface ICoreWebView2Experimental

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2Experimental
  : public IUnknown

This is the ICoreWebView2 Experimental interface to support FrameCreated event.

Summary

Members Descriptions
add_FrameCreated Raised when a new iframe is created.
remove_FrameCreated Remove an event handler previously added with add_FrameCreated.

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 0.9.579

Members

add_FrameCreated

Raised when a new iframe is created.

public HRESULT add_FrameCreated(ICoreWebView2ExperimentalFrameCreatedEventHandler * eventHandler, EventRegistrationToken * token)

Use the CoreWebView2Frame.add_Destroyed to listen for when this iframe goes away.

remove_FrameCreated

Remove an event handler previously added with add_FrameCreated.

public HRESULT remove_FrameCreated(EventRegistrationToken token)