CallbacksInvoker Class

Extends _CallbacksHandler

Module: _decorator Parent Module: cc

The callbacks invoker to handle and invoke callbacks by key.

Index

Methods
  • invoke
  • add
  • has Check if the specified key has any registered callback.
  • removeAll Removes all callbacks registered in a certain event type or all callbacks registered with a certain target
  • remove

Details

Methods

invoke
meta description
Defined in cocos2d/core/platform/callbacks-invoker.js:230
Parameters
  • key String
  • p1 Any
  • p2 Any
  • p3 Any
  • p4 Any
  • p5 Any
add
meta description
Defined in cocos2d/core/platform/callbacks-invoker.js:97
Parameters
has

Check if the specified key has any registered callback. If a callback is also specified, it will only return true if the callback is registered.

meta description
Returns Boolean
Defined in cocos2d/core/platform/callbacks-invoker.js:112
Parameters
removeAll

Removes all callbacks registered in a certain event type or all callbacks registered with a certain target

meta description
Defined in cocos2d/core/platform/callbacks-invoker.js:148
Parameters
  • keyOrTarget String | Object The event key to be removed or the target to be removed
remove
meta description
Defined in cocos2d/core/platform/callbacks-invoker.js:186
Parameters

results matching ""

    No results matching ""