Click or drag to resize

DevToolsClientAddEventHandlerT Method

Version 130.1.90
Add event handler for a DevTools protocol event. Events by default are disabled and need to be enabled on a per domain basis, e.g. Sending Network.enable (or calling EnableAsync(NullableInt32, NullableInt32, NullableInt32)) to enable network related events.

Namespace: CefSharp.DevTools
Assembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax
public void AddEventHandler<T>(
	string eventName,
	EventHandler<T> eventHandler
)
where T : EventArgs

Parameters

eventName  String
is the event name to listen to
eventHandler  EventHandlerT
event handler to call when the event occurs

Type Parameters

T
The event args type to which the event will be deserialized to.

Implements

IDevToolsClientAddEventHandlerT(String, EventHandlerT)
See Also