Difference between revisions of "EventDispatcher:removeEventListener"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Removes a listener from the `EventDispatcher` object. `removeEventListener()` function expects<...")
 
Line 8: Line 8:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
= EventDispatcher:removeEventListener(typelistenerdata,)
+
EventDispatcher:removeEventListener(type,listener,data)
 
</source>
 
</source>
'''type:''' (string) The type of event. ''''''<br/>
+
'''type''': (string) The type of event. ''''''<br/>
'''listener:''' (function) The listener object to remove. ''''''<br/>
+
'''listener''': (function) The listener object to remove. ''''''<br/>
'''data:''' (any) The data parameter that is used while registering the event. ''''''<br/>
+
'''data''': (any) The data parameter that is used while registering the event. ''''''<br/>

Revision as of 10:17, 23 August 2018

Available since: Gideros 2011.6

Description


Removes a listener from the `EventDispatcher` object. `removeEventListener()` function expects
the same arguments with `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)

'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. '