Table of Contents

EventDispatcher:hasEventListener

Available since version: Gideros 2011.6

Description:

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

Syntax:

(bool) = EventDispatcher:hasEventListener(type)

Parameters:

  • type: (string) The type of event.

Return value:

  • bool: A value of `true` if a listener of the specified type is registered; `false` otherwise.