Difference between revisions of "EventDispatcher:removeEventListener"
From GiderosMobile
 (----)  | 
				|||
| Line 1: | Line 1: | ||
| − | + | '''Available since:''' Gideros 2011.6<br/>  | |
| − | + | '''Class:''' [[EventDispatcher]]<br/>  | |
| − | '''  | + | |
| − | '''  | + | === Description ===  | 
| − | ===   | + | Removes a listener from the [[EventDispatcher]] object.  | 
| − | + | <br/>  | |
| − | Removes a listener from the [[  | + | |
| − | the same arguments   | + | ''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.  | + | |
| − | |||
<source lang="lua">  | <source lang="lua">  | ||
| − | + | EventDispatcher:removeEventListener(type,listener,data)  | |
</source>  | </source>  | ||
| − | ===   | + | |
| − | '''type''': (string)   | + | === Parameters ===  | 
| − | '''listener''': (function)   | + | '''type''': (string) The type of event. <br/>  | 
| − | '''data''': (any)   | + | '''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.