CallbacksInvoker 类型
继承于 _CallbacksHandler
模块: _decorator父模块: cc
CallbacksInvoker 用来根据 Key 管理并调用回调方法。
索引
方法
invoke
add
hasEventListener
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 targetremove
Details
方法
invoke
参数列表
key
Stringp1
Any p2
Any p3
Any p4
Any p5
Any
add
参数列表
hasEventListener
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
参数列表
keyOrTarget
String | Object The event key to be removed or the target to be removed
remove
参数列表