Difference between revisions of "EventDispatcher:hasEventListener"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2011.6<br/>
 
'''Available since:''' Gideros 2011.6<br/>
 
=== Description ===
 
=== Description ===
<br />
+
<translate><br />
Checks if the `EventDispatcher` object has a event listener registered for the specified type of event.<br />
+
Checks if the [[[EventDispatcher]]] object has a event listener registered for the specified type of event.<br />
<br />
+
<br /></translate>
 
<source lang="lua">
 
<source lang="lua">
 
(bool) = EventDispatcher:hasEventListener(type)
 
(bool) = EventDispatcher:hasEventListener(type)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''type''': (string) The type of event. <br/>
+
'''type''': (string) <translate>The type of event.</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (bool) A value of `true` if a listener of the specified type is registered; `false` otherwise.<br/>
+
'''Returns''' (bool) <translate>A value of [[[true` if a listener of the specified type is registered; `false]]] otherwise.</translate><br/>

Revision as of 13:38, 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)

Parameters

type: (string) The type of event.

Return values

Returns (bool) A value of [[[true` if a listener of the specified type is registered; `false]]] otherwise.