# WhiteEvent Class Reference (/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event)
> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).
Whiteboard iOS SDK 2.16.147 公开接口。
@interface WhiteEvent: WhiteObject
## 成员 [#成员]
- [initWithName\:payload:](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/initWithName:payload:)
- [eventName](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/eventName)
- [payload](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/payload)
- [uuid](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/uuid)
- [scope](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/scope)
- [authorId](/zh-CN/api-reference/whiteboard/whiteboard-sdk/ios/classes/white-event#//api/name/authorId)
### `– initWithName:payload:` [#-initwithnamepayload]
\- (instancetype)initWithName:(NSString *)eventName payload:(id)payload;
```text
指定回调事件名称和内容并初始化一个 `WhiteEvent` 对象。
@param eventName 回调事件名称。
@param payload 回调事件内容。
@return 初始化的 `WhiteEvent` 对象。
```
Declared in Object/WhiteEvent.h
### `eventName` [#eventname]
@property (nonatomic, strong) NSString *eventName;
```text
回调事件名称。
```
Declared in Object/WhiteEvent.h
### `payload` [#payload]
@property (nonatomic, strong, nullable) id payload;
```text
回调事件内容。
消息格式取决于发送方,可以为 NSArray(内部元素也需要可以被转换成 JSON ),NSString,NSDictionary,NSNumber(with Boolean,NSInteger,CGFloat)等可以在 JSON 中正常展示的类型。
```
Declared in Object/WhiteEvent.h
### `uuid` [#uuid]
@property (nonatomic, strong, readonly) NSString *uuid;
```text
白板房间号。
```
Declared in Object/WhiteEvent.h
### `scope` [#scope]
@property (nonatomic, strong, readonly) NSString *scope;
```text
发送事件的用户角色。包括 `system`,`app`,`custom`,`magix`,自定义事件为 `custom`。
```
Declared in Object/WhiteEvent.h
### `authorId` [#authorid]
@property (nonatomic, strong, readonly) NSString *authorId;
```text
发送事件的用户。
```
Declared in Object/WhiteEvent.h