Trait webview2_sys::ICoreWebView2DevToolsProtocolEventReceiver[][src]

pub trait ICoreWebView2DevToolsProtocolEventReceiver: IUnknown {
    unsafe fn add_dev_tools_protocol_event_received(
        &self,
        handler: *mut *mut ICoreWebView2DevToolsProtocolEventReceivedEventHandlerVTable,
        token: *mut EventRegistrationToken
    ) -> HRESULT;
unsafe fn remove_dev_tools_protocol_event_received(
        &self,
        token: EventRegistrationToken
    ) -> HRESULT; }
Expand description

A Receiver is created for a particular DevTools Protocol event and allows you to subscribe and unsubscribe from that event. Obtained from the WebView object using GetDevToolsProtocolEventReceiver.

Required methods

Subscribe to a DevToolsProtocol event. The Invoke method of the handler runs whenever the corresponding DevToolsProtocol event runs. Invoke runs with an event args object containing the parameter object of the DevTools Protocol event as a JSON string.

\snippet ScriptComponent.cpp DevToolsProtocolEventReceived

Remove an event handler previously added with add_DevToolsProtocolEventReceived.

Trait Implementations

A COM compatible V-Table

The interface that this interface inherits from

The associated id for this interface

Check whether a given IID is in the inheritance hierarchy of this interface

Get the vtable for a particular COM interface

Implementations on Foreign Types

Implementors