WhiteEvent Class Reference
| Inherits from | WhiteObject |
|---|---|
| Declared in | WhiteEvent.h |
– initWithName:payload:
Sets the name and content of the callback event and initializes a WhiteEvent object.
- (instancetype)initWithName:(NSString *)eventName payload:(id)payloadParameters
eventName |
The name of the event. |
|---|---|
payload |
The content of the event. |
Return Value
An initialized WhiteEvent object.
Declared In
WhiteEvent.h
eventName
The name of the event.
@property (nonatomic, strong) NSString *eventNameDeclared In
WhiteEvent.h
payload
The content of the event.
@property (nonatomic, strong, nullable) id payloadDeclared In
WhiteEvent.h
uuid
Room UUID, the unique identifier of a room.
@property (nonatomic, strong, readonly) NSString *uuidDeclared In
WhiteEvent.h
scope
The role of the user who triggers the event, including system, app, custom, magix.
@property (nonatomic, strong, readonly) NSString *scopeDeclared In
WhiteEvent.h
authorId
The user ID of the event trigger.
@property (nonatomic, strong, readonly) NSString *authorIdDeclared In
WhiteEvent.h