WebKit2WebExtension.DOMEventTarget.add_event_listener

### Method

# WebKit2WebExtension DOMEventTargetadd_event_listener

deprecated: 2.22

#### Declaration [src]

    gboolean
    webkit_dom_event_target_add_event_listener (
      WebKitDOMEventTarget* target,
      const char* event_name,
      GCallback handler,
      gboolean use_capture,
      gpointer user_data
    )

#### Description

No description available.

Deprecated since: 2.22

Use JavaScriptCore API instead.

The implementation of this method is provided by `webkit_dom_event_target_add_event_listener_with_closure()` in language bindings.

#### Parameters

`event_name`

  Type: `const char*`

  A #gchar.

  The data is owned by the caller of the method.
  The value is a NUL terminated UTF-8 string.

`handler`

  Type: `GCallback`

  A `GCallback`.

`use_capture`

  Type: `gboolean`

  A #gboolean.

`user_data`

  Type: `gpointer`

  A #gpointer.

  The argument can be `NULL`.
  The data is owned by the caller of the method.

#### Return value

Type: `gboolean`

A #gboolean.