cocos2d-x 3.0
- 首页 - 相关页面 - 模块 - 命名空间 - - 文件 -
Public 成员函数 - 图1 Public 成员函数 - 图2)
- 类列表 - 类索引 - 类继承关系 - 类成员

全部)) 命名空间) 文件) 函数) 变量) 类型定义) 枚举) 枚举值) 属性) 友元) 宏定义)))

Public 成员函数 | 所有成员列表

NotificationObserver类 参考

#include

类 NotificationObserver 继承关系图:

Public 成员函数 - 图3 Ref

## Public 成员函数
NotificationObserver (Ref target, SEL_CallFuncO selector, const std::string &name, Ref sender)
NotificationObserver 构造函数 更多…
~NotificationObserver ()
NotificationObserver 析构方法 NA NA. 更多…
void performSelector (Ref sender)
调用观察者回调方法 NA NA 更多…
Ref getTarget () const
NA NA 更多…
SEL_CallFuncO getSelector () const
NA NA 更多…
const std::string & getName () const
NA NA 更多…
Ref getSender () const
NA NA 更多…
int getHandler () const
NA NA 更多…
void setHandler (int handler)
NA NA 更多…
- Public 成员函数 继承自 Ref
void retain ()
保留所有权. 更多…
void release ()
立即释放所有权. 更多…
Ref autorelease ()
自动释放所有权在不久的将来. 更多…
unsigned int getReferenceCount () const
返回Ref对象当前的引用计数. 更多…
virtual ~Ref ()
NA NA 更多…
## 额外继承的成员函数
- Protected 成员函数 继承自 Ref
Ref ()
构造函数 更多…
- Protected 属性 继承自 Ref
unsigned int _referenceCount
引用计数 更多…

构造及析构函数说明

NotificationObserver ( Ref target,
SEL_CallFuncO selector,
const std::string & name,
Ref sender
)

NotificationObserver 构造函数

  • 参数
  • target这个 target 用于监听通知事件. selector当指定的通知事件被传递,毁掉函数将被调用 namenotification 名字. senderThe object whose notifications the target wants to receive. Only notifications sent by this sender are delivered to the target. nullptr means that the sender is not used to decide whether to deliver the notification to target. NA NA

~NotificationObserver ( )

NotificationObserver 析构方法 NA NA.

成员函数说明

int getHandler ( ) const

NA NA

const std::string& getName ( ) const

NA NA

SEL_CallFuncO getSelector ( ) const

NA NA

Ref* getSender ( ) const

NA NA

Ref* getTarget ( ) const

NA NA

void performSelector ( Ref * sender)

调用观察者回调方法 NA NA

void setHandler ( int handler)

NA NA


该类的文档由以下文件生成: