NERoom SDK V1.32.0
载入中...
搜索中...
未找到
whiteboard_ctrl_interface.h
浏览该文件的文档.
1// Copyright (c) 2022 NetEase, Inc. All rights reserved.
2// Use of this source code is governed by a MIT license that can be
3// found in the LICENSE file.
4
11#ifndef WHITEBOARD_CTRL_INTERFACE_H
12#define WHITEBOARD_CTRL_INTERFACE_H
13
14#include "base_ctrl_interface.h"
15#include "base_type_defines.h"
16#include "error_code_defines.h"
17
18namespace neroom {
19
24public:
28 ~INEWhiteboardView() override = default;
29
30};
31
36public:
41
42public:
46 virtual ~INERoomWhiteboardController() = default;
47
52 virtual std::string getWhiteboardUrl() = 0;
53
58 virtual int login() = 0;
59
64 virtual int logout() = 0;
65
70 virtual int auth() = 0;
71
77 virtual int setEnableDraw(bool enable) = 0;
78
85
92
97 virtual std::string getWhiteboardSharingUserUuid() = 0;
98
105
111 virtual void stopWhiteboardShare(const NEWhiteboardCallback& callback = NEWhiteboardCallback()) = 0;
112
119 virtual void stopMemberWhiteboardShare(const std::string& userUuid, const NEWhiteboardCallback& callback = NEWhiteboardCallback()) = 0;
120};
121
122} // namespace neroom
123#endif // WHITEBOARD_CTRL_INTERFACE_H
基础控制器头文件
基本类型定义头文件
virtual void stopWhiteboardShare(const NEWhiteboardCallback &callback=NEWhiteboardCallback())=0
关闭白板共享
virtual int logout()=0
登出白板
virtual std::string getWhiteboardSharingUserUuid()=0
正在白板共享的用户
virtual int auth()=0
身份认证
virtual int setupWhiteboardCanvas(INEWhiteboardView *view)=0
设置白板视图
virtual int setEnableDraw(bool enable)=0
设置白板是否可绘制
virtual int login()=0
登录白板
NECallback<> NEWhiteboardCallback
白板操作结果回调
virtual void startWhiteboardShare(const NEWhiteboardCallback &callback=NEWhiteboardCallback())=0
开始白板共享
virtual int resetWhiteboardCanvas(INEWhiteboardView *view)=0
重置白板视图
virtual std::string getWhiteboardUrl()=0
获取白板加载地址
virtual void stopMemberWhiteboardShare(const std::string &userUuid, const NEWhiteboardCallback &callback=NEWhiteboardCallback())=0
停止成员共享
virtual ~INERoomWhiteboardController()=default
析构函数
~INEWhiteboardView() override=default
析构函数
错误码定义头文件
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调