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
unsafe fn add_dev_tools_protocol_event_received(
&self,
handler: *mut *mut ICoreWebView2DevToolsProtocolEventReceivedEventHandlerVTable,
token: *mut EventRegistrationToken
) -> HRESULT
unsafe fn add_dev_tools_protocol_event_received(
&self,
handler: *mut *mut ICoreWebView2DevToolsProtocolEventReceivedEventHandlerVTable,
token: *mut EventRegistrationToken
) -> HRESULT
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
unsafe fn remove_dev_tools_protocol_event_received(
&self,
token: EventRegistrationToken
) -> HRESULT
unsafe fn remove_dev_tools_protocol_event_received(
&self,
token: EventRegistrationToken
) -> HRESULT
Remove an event handler previously added with
add_DevToolsProtocolEventReceived
.
Trait Implementations
A COM compatible V-Table
Check whether a given IID is in the inheritance hierarchy of this interface