Difference between revisions of "EventDispatcher:hasEventListener"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2011.6<br/> === Description === <br /> Checks if the `EventDispatcher` object has a event listener registered for the specified type o...")
 
Line 6: Line 6:
 
<br />
 
<br />
 
<source lang="lua">
 
<source lang="lua">
(bool), = EventDispatcher:hasEventListener(type,)
+
(bool) = EventDispatcher:hasEventListener(type)
 
</source>
 
</source>
'''type:''' (string) The type of event. ''''''<br/>
+
'''type''': (string) The type of event. ''''''<br/>
 
'''Returns''' (bool) A value of `true` if a listener of the specified type is registered; `false` otherwise.<br/>
 
'''Returns''' (bool) A value of `true` if a listener of the specified type is registered; `false` otherwise.<br/>

Revision as of 10:20, 23 August 2018

Available since: Gideros 2011.6

Description


Checks if the `EventDispatcher` object has a event listener registered for the specified type of event.

(bool) = EventDispatcher:hasEventListener(type)

'type: (string) The type of event. '
Returns (bool) A value of `true` if a listener of the specified type is registered; `false` otherwise.