Interface NERoomWhiteboardController
-
- All Implemented Interfaces:
-
com.netease.yunxin.kit.roomkit.api.NEBaseController
public interface NERoomWhiteboardController implements NEBaseController
白板控制器
-
-
Method Summary
Modifier and Type Method Description abstract Integer
setEnableDraw(Boolean enable)
设置白板是否可绘制 abstract Integer
setCanvasBackgroundColor(String color)
设置白板背景颜色,只对当前客户端有影响 abstract Integer
lockCameraWithContent(Integer width, Integer height)
将白板和被标注物的坐标绑定 abstract Integer
setupWhiteboardCanvas(NEWhiteboardView view)
设置白板视图 abstract Integer
resetWhiteboardCanvas(NEWhiteboardView view)
重置白板视图 abstract Unit
startWhiteboardShare(NECallback<Unit> callback)
开启本端白板共享 abstract Unit
stopWhiteboardShare(NECallback<Unit> callback)
停止本端白板共享 abstract Unit
stopMemberWhiteboardShare(String userUuid, NECallback<Unit> callback)
尝试关闭房间内成员的白板共享,会进行权限校验。 abstract String
getWhiteboardSharingUserUuid()
查询白板共享者的userUuid -
-
Method Detail
-
setEnableDraw
abstract Integer setEnableDraw(Boolean enable)
设置白板是否可绘制
- Parameters:
enable
- 是否允许绘制
-
setCanvasBackgroundColor
abstract Integer setCanvasBackgroundColor(String color)
设置白板背景颜色,只对当前客户端有影响
- Parameters:
color
- 白板背景颜色,如"rgb(255, 255, 255)","rgba(255, 255, 255, 0)"
-
lockCameraWithContent
abstract Integer lockCameraWithContent(Integer width, Integer height)
将白板和被标注物的坐标绑定
- Parameters:
width
- 被标注物的宽度(一般为视频画面宽度)height
- 被标注物的高度(一般为视频画面高度度)
-
setupWhiteboardCanvas
abstract Integer setupWhiteboardCanvas(NEWhiteboardView view)
设置白板视图
- Parameters:
view
- 白板视图
-
resetWhiteboardCanvas
abstract Integer resetWhiteboardCanvas(NEWhiteboardView view)
重置白板视图
- Parameters:
view
- 当前白板视图或传入null强制重置
-
startWhiteboardShare
abstract Unit startWhiteboardShare(NECallback<Unit> callback)
开启本端白板共享
- Parameters:
callback
- 回调
-
stopWhiteboardShare
abstract Unit stopWhiteboardShare(NECallback<Unit> callback)
停止本端白板共享
- Parameters:
callback
- 回调
-
stopMemberWhiteboardShare
abstract Unit stopMemberWhiteboardShare(String userUuid, NECallback<Unit> callback)
尝试关闭房间内成员的白板共享,会进行权限校验。
- Parameters:
userUuid
- 成员账号Idcallback
- 回调
-
getWhiteboardSharingUserUuid
abstract String getWhiteboardSharingUserUuid()
查询白板共享者的userUuid
-
-
-
-