WhiteEvent Class Reference

Inherits from WhiteObject
Declared in WhiteEvent.h

Overview

SDK 可以触发的自定义事件回调。

– initWithName:payload:

指定回调事件名称和内容并初始化一个 WhiteEvent 对象。

- (instancetype)initWithName:(NSString *)eventName payload:(id)payload

Parameters

eventName

回调事件名称。

payload

回调事件内容。

Return Value

初始化的 WhiteEvent 对象。

Declared In

WhiteEvent.h

  eventName

回调事件名称。

@property (nonatomic, strong) NSString *eventName

Declared In

WhiteEvent.h

  payload

回调事件内容。

@property (nonatomic, strong, nullable) id payload

Declared In

WhiteEvent.h

  uuid

白板房间号。

@property (nonatomic, strong, readonly) NSString *uuid

Declared In

WhiteEvent.h

  scope

发送事件的用户角色。包括 systemappcustommagix,自定义事件为 custom

@property (nonatomic, strong, readonly) NSString *scope

Declared In

WhiteEvent.h

  authorId

发送事件的用户。

@property (nonatomic, strong, readonly) NSString *authorId

Declared In

WhiteEvent.h