Difference between revisions of "EventDispatcher:removeEventListener"

From GiderosMobile
(----)
Line 1: Line 1:
__NOTOC__
+
'''Available since:''' Gideros 2011.6<br/>
<languages />
+
'''Class:''' [[EventDispatcher]]<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/EventDispatcher|EventDispatcher]]<br/>
+
=== Description ===
=== <translate>Description</translate> ===
+
Removes a listener from the [[EventDispatcher]] object.
<translate><br />
+
<br/>
Removes a listener from the [[Special:MyLanguage/EventDispatcher|EventDispatcher]] object. ''removeEventListener()'' function expects<br />
+
 
the same arguments with ''addEventListener()'' to remove the event. If there is no matching listener<br />
+
''removeEventListener()'' function expects the same arguments than the ''addEventListener()'' to remove the event. If there is no matching listener registered, a call to this function has no effect.
registered, a call to this function has no effect.<br />
+
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
EventDispatcher:removeEventListener(type,listener,data)
+
EventDispatcher:removeEventListener(type,listener,data)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''type''': (string) <translate>The type of event.</translate> <br/>
+
=== Parameters ===
'''listener''': (function) <translate>The listener object to remove.</translate> <br/>
+
'''type''': (string) The type of event. <br/>
'''data''': (any) <translate>The data parameter that is used while registering the event.</translate> <br/>
+
'''listener''': (function) The listener object to remove. <br/>
 +
'''data''': (any) The data parameter that is used while registering the event. <br/>
 +
 
 +
----
 +
{{Special:PrefixIndex/EventDispatcher}}
 +
<br/>
 +
 
 +
{{Special:PrefixIndex/Event.APPLICATION}}
 +
{{Special:PrefixIndex/Event.MEMORY}}
 +
{{Special:PrefixIndex/Event.OPEN}}
 +
<br/>

Revision as of 20:28, 2 December 2019

Available since: Gideros 2011.6
Class: EventDispatcher

Description

Removes a listener from the EventDispatcher object.

removeEventListener() function expects the same arguments than the addEventListener() to remove the event. If there is no matching listener registered, a call to this function has no effect.

EventDispatcher:removeEventListener(type,listener,data)

Parameters

type: (string) The type of event.
listener: (function) The listener object to remove.
data: (any) The data parameter that is used while registering the event.