Phaser API Documentation

  Version: 
listenerCount(event)

Description:

Return the number of listeners listening to a given event.

Parameters:

name type description
event string | symbol

The event name.

Returns:
Description:

The number of listeners.

Type:
  • number
Since: 3.0.0