ByteWhiteBoardShapeType

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 选择模式

ByteWhiteBoardFillType

typedef NS_ENUM(NSInteger, ByteWhiteBoardFillType)

显示模式

枚举值

类型 值 说明
ByteWhiteBoardFillTypeFill 0 平铺窗口
ByteWhiteBoardFillTypeCenter 1 中央模式
ByteWhiteBoardFillTypeHidden 2 裁剪

ByteWhiteBoardEditMode

typedef NS_ENUM(NSInteger, ByteWhiteBoardEditMode)

编辑权限

枚举值

类型 值 说明
ByteWhiteBoardEditModeReadOnly 0 只读
ByteWhiteBoardEditModeEditSelf 1 仅当前用户可编辑
ByteWhiteBoardEditModeEditAll 2 所有人可编辑

ByteWhiteBoardLockBoardReason

typedef NS_ENUM(NSInteger, ByteWhiteBoardLockBoardReason)

锁定原因

枚举值

类型 值 说明
ByteWhiteBoardLockBoardReasonBoardDataError 0 数据错误
ByteWhiteBoardLockBoardReasonNetworkCongestion 1 网络阻塞
ByteWhiteBoardLockBoardReasonNetworkDisconnect 2 网络断开

ByteWhiteBoardBoardStatus

typedef NS_ENUM(NSInteger, ByteWhiteBoardBoardStatus)

白板状态

枚举值

类型 值 说明
ByteWhiteBoardBoardStatusActive 0 激活
ByteWhiteBoardBoardStatusInActive 1 后台

ByteWhiteBoardWindowConfigRenderMode

typedef NS_ENUM(NSInteger, ByteWhiteBoardWindowConfigRenderMode)

渲染方式

枚举值

类型 值 说明
ByteWhiteBoardWindowConfigRenderModeFill 0 填满窗口
ByteWhiteBoardWindowConfigRenderModeFit 1 按比例缩放,可能填充不满
ByteWhiteBoardWindowConfigRenderModeHidden 2 按比例缩放,填充满,白板可能被裁剪

ByteWhiteBoardWindowConfig

@interface ByteWhiteBoardWindowConfig : NSObject

窗口配置

成员变量

类型 名称
UIView* view
ByteWhiteBoardWindowConfigRenderMode renderMode
float aspectRatio

变量说明

view

@property (nonatomic, strong) UIView * view;

视图

renderMode

@property (nonatomic, assign) ByteWhiteBoardWindowConfigRenderMode renderMode;

渲染方式

aspectRatio

@property (nonatomic, assign) float aspectRatio;

显示比例(长/宽)

ByteWhiteBoardBackgroundInfo

@interface ByteWhiteBoardBackgroundInfo : NSObject

页面配置

成员变量

类型 名称
UIColor* bkColor
NSString* bkImage
CGSize bkImageSize
ByteWhiteBoardFillType bkImageFillType

变量说明

bkColor

@property (nonatomic, strong) UIColor* bkColor;

背景颜色

bkImage

@property (nonatomic, strong) NSString * bkImage;

背景图片

bkImageSize

@property (nonatomic, assign) CGSize bkImageSize;

背景图片尺寸

bkImageFillType

@property (nonatomic, assign) ByteWhiteBoardFillType bkImageFillType;

背景图片填充方式

ByteWhiteBoardPageInfo

@interface ByteWhiteBoardPageInfo : NSObject

页面信息

成员变量

类型 名称
NSString* pageID
ByteWhiteBoardBackgroundInfo* bkInfo
NSString* extraMsg

变量说明

pageID

@property (nonatomic, strong) NSString* pageID;

页面 ID

bkInfo

@property (nonatomic, strong) ByteWhiteBoardBackgroundInfo* bkInfo;

背景设置,详见 ByteWhiteBoardBackgroundInfo

extraMsg

@property (nonatomic, strong) NSString * extraMsg;

附加信息,最大 512 字节