NERoomWhiteboardController
@objcMembers
public class NERoomWhiteboardController : NERoomWhiteBoardBaseController
白板控制器
-
功能是否支持
Declaration
Swift
override public var isSupported: Bool { get }
-
设置白板是否可绘制
Declaration
Swift
@discardableResult public func setEnableDraw(enable: Bool) -> Int
-
设置白板
Declaration
Swift
@discardableResult public func setupWhiteboardCanvas(view: NEWhiteboardView) -> Int
-
重置白板
Declaration
Swift
@discardableResult public func resetWhiteboardCanvas(view: NEWhiteboardView?) -> Int
-
开启本端白板共享
Declaration
Swift
public func startWhiteboardShare(callback: NECallback<AnyObject>? = nil)
Parameters
callback
开启结果回调
-
停止本端白板共享
Declaration
Swift
public func stopWhiteboardShare(callback: NECallback<AnyObject>? = nil)
Parameters
callback
关闭结果回调
-
关闭成员白板
Declaration
Swift
public func stopMemberWhiteboardShare(userUuid: String, callback: NECallback<AnyObject>?)
Parameters
userUuid
成员ID
callback
回调
-
获取正在白板分享的成员Id
Declaration
Swift
@discardableResult public func getWhiteboardSharingUserUuid() -> String?
-
设置白板背景颜色,只对当前客户端有影响
Declaration
Swift
@discardableResult public func setCanvasBackgroundColor(_ color: String) -> Int
-
将白板和被标注物的坐标绑定
Declaration
Swift
@discardableResult public func lockCameraWithContent(width: Int, height: Int) -> Int
-
更新自己的白板共享状态
Declaration
Swift
func updateWhiteboardState(open: Bool, completion: @escaping ([String: Any]?, Error?) -> Void)
-
更新成员白板共享状态
Declaration
Swift
func updateWhiteboardState(userUuid: String, open: Bool, completion: @escaping ([String: Any]?, Error?) -> Void)
Parameters
userUuid
成员ID
openValue
状态 1: 打开 0: 关闭
completion
回调