WhiteEvent Class Reference
Inherits from | WhiteObject |
---|---|
Declared in | WhiteEvent.h |
– initWithName:payload:
指定回调事件名称和内容并初始化一个 WhiteEvent
对象。
- (instancetype)initWithName:(NSString *)eventName payload:(id)payload
Parameters
eventName |
回调事件名称。 |
---|---|
payload |
回调事件内容。 |
Return Value
初始化的 WhiteEvent
对象。
Declared In
WhiteEvent.h
scope
发送事件的用户角色。包括 system
,app
,custom
,magix
,自定义事件为 custom
。
@property (nonatomic, strong, readonly) NSString *scope
Declared In
WhiteEvent.h
authorId
发送事件的用户。
@property (nonatomic, strong, readonly) NSString *authorId
Declared In
WhiteEvent.h