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