ByteWhiteBoardAddImage
typedef NS_ENUM(NSInteger, ByteWhiteBoardAddImage)
objectivec

添加图片返回枚举类型。

枚举值
类型值说明
ByteWhiteBoardAddImageFailure0添加失败。
ByteWhiteBoardAddImageSuccess1添加成功。
ByteWhiteBoardConnectionState
typedef NS_ENUM(NSInteger, ByteWhiteBoardConnectionState)
objectivec

SDK 与 RTC 服务器连接状态。

枚举值
类型值说明
ByteWhiteBoardConnectionStateDisconnected1连接断开,且断开时长超过 12s,SDK 会自动重连。
ByteWhiteBoardConnectionStateConnecting2首次请求建立连接,正在连接中。
ByteWhiteBoardConnectionStateConnected3首次连接成功。
ByteWhiteBoardConnectionStateReconnecting4涵盖了以下情况:

+ 首次连接时,10 秒内未连接成功;

+ 连接成功后,断连 10 秒。自动重连中。
ByteWhiteBoardConnectionStateReconnected5连接断开后,重连成功。
ByteWhiteBoardConnectionStateLost6处于 CONNECTION_STATE_DISCONNECTED 状态超过 10 秒,且期间重连未成功。SDK 仍将继续尝试重连。
ByteWhiteBoardConnectionStateFailed7连接失败,服务端状态异常。SDK 不会自动重连,请重新进房,或联系技术支持。
ByteWhiteBoardShapeType
typedef NS_ENUM(NSInteger, ByteWhiteBoardShapeType)
objectivec

光标和画笔类型

枚举值
类型值说明
ByteWhiteBoardShapeTypePen0普通画笔
ByteWhiteBoardShapeTypeLine1直线
ByteWhiteBoardShapeTypeArrow2箭头
ByteWhiteBoardShapeTypeRect3矩形
ByteWhiteBoardShapeTypeCircle4圆
ByteWhiteBoardShapeTypeText5文本框
ByteWhiteBoardShapeTypeLaserPen7激光笔
ByteWhiteBoardShapeTypeFluorescentPen8荧光笔
ByteWhiteBoardShapeTypeMagicPen9魔法画笔
ByteWhiteBoardShapeTypeErase100橡皮擦
ByteWhiteBoardShapeTypeSelect1000选择模式
ByteWhiteBoardShapeTypeDrag1001拖拽工具,设置后SDK处理触摸事件实现缩放&平移操作
ByteWhiteBoardFillType
typedef NS_ENUM(NSInteger, ByteWhiteBoardFillType)
objectivec

背景图片填充方式。

枚举值
类型值说明
ByteWhiteBoardFillTypeFill0平铺窗口,按照白板比例缩放图片进行填充。
ByteWhiteBoardFillTypeCenter1居中放置,不缩放。
ByteWhiteBoardFillTypeHidden2等比例缩放,如果画布和图片比例不一致,将对图片进行裁切。
ByteWhiteBoardEditMode
typedef NS_ENUM(NSInteger, ByteWhiteBoardEditMode)
objectivec

编辑权限

枚举值
类型值说明
ByteWhiteBoardEditModeReadOnly0只读
ByteWhiteBoardEditModeEditAll1所有人可编辑
ByteWhiteBoardLockBoardReason
typedef NS_ENUM(NSInteger, ByteWhiteBoardLockBoardReason)
objectivec

锁定原因

枚举值
类型值说明
ByteWhiteBoardLockBoardReasonBoardDataError0数据错误
ByteWhiteBoardLockBoardReasonNetworkCongestion1网络阻塞
ByteWhiteBoardLockBoardReasonNetworkDisconnect2网络断开
ByteWhiteBoardLockBoardElementReason
typedef NS_ENUM(NSInteger, ByteWhiteBoardLockBoardElementReason)
objectivec

白板元素锁定原因

枚举值
类型值说明
ByteWhiteBoardLockBoardElementReasonLock0元素被锁
ByteWhiteBoardImageLoadStatus
typedef NS_ENUM(NSInteger, ByteWhiteBoardImageLoadStatus)
objectivec

白板元素锁定原因

枚举值
类型值说明
ByteWhiteBoardImageLoadStatusLoading0加载中。
ByteWhiteBoardImageLoadStatusEnd1加载完成。
ByteWhiteBoardImageLoadStatusError2加载错误。
ByteWhiteBoardBoardStatus
typedef NS_ENUM(NSInteger, ByteWhiteBoardBoardStatus)
objectivec

白板状态

枚举值
类型值说明
ByteWhiteBoardBoardStatusActive0可用
ByteWhiteBoardBoardStatusInActive1不可用。房间中有用户调用 destroyRoom 关闭白板后,再次进房时,白板状态将为不可用。
ByteWhiteBoardRoomStatus
typedef NS_ENUM(NSInteger, ByteWhiteBoardRoomStatus)
objectivec

房间状态

枚举值
类型值说明
ByteWhiteBoardRoomStatusActive0正在上课状态
ByteWhiteBoardRoomStatusInActive1下课状态。房间中有用户调用 destroyRoom 下课后,再次进房时,白板状态将为不可用。
ByteWhiteBoardWindowConfigRenderMode
typedef NS_ENUM(NSInteger, ByteWhiteBoardWindowConfigRenderMode)
objectivec

渲染方式

枚举值
类型值说明
ByteWhiteBoardWindowConfigRenderModeFill0填满窗口
ByteWhiteBoardWindowConfigRenderModeFit1按比例缩放,可能填充不满
ByteWhiteBoardWindowConfigRenderModeHidden2按比例缩放,填充满,白板可能被裁剪
ByteWhiteBoardCursorType
typedef NS_ENUM(NSInteger, ByteWhiteBoardCursorType)
objectivec

自定义光标类型

枚举值
类型值说明
ByteWhiteBoardCursorTypeNormal1鼠标选择工具
ByteWhiteBoardCursorTypePen2画笔工具。画笔的设置接口如下。
+ 调用 setPenSize: 设置笔尖宽度。
+ 调用 setPenColor: 设置画笔颜色。
ByteWhiteBoardCursorTypeShape3形状绘制工具。形状的设置接口如下。
+ 调用 setShapeSize: 设置边框线条宽度。
+ 调用 setShapeColor: 设置边框线条颜色。
ByteWhiteBoardCursorTypeText4文本工具。文本的设置接口如下。
+ 调用 setTextFontSize: 设置文字高度。
+ 调用 setTextColor: 设置文字颜色。
ByteWhiteBoardCursorTypeErase5橡皮擦工具
ByteWhiteBoardCursorTypeLaser6激光笔工具
ByteWhiteBoardMotionType
typedef NS_ENUM(NSInteger, ByteWhiteBoardMotionType)
objectivec

锚点形状

枚举值
类型值说明
ByteWhiteBoardMotionTypeRect0矩形
ByteWhiteBoardMotionTypeCircle1圆形
ByteWhiteBoardViewMode
typedef NS_ENUM(NSInteger, ByteWhiteBoardViewMode)
objectivec

视图模式

枚举值
类型值说明
ByteWhiteBoardViewModeCast0视角设置者
ByteWhiteBoardViewModeFollow1视角跟随者
ByteWhiteBoardViewModeFree2自由模式
ByteWhiteBoardWindowConfig
@interface ByteWhiteBoardWindowConfig : NSObject
objectivec

窗口配置

成员变量
类型名称
UIView*view
ByteWhiteBoardWindowConfigRenderModerenderMode
floataspectRatio
变量说明

view
@property (nonatomic, strong) UIView * _Nullable view;
objectivec

视图

renderMode
@property (nonatomic, assign) ByteWhiteBoardWindowConfigRenderMode renderMode;
objectivec

渲染方式

aspectRatio
@property (nonatomic, assign) float aspectRatio;
objectivec

显示比例(长/宽)

ByteWhiteBoardBackgroundInfo
@interface ByteWhiteBoardBackgroundInfo : NSObject
objectivec

页面配置

成员变量
类型名称
UIColor*bkColor
NSString*bkImage
CGSizebkImageSize
ByteWhiteBoardFillTypebkImageFillType
变量说明

bkColor
@property (nonatomic, strong) UIColor* _Nullable bkColor;
objectivec

背景颜色

bkImage
@property (nonatomic, strong) NSString * _Nullable bkImage;
objectivec

背景图片

bkImageSize
@property (nonatomic, assign) CGSize bkImageSize;
objectivec

背景图片尺寸

bkImageFillType
@property (nonatomic, assign) ByteWhiteBoardFillType bkImageFillType;
objectivec

背景图片填充方式。详见 ByteWhiteBoardFillType。

ByteWhiteBoardZoomInfo
@interface ByteWhiteBoardZoomInfo : NSObject
objectivec

视图缩放信息

成员变量
类型名称
CGFloatzoom
intcenterX
intcenterY
变量说明

zoom
@property (nonatomic, assign) CGFloat zoom;
objectivec

放大倍数

centerX
@property (nonatomic, assign) int centerX;
objectivec

距离原点 X 方向上的偏移,白板右方为正方向

centerY
@property (nonatomic, assign) int centerY;
objectivec

距离原点 Y 方向上的偏移,白板下方为正方向

ByteWhiteBoardPageInfo
@interface ByteWhiteBoardPageInfo : NSObject
objectivec

页面信息

成员变量
类型名称
NSString*pageID
ByteWhiteBoardBackgroundInfo*bkInfo
NSString*extraMsg
变量说明

pageID
@property (nonatomic, strong) NSString* _Nullable pageID;
objectivec

页面 ID

bkInfo
@property (nonatomic, strong) ByteWhiteBoardBackgroundInfo* _Nullable bkInfo;
objectivec

背景设置,详见 ByteWhiteBoardBackgroundInfo

extraMsg
@property (nonatomic, strong) NSString * _Nullable extraMsg;
objectivec

附加信息,最大 512 字节

ByteWhiteBoardInfo
@interface ByteWhiteBoardInfo : NSObject
objectivec

白板信息

成员变量
类型名称
NSIntegerboardID
NSString*boardName
NSArray<ByteWhiteBoardPageInfo>**pageInfos
NSString*currentBoardID
ByteWhiteBoardBackgroundInfo*backgroundInfo
ByteWhiteBoardBoardStatusboradStatus
ByteWhiteBoardZoomInfo*zoomInfo
NSIntegercreateTime
变量说明

boardID
@property (nonatomic, assign) NSInteger boardID;
objectivec

白板 ID

boardName
@property (nonatomic, strong) NSString* _Nullable boardName;
objectivec

白板名字

pageInfos
@property (nonatomic, strong) NSArray<ByteWhiteBoardPageInfo *>* _Nullable pageInfos;
objectivec

白板内所有页的信息

currentBoardID
@property (nonatomic, strong) NSString* _Nullable currentBoardID;
objectivec

当前页ID

backgroundInfo
@property (nonatomic, strong) ByteWhiteBoardBackgroundInfo* _Nullable backgroundInfo;
objectivec

当前白板背景信息

boradStatus
@property (nonatomic, assign) ByteWhiteBoardBoardStatus boradStatus;
objectivec

当前白板状态

zoomInfo
@property (nonatomic, strong) ByteWhiteBoardZoomInfo * _Nullable zoomInfo;
objectivec

视图缩放信息

createTime
@property (nonatomic, assign) NSInteger createTime;
objectivec

当前白板创建时间,为精确到毫秒的 UNIX 时间戳

ByteWhiteBoardAnchor
@interface ByteWhiteBoardAnchor : NSObject
objectivec

选择框样式

成员变量
类型名称
ByteWhiteBoardMotionTypetype
intanchorWidth
intanchorBorderWidth
intanchorBorderColor
intanchorFillColor
intborderWidth
intborderColor
NSString*rotateIcon
introtateDistance
变量说明

type
@property (nonatomic, assign) ByteWhiteBoardMotionType type;
objectivec

锚点形状

anchorWidth
@property (nonatomic, assign) int anchorWidth;
objectivec

锚点宽度

anchorBorderWidth
@property (nonatomic, assign) int anchorBorderWidth;
objectivec

锚点边框线条宽度

anchorBorderColor
@property (nonatomic, assign) int  anchorBorderColor;
objectivec

锚点边框颜色

anchorFillColor
@property (nonatomic, assign) int  anchorFillColor;
objectivec

锚点填充颜色

borderWidth
@property (nonatomic, assign) int borderWidth;
objectivec

选择框宽度

borderColor
@property (nonatomic, assign) int borderColor;
objectivec

选择框颜色

rotateIcon
@property (nonatomic, strong) NSString * _Nullable rotateIcon;
objectivec

旋转手柄图标资源地址

rotateDistance
@property (nonatomic, assign) int  rotateDistance;
objectivec

旋转手柄距离选择框顶点的距离

ByteWhiteBoardCursorInfo
@interface ByteWhiteBoardCursorInfo : NSObject
objectivec

光标样式

成员变量
类型名称
intcenterX
intcenterY
NSString*iconPath
变量说明

centerX
@property (nonatomic, assign) int centerX;
objectivec

光标中心点 X 坐标

centerY
@property (nonatomic, assign) int centerY;
objectivec

光标中心点 Y 坐标

iconPath
@property (nonatomic, copy) NSString * _Nullable iconPath;
objectivec

icon 资源地址

ByteWhiteBoardImageRect
@interface ByteWhiteBoardImageRect : NSObject
objectivec

图片位置信息

成员变量
类型名称
int*width
int*height
int*left
int*top
变量说明

width
@property (nonatomic, assign) int* _Nullable width;
objectivec

图片宽度,单位为屏幕宽度万分之一

height
@property (nonatomic, assign) int* _Nullable height;
objectivec

图片高度,单位为屏幕宽度万分之一

left
@property (nonatomic, assign) int* _Nullable left;
objectivec

X 轴坐标

top
@property (nonatomic, assign) int* _Nullable top;
objectivec

Y 轴坐标