CallbacksInvoker 类型

继承于 _CallbacksHandler

模块: _decorator 父模块: cc

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

索引

方法
  • invoke
  • add
  • has Check if the specified key has any registered callback. If a callback is also specified,...
  • removeAll Removes all callbacks registered in a certain event type or all callbacks registered with a certain target
  • remove

Details

方法

invoke
meta description
定义于 cocos2d/core/platform/callbacks-invoker.js:230
参数列表
  • key String
  • p1 Any
  • p2 Any
  • p3 Any
  • p4 Any
  • p5 Any
add
meta description
定义于 cocos2d/core/platform/callbacks-invoker.js:97
参数列表
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
定义于 cocos2d/core/platform/callbacks-invoker.js:112
参数列表
removeAll

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

meta description
定义于 cocos2d/core/platform/callbacks-invoker.js:148
参数列表
  • keyOrTarget String | Object The event key to be removed or the target to be removed
remove
meta description
定义于 cocos2d/core/platform/callbacks-invoker.js:186
参数列表

results matching ""

    No results matching ""