Difference between revisions of "EventDispatcher:hasEventListener"
From GiderosMobile
Line 4: | Line 4: | ||
=== <translate>Description</translate> === | === <translate>Description</translate> === | ||
<translate><br /> | <translate><br /> | ||
− | Checks if the | + | Checks if the [[Special:MyLanguage/EventDispatcher|EventDispatcher]] object has a event listener registered for the specified type of event.<br /> |
<br /></translate> | <br /></translate> | ||
<source lang="lua"> | <source lang="lua"> | ||
Line 12: | Line 12: | ||
'''type''': (string) <translate>The type of event.</translate> <br/> | '''type''': (string) <translate>The type of event.</translate> <br/> | ||
=== <translate>Return values</translate> === | === <translate>Return values</translate> === | ||
− | '''<translate>Returns</translate>''' (bool) <translate>A value of | + | '''<translate>Returns</translate>''' (bool) <translate>A value of ''true'' if a listener of the specified type is registered; ''false'' otherwise.</translate><br/> |
Revision as of 09:36, 24 August 2018
Available since: Gideros 2011.6
Class: EventDispatcher
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.