CallbacksInvoker 类型

继承于 _CallbacksHandler

模块: _decorator 父模块: cc

CallbacksInvoker 用来根据 Key 管理并调用回调方法。

索引

方法
  • invoke
  • add
  • 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.
  • removeAll Removes all callbacks registered in a certain event type or all callbacks registered with a certain target
  • remove

Details

方法

invoke
meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/callbacks-invoker.js:229
参数列表
  • key String
  • p1 Any
  • p2 Any
  • p3 Any
  • p4 Any
  • p5 Any
add
meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/callbacks-invoker.js:96
参数列表
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
返回 Boolean
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/callbacks-invoker.js:111
参数列表
removeAll

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

meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/callbacks-invoker.js:147
参数列表
  • keyOrTarget String | Object The event key to be removed or the target to be removed
remove
meta description
定义于 https:/github.com/cocos-creator/engine/blob/master/cocos2d/core/platform/callbacks-invoker.js:185
参数列表

条与 "" 相匹配的结果

    没有与 "" 匹配的结果