larksr_websdk 3.2.34 → 3.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/doc/functions.md +21 -3
- package/dist/larksr-web-sdk.min.js +1 -1
- package/dist/types/larksr.d.ts +35 -10
- package/package.json +3 -2
- package/types/larksr.d.ts +35 -10
package/dist/doc/functions.md
CHANGED
|
@@ -12,10 +12,24 @@ LarkSR 对象成员方法主要分为以下三类
|
|
|
12
12
|
*/
|
|
13
13
|
initSDKAuthCode(id: string): Promise<void>;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @
|
|
15
|
+
* 连接云端渲染资源
|
|
16
|
+
* @params appID 云端资源的 ID
|
|
17
|
+
* @returns Promise 调用接口并校验授权通过返回成功并自动开始连接
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
connect(params: {
|
|
20
|
+
appliId: string;
|
|
21
|
+
playerMode?: number;
|
|
22
|
+
userType?: number;
|
|
23
|
+
roomCode?: string;
|
|
24
|
+
taskId?: string;
|
|
25
|
+
clientMac?: string;
|
|
26
|
+
groupId?: string;
|
|
27
|
+
regionId?: string;
|
|
28
|
+
targetServerIp?: string;
|
|
29
|
+
appKey?: string;
|
|
30
|
+
timestamp?: string;
|
|
31
|
+
signature?: string;
|
|
32
|
+
}): Promise<void>;
|
|
19
33
|
/**
|
|
20
34
|
* 重新开始云渲染流程
|
|
21
35
|
*/
|
|
@@ -24,6 +38,10 @@ restart(): void;
|
|
|
24
38
|
* 重新启动云端应用
|
|
25
39
|
*/
|
|
26
40
|
restartApp(): void;
|
|
41
|
+
/**
|
|
42
|
+
* 主动关闭连接
|
|
43
|
+
*/
|
|
44
|
+
close(): void;
|
|
27
45
|
```
|
|
28
46
|
|
|
29
47
|
## 输入输出相关方法,包括鼠标,键盘,手柄,触摸
|