typedef NS_ENUM(NSInteger, ByteWhiteBoardShapeType)
鼠标和画笔类型
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardShapeTypePen | 0 | 普通画笔 |
| ByteWhiteBoardShapeTypeLine | 1 | 直线 |
| ByteWhiteBoardShapeTypeArrow | 2 | 箭头 |
| ByteWhiteBoardShapeTypeRect | 3 | 矩形 |
| ByteWhiteBoardShapeTypeCircle | 4 | 圆 |
| ByteWhiteBoardShapeTypeText | 5 | 文本框 |
| ByteWhiteBoardShapeTypeLaserPen | 7 | 激光笔 |
| ByteWhiteBoardShapeTypeFluorescentPen | 8 | 荧光笔 |
| ByteWhiteBoardShapeTypeMagicPen | 9 | 魔法画笔 |
| ByteWhiteBoardShapeTypeErase | 100 | 橡皮擦 |
| ByteWhiteBoardShapeTypeSelect | 1000 | 选择模式 |
typedef NS_ENUM(NSInteger, ByteWhiteBoardFillType)
显示模式
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardFillTypeFill | 0 | 平铺窗口 |
| ByteWhiteBoardFillTypeCenter | 1 | 中央模式 |
| ByteWhiteBoardFillTypeHidden | 2 | 裁剪 |
typedef NS_ENUM(NSInteger, ByteWhiteBoardEditMode)
编辑权限
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardEditModeReadOnly | 0 | 只读 |
| ByteWhiteBoardEditModeEditSelf | 1 | 仅当前用户可编辑 |
| ByteWhiteBoardEditModeEditAll | 2 | 所有人可编辑 |
typedef NS_ENUM(NSInteger, ByteWhiteBoardLockBoardReason)
锁定原因
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardLockBoardReasonBoardDataError | 0 | 数据错误 |
| ByteWhiteBoardLockBoardReasonNetworkCongestion | 1 | 网络阻塞 |
| ByteWhiteBoardLockBoardReasonNetworkDisconnect | 2 | 网络断开 |
typedef NS_ENUM(NSInteger, ByteWhiteBoardBoardStatus)
白板状态
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardBoardStatusActive | 0 | 激活 |
| ByteWhiteBoardBoardStatusInActive | 1 | 后台 |
typedef NS_ENUM(NSInteger, ByteWhiteBoardWindowConfigRenderMode)
渲染方式
| 类型 | 值 | 说明 |
|---|---|---|
| ByteWhiteBoardWindowConfigRenderModeFill | 0 | 填满窗口 |
| ByteWhiteBoardWindowConfigRenderModeFit | 1 | 按比例缩放,可能填充不满 |
| ByteWhiteBoardWindowConfigRenderModeHidden | 2 | 按比例缩放,填充满,白板可能被裁剪 |
@interface ByteWhiteBoardWindowConfig : NSObject
窗口配置
| 类型 | 名称 |
|---|---|
| UIView* | view |
| ByteWhiteBoardWindowConfigRenderMode | renderMode |
| float | aspectRatio |
@property (nonatomic, strong) UIView * view;
视图
@property (nonatomic, assign) ByteWhiteBoardWindowConfigRenderMode renderMode;
渲染方式
@property (nonatomic, assign) float aspectRatio;
显示比例(长/宽)
@interface ByteWhiteBoardBackgroundInfo : NSObject
页面配置
| 类型 | 名称 |
|---|---|
| UIColor* | bkColor |
| NSString* | bkImage |
| CGSize | bkImageSize |
| ByteWhiteBoardFillType | bkImageFillType |
@property (nonatomic, strong) UIColor* bkColor;
背景颜色
@property (nonatomic, strong) NSString * bkImage;
背景图片
@property (nonatomic, assign) CGSize bkImageSize;
背景图片尺寸
@property (nonatomic, assign) ByteWhiteBoardFillType bkImageFillType;
背景图片填充方式
@interface ByteWhiteBoardPageInfo : NSObject
页面信息
| 类型 | 名称 |
|---|---|
| NSString* | pageID |
| ByteWhiteBoardBackgroundInfo* | bkInfo |
| NSString* | extraMsg |
@property (nonatomic, strong) NSString* pageID;
页面 ID
@property (nonatomic, strong) ByteWhiteBoardBackgroundInfo* bkInfo;
背景设置,详见 ByteWhiteBoardBackgroundInfo
@property (nonatomic, strong) NSString * extraMsg;
附加信息,最大 512 字节