Difference between revisions of "EventDispatcher:hasEventListener"

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> ===
+
Checks if the [[EventDispatcher]] object has an event listener registered for the specified type of event.
<translate><br />
+
 
Checks if the [[Special:MyLanguage/EventDispatcher|EventDispatcher]] object has a event listener registered for the specified type of event.<br />
 
<br /></translate>
 
 
<source lang="lua">
 
<source lang="lua">
 
(bool) = EventDispatcher:hasEventListener(type)
 
(bool) = EventDispatcher:hasEventListener(type)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''type''': (string) <translate>The type of event.</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''type''': (string) The type of event.<br/>
'''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if a listener of the specified type is registered; ''false'' otherwise.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (bool) A value of ''true'' if a listener of the specified type is registered; ''false'' otherwise.<br/>
 +
 
 +
----
 +
{{Special:PrefixIndex/EventDispatcher}}
 +
<br/>
 +
 
 +
{{Special:PrefixIndex/Event.APPLICATION}}
 +
{{Special:PrefixIndex/Event.MEMORY}}
 +
{{Special:PrefixIndex/Event.OPEN}}
 +
<br/>

Revision as of 19:26, 2 December 2019

Available since: Gideros 2011.6
Class: EventDispatcher

Description

Checks if the EventDispatcher object has an 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.