NERoom SDK V1.32.0
载入中...
搜索中...
未找到
annotation_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 ANNOTATION_CTRL_INTERFACE_H
12#define ANNOTATION_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 ~INEAnnotationView() override = default;
29};
30
35public:
40
41public:
45 virtual ~INERoomAnnotationController() = default;
46
51 virtual std::string getAnnotationUrl() = 0;
52
57 virtual int login() = 0;
58
63 virtual int logout() = 0;
64
69 virtual int auth() = 0;
70
76 virtual int setEnableDraw(bool enable) = 0;
77
84
91
96 virtual bool getIsAnnotationEnabled() = 0;
97
103 virtual void startAnnotationShare(const NEAnnotationCallback& callback) = 0;
104
110 virtual void stopAnnotationShare(const NEAnnotationCallback& callback) = 0;
111};
112
113} // namespace neroom
114#endif // ANNOTATION_CTRL_INTERFACE_H
基础控制器头文件
基本类型定义头文件
~INEAnnotationView() override=default
析构函数
virtual int setEnableDraw(bool enable)=0
设置批注是否可绘制
virtual bool getIsAnnotationEnabled()=0
正在批注共享的用户状态
virtual std::string getAnnotationUrl()=0
获取批注加载地址
virtual void startAnnotationShare(const NEAnnotationCallback &callback)=0
开始批注共享
virtual int auth()=0
身份认证
virtual int login()=0
登录批注
virtual int setupAnnotationCanvas(INEAnnotationView *view)=0
设置批注视图
virtual int resetAnnotationCanvas(INEAnnotationView *view)=0
重置批注视图
virtual void stopAnnotationShare(const NEAnnotationCallback &callback)=0
关闭批注共享
virtual int logout()=0
登出批注
NECallback<> NEAnnotationCallback
批注操作结果回调
virtual ~INERoomAnnotationController()=default
析构函数
错误码定义头文件
std::function< void(int, const std::string &, const TResultParam &...)> NECallback
通用回调