add_event_listener_with_closure


Description:

[ CCode ( vfunc_name = "add_event_listener" ) ]
[ Version ( deprecated = true , deprecated_since = "2.22" ) ]
public abstract bool add_event_listener_with_closure (string event_name, owned EventTargetFunc handler, bool use_capture)

Warning: add_event_listener_with_closure is deprecated since 2.22.

Version of webkit_dom_event_target_add_event_listener using a closure instead of a callbacks for easier binding in other languages.

Note:

Use JavaScriptCore API instead

Parameters:

this

A EventTarget

event_name

A char

handler

A Closure

use_capture

A bool

Returns:

a bool




2022 vala-language.org