AVDWhiteboard Class Reference

Inherits from AVDModule : NSObject
Declared in AVDWhiteboard.h
AVDWhiteboard.mm

  publishedBoards

< 白板模块回调接口代理

@property (nonatomic, retain, readonly) NSMutableArray *publishedBoards

Discussion

< 白板模块回调接口代理

Declared In

AVDWhiteboard.h

+ getWhiteboard:

获取白板功能模块对象

+ (AVDWhiteboard *)getWhiteboard:(AVDRoom *)room

Parameters

room

room 房间对象指针

Return Value

返回白板模块对象。

Discussion

获取白板功能模块对象

Declared In

AVDWhiteboard.h

– createBoard:

创建白板

- (AVDResult)createBoard:(AVDWhiteboardInfo *)whiteboardInfo

Parameters

whiteboardInfo

白板信息

Return Value

返回错误代码

Discussion

创建白板

Declared In

AVDWhiteboard.h

– shareBoard:

共享白板

- (AVDResult)shareBoard:(AVDBoardId)whiteboardId

Parameters

whiteboardId

白板id

Return Value

返回错误代码

Discussion

共享白板

Declared In

AVDWhiteboard.h

– closeBoard:

关闭白板

- (AVDResult)closeBoard:(AVDBoardId)whiteboardId

Parameters

whiteboardId

白板id

Return Value

返回错误代码

Discussion

关闭白板

Declared In

AVDWhiteboard.h

– removeBoard:

移除白板

- (AVDResult)removeBoard:(AVDBoardId)whiteboardId

Parameters

whiteboardId

白板id

Return Value

返回错误代码

Discussion

移除白板

Declared In

AVDWhiteboard.h

– attachView:boardInfo:

视图与白板id绑定

- (AVDResult)attachView:(UIView *)view boardInfo:(AVDWhiteboardInfo *)boardInfo

Parameters

view

视图

whiteboardId

白板id

Return Value

返回错误代码

Discussion

视图与白板id绑定

Declared In

AVDWhiteboard.h

– updateBoard:whiteboard:

更新白板

- (AVDResult)updateBoard:(AVDBoardId)whiteboardId whiteboard:(AVDWhiteboardInfo *)whiteboardInfo

Parameters

whiteboardId

白板id

whiteboardInfo

白板信息

Return Value

返回错误代码

Discussion

更新白板

Declared In

AVDWhiteboard.h

– setBackgroundImage:filePath:

设置白板背景图片

- (AVDResult)setBackgroundImage:(AVDBoardId)whiteboardId filePath:(NSString *)filePath

Parameters

whiteboardId

白板id

imageName

图片名称

Return Value

返回错误代码

Discussion

设置白板背景图片

Declared In

AVDWhiteboard.h

– setBackgroundColor:alpha:red:green:blue:

设置白板背景颜色

- (AVDResult)setBackgroundColor:(AVDBoardId)whiteboardId alpha:(CGFloat)alpha red:(NSInteger)red green:(NSInteger)green blue:(NSInteger)blue

Parameters

whiteboardId

白板id

alpha

背景色透明度 0.0-1.0

red

red 0-255

green

green 0-255

blue

blue 0-255

Return Value

返回错误代码

Discussion

设置白板背景颜色

Declared In

AVDWhiteboard.h

– setWidth:width:

设置白板的宽度

- (AVDResult)setWidth:(AVDBoardId)whiteboardId width:(NSInteger)width

Parameters

whiteboardId

白板id

width

白板宽度

Return Value

返回错误代码

Discussion

设置白板的宽度

Declared In

AVDWhiteboard.h

– setHeight:height:

设置白板的高度

- (AVDResult)setHeight:(AVDBoardId)whiteboardId height:(NSInteger)height

Parameters

whiteboardId

白板id

height

白板高度

Return Value

返回错误代码

Discussion

设置白板的高度

Declared In

AVDWhiteboard.h