@ray-js/api 1.7.81 → 1.7.82

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.
@@ -1,58 +1,78 @@
1
1
  /**
2
2
  * IPCKit
3
3
  *
4
- * @version 7.7.10
4
+ * @version 7.9.0
5
5
  */
6
6
  declare namespace ty.ipc {
7
7
  /**
8
8
  * 生成云存储签名URL
9
9
  * @public
10
10
  * @since IPCKit 1.2.0
11
+ * @example Demo
12
+ * ```tsx
13
+ * ty.ipc.generateSignedUrl({
14
+ * path: "xx",
15
+ * expiration: "xx",
16
+ * region: "xx",
17
+ * token: "xx",
18
+ * sk: "xx",
19
+ * provider: "xx",
20
+ * endpoint: "xx",
21
+ * ak: "xx",
22
+ * bucket: "xx",
23
+ * success: (res) => {
24
+ * console.log(res);
25
+ * },
26
+ * fail: (err) => {
27
+ * console.log(err);
28
+ * },
29
+ * });
30
+ * ```
11
31
  * @platform iOS Android
12
32
  */
13
33
  export function generateSignedUrl(params: {
14
34
  /**
15
- * file path
35
+ * 文件路径
16
36
  * @since IPCKit 1.2.0
17
37
  */
18
38
  path: string
19
39
  /**
20
- * expiration
40
+ * 签名过期时间
21
41
  * @since IPCKit 1.2.0
22
42
  */
23
43
  expiration: string
24
44
  /**
25
- * region
45
+ * 存储区域
26
46
  * @since IPCKit 1.2.0
27
47
  */
28
48
  region: string
29
49
  /**
30
- * token
50
+ * 临时访问令牌
31
51
  * @since IPCKit 1.2.0
32
52
  */
33
53
  token: string
34
54
  /**
35
- * sk
55
+ * 密钥(Secret Key)
36
56
  * @since IPCKit 1.2.0
37
57
  */
38
58
  sk: string
39
59
  /**
40
- * provider
60
+ * 云存储服务商
41
61
  * @since IPCKit 1.2.0
42
62
  */
43
63
  provider: string
44
64
  /**
45
- * endpoint
65
+ * 服务端点地址
46
66
  * @since IPCKit 1.2.0
47
67
  */
48
68
  endpoint: string
49
69
  /**
50
- * ak
70
+ * 访问密钥(Access Key)
51
71
  * @since IPCKit 1.2.0
52
72
  */
53
73
  ak: string
54
74
  /**
55
- * bucket
75
+ * 存储桶名称
56
76
  * @since IPCKit 1.2.0
57
77
  */
58
78
  bucket: string
@@ -61,7 +81,7 @@ declare namespace ty.ipc {
61
81
  /** 接口调用成功的回调函数 */
62
82
  success?: (params: {
63
83
  /**
64
- * signed url
84
+ * 已签名的访问 URL
65
85
  * @since IPCKit 2.0.8
66
86
  */
67
87
  signedUrl: string
@@ -86,13 +106,24 @@ declare namespace ty.ipc {
86
106
  * 是否支持ai云存储设置页面
87
107
  * @public
88
108
  * @since IPCKit 6.8.0
109
+ * @example Demo
110
+ * ```tsx
111
+ * ty.ipc.isSupportAIDetectConfig({
112
+ * success: data => {
113
+ * console.log(data);
114
+ * },
115
+ * fail: error => {
116
+ * console.error(error);
117
+ * },
118
+ * });
119
+ * ```
89
120
  * @platform iOS Android
90
121
  */
91
122
  export function isSupportAIDetectConfig(params?: {
92
123
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
93
124
  complete?: () => void
94
125
  /** 接口调用成功的回调函数 */
95
- success?: (params: null) => void
126
+ success?: () => void
96
127
  /** 接口调用失败的回调函数 */
97
128
  fail?: (params: {
98
129
  /** 错误信息 */
@@ -110,16 +141,27 @@ declare namespace ty.ipc {
110
141
  }): void
111
142
 
112
143
  /**
113
- * whether supports camera preset point config router
144
+ * 是否支持摄像头预置点配置路由
114
145
  * @public
115
146
  * @since IPCKit 7.1.0
147
+ * @example Demo
148
+ * ```tsx
149
+ * ty.ipc.isSupportCameraPresetPointConfig({
150
+ * success: data => {
151
+ * console.log(data);
152
+ * },
153
+ * fail: error => {
154
+ * console.error(error);
155
+ * },
156
+ * });
157
+ * ```
116
158
  * @platform iOS Android
117
159
  */
118
160
  export function isSupportCameraPresetPointConfig(params?: {
119
161
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
120
162
  complete?: () => void
121
163
  /** 接口调用成功的回调函数 */
122
- success?: (params: null) => void
164
+ success?: () => void
123
165
  /** 接口调用失败的回调函数 */
124
166
  fail?: (params: {
125
167
  /** 错误信息 */
@@ -140,6 +182,19 @@ declare namespace ty.ipc {
140
182
  * 是否开启 NS(音频降噪),需要在StartAudioRecord之前调用
141
183
  * @public
142
184
  * @since IPCKit 1.1.0
185
+ * @example Demo
186
+ * ```tsx
187
+ * ty.ipc.enableAudioNS({
188
+ * deviceId: "xx",
189
+ * enable: false,
190
+ * success: data => {
191
+ * console.log(data);
192
+ * },
193
+ * fail: error => {
194
+ * console.error(error);
195
+ * },
196
+ * });
197
+ * ```
143
198
  * @platform iOS Android
144
199
  */
145
200
  export function enableAudioNS(params: {
@@ -156,7 +211,7 @@ declare namespace ty.ipc {
156
211
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
157
212
  complete?: () => void
158
213
  /** 接口调用成功的回调函数 */
159
- success?: (params: null) => void
214
+ success?: () => void
160
215
  /** 接口调用失败的回调函数 */
161
216
  fail?: (params: {
162
217
  /** 错误信息 */
@@ -177,6 +232,19 @@ declare namespace ty.ipc {
177
232
  * 是否开启 AGC(自动增益),需要在StartAudioRecord之前调用
178
233
  * @public
179
234
  * @since IPCKit 1.1.0
235
+ * @example Demo
236
+ * ```tsx
237
+ * ty.ipc.enableAudioAGC({
238
+ * deviceId: "xx",
239
+ * enable: false,
240
+ * success: data => {
241
+ * console.log(data);
242
+ * },
243
+ * fail: error => {
244
+ * console.error(error);
245
+ * },
246
+ * });
247
+ * ```
180
248
  * @platform iOS Android
181
249
  */
182
250
  export function enableAudioAGC(params: {
@@ -193,7 +261,7 @@ declare namespace ty.ipc {
193
261
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
194
262
  complete?: () => void
195
263
  /** 接口调用成功的回调函数 */
196
- success?: (params: null) => void
264
+ success?: () => void
197
265
  /** 接口调用失败的回调函数 */
198
266
  fail?: (params: {
199
267
  /** 错误信息 */
@@ -214,6 +282,19 @@ declare namespace ty.ipc {
214
282
  * 是否开启 AEC(回音消除),需要在StartAudioRecord之前调用
215
283
  * @public
216
284
  * @since IPCKit 1.1.0
285
+ * @example Demo
286
+ * ```tsx
287
+ * ty.ipc.enableAudioAEC({
288
+ * deviceId: "xx",
289
+ * enable: false,
290
+ * success: data => {
291
+ * console.log(data);
292
+ * },
293
+ * fail: error => {
294
+ * console.error(error);
295
+ * },
296
+ * });
297
+ * ```
217
298
  * @platform iOS Android
218
299
  */
219
300
  export function enableAudioAEC(params: {
@@ -230,7 +311,7 @@ declare namespace ty.ipc {
230
311
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
231
312
  complete?: () => void
232
313
  /** 接口调用成功的回调函数 */
233
- success?: (params: null) => void
314
+ success?: () => void
234
315
  /** 接口调用失败的回调函数 */
235
316
  fail?: (params: {
236
317
  /** 错误信息 */
@@ -251,6 +332,18 @@ declare namespace ty.ipc {
251
332
  * 获取摄像头配置
252
333
  * @public
253
334
  * @since IPCKit 1.3.0
335
+ * @example Demo
336
+ * ```tsx
337
+ * ty.ipc.obtainCameraConfig({
338
+ * deviceId: "xx",
339
+ * success: data => {
340
+ * console.log(data);
341
+ * },
342
+ * fail: error => {
343
+ * console.error(error);
344
+ * },
345
+ * });
346
+ * ```
254
347
  * @platform iOS Android
255
348
  */
256
349
  export function obtainCameraConfig(params: {
@@ -289,6 +382,19 @@ declare namespace ty.ipc {
289
382
  * 开始鸟类识别流程
290
383
  * @public
291
384
  * @since IPCKit 2.0.8
385
+ * @example Demo
386
+ * ```tsx
387
+ * ty.ipc.startIdentifyingBirds({
388
+ * identifier: "xx",
389
+ * deviceId: "xx",
390
+ * success: data => {
391
+ * console.log(data);
392
+ * },
393
+ * fail: error => {
394
+ * console.error(error);
395
+ * },
396
+ * });
397
+ * ```
292
398
  * @platform iOS Android
293
399
  */
294
400
  export function startIdentifyingBirds(params: {
@@ -332,6 +438,19 @@ declare namespace ty.ipc {
332
438
  * 取消鸟类识别流程
333
439
  * @public
334
440
  * @since IPCKit 2.0.8
441
+ * @example Demo
442
+ * ```tsx
443
+ * ty.ipc.cancelIdentifyingBirds({
444
+ * identifier: "xx",
445
+ * deviceId: "xx",
446
+ * success: data => {
447
+ * console.log(data);
448
+ * },
449
+ * fail: error => {
450
+ * console.error(error);
451
+ * },
452
+ * });
453
+ * ```
335
454
  * @platform iOS Android
336
455
  */
337
456
  export function cancelIdentifyingBirds(params: {
@@ -348,7 +467,7 @@ declare namespace ty.ipc {
348
467
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
349
468
  complete?: () => void
350
469
  /** 接口调用成功的回调函数 */
351
- success?: (params: null) => void
470
+ success?: () => void
352
471
  /** 接口调用失败的回调函数 */
353
472
  fail?: (params: {
354
473
  /** 错误信息 */
@@ -369,13 +488,24 @@ declare namespace ty.ipc {
369
488
  * 是否支持ai云存储
370
489
  * @public
371
490
  * @since IPCKit 2.0.8
491
+ * @example Demo
492
+ * ```tsx
493
+ * ty.ipc.isSupportAICloud({
494
+ * success: data => {
495
+ * console.log(data);
496
+ * },
497
+ * fail: error => {
498
+ * console.error(error);
499
+ * },
500
+ * });
501
+ * ```
372
502
  * @platform iOS Android
373
503
  */
374
504
  export function isSupportAICloud(params?: {
375
505
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
376
506
  complete?: () => void
377
507
  /** 接口调用成功的回调函数 */
378
- success?: (params: null) => void
508
+ success?: () => void
379
509
  /** 接口调用失败的回调函数 */
380
510
  fail?: (params: {
381
511
  /** 错误信息 */
@@ -396,13 +526,24 @@ declare namespace ty.ipc {
396
526
  * 是否支持喂鸟器
397
527
  * @public
398
528
  * @since IPCKit 2.0.8
529
+ * @example Demo
530
+ * ```tsx
531
+ * ty.ipc.isSupportBirdFeeder({
532
+ * success: data => {
533
+ * console.log(data);
534
+ * },
535
+ * fail: error => {
536
+ * console.error(error);
537
+ * },
538
+ * });
539
+ * ```
399
540
  * @platform iOS Android
400
541
  */
401
542
  export function isSupportBirdFeeder(params?: {
402
543
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
403
544
  complete?: () => void
404
545
  /** 接口调用成功的回调函数 */
405
- success?: (params: null) => void
546
+ success?: () => void
406
547
  /** 接口调用失败的回调函数 */
407
548
  fail?: (params: {
408
549
  /** 错误信息 */
@@ -424,13 +565,24 @@ declare namespace ty.ipc {
424
565
  * 目前有折叠屏不支持全屏的情况,iOS 默认 true
425
566
  * @public
426
567
  * @since IPCKit 5.14.1
568
+ * @example Demo
569
+ * ```tsx
570
+ * ty.ipc.isSupportFullScreen({
571
+ * success: data => {
572
+ * console.log(data);
573
+ * },
574
+ * fail: error => {
575
+ * console.error(error);
576
+ * },
577
+ * });
578
+ * ```
427
579
  * @platform iOS Android
428
580
  */
429
581
  export function isSupportFullScreen(params?: {
430
582
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
431
583
  complete?: () => void
432
584
  /** 接口调用成功的回调函数 */
433
- success?: (params: null) => void
585
+ success?: () => void
434
586
  /** 接口调用失败的回调函数 */
435
587
  fail?: (params: {
436
588
  /** 错误信息 */
@@ -451,13 +603,24 @@ declare namespace ty.ipc {
451
603
  * 是否支持精彩时刻
452
604
  * @public
453
605
  * @since IPCKit 6.3.1
606
+ * @example Demo
607
+ * ```tsx
608
+ * ty.ipc.isSupportWonderfulMoment({
609
+ * success: data => {
610
+ * console.log(data);
611
+ * },
612
+ * fail: error => {
613
+ * console.error(error);
614
+ * },
615
+ * });
616
+ * ```
454
617
  * @platform iOS Android
455
618
  */
456
619
  export function isSupportWonderfulMoment(params?: {
457
620
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
458
621
  complete?: () => void
459
622
  /** 接口调用成功的回调函数 */
460
- success?: (params: null) => void
623
+ success?: () => void
461
624
  /** 接口调用失败的回调函数 */
462
625
  fail?: (params: {
463
626
  /** 错误信息 */
@@ -478,13 +641,24 @@ declare namespace ty.ipc {
478
641
  * 是否支持新版消息中心
479
642
  * @public
480
643
  * @since IPCKit 7.2.1
644
+ * @example Demo
645
+ * ```tsx
646
+ * ty.ipc.isShouldUseNMC({
647
+ * success: data => {
648
+ * console.log(data);
649
+ * },
650
+ * fail: error => {
651
+ * console.error(error);
652
+ * },
653
+ * });
654
+ * ```
481
655
  * @platform iOS Android
482
656
  */
483
657
  export function isShouldUseNMC(params?: {
484
658
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
485
659
  complete?: () => void
486
660
  /** 接口调用成功的回调函数 */
487
- success?: (params: null) => void
661
+ success?: () => void
488
662
  /** 接口调用失败的回调函数 */
489
663
  fail?: (params: {
490
664
  /** 错误信息 */
@@ -505,13 +679,24 @@ declare namespace ty.ipc {
505
679
  * custom wallpaper whether supported on screen IPC
506
680
  * @public
507
681
  * @since IPCKit 6.5.0
682
+ * @example Demo
683
+ * ```tsx
684
+ * ty.ipc.isSupportScreenIPCCustomWallpaper({
685
+ * success: data => {
686
+ * console.log(data);
687
+ * },
688
+ * fail: error => {
689
+ * console.error(error);
690
+ * },
691
+ * });
692
+ * ```
508
693
  * @platform iOS Android
509
694
  */
510
695
  export function isSupportScreenIPCCustomWallpaper(params?: {
511
696
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
512
697
  complete?: () => void
513
698
  /** 接口调用成功的回调函数 */
514
- success?: (params: null) => void
699
+ success?: () => void
515
700
  /** 接口调用失败的回调函数 */
516
701
  fail?: (params: {
517
702
  /** 错误信息 */
@@ -532,6 +717,23 @@ declare namespace ty.ipc {
532
717
  * 下载云存储视频
533
718
  * @public
534
719
  * @since IPCKit 5.15.3
720
+ * @example Demo
721
+ * ```tsx
722
+ * ty.ipc.downloadCloudPlayBack({
723
+ * deviceId: "xx",
724
+ * url: "xx",
725
+ * path: "xx",
726
+ * prefix: 1,
727
+ * videoSegments: [],
728
+ * videoSegmentSize: 1,
729
+ * success: data => {
730
+ * console.log(data);
731
+ * },
732
+ * fail: error => {
733
+ * console.error(error);
734
+ * },
735
+ * });
736
+ * ```
535
737
  * @platform iOS Android
536
738
  */
537
739
  export function downloadCloudPlayBack(params: {
@@ -546,7 +748,7 @@ declare namespace ty.ipc {
546
748
  */
547
749
  url: string
548
750
  /**
549
- * 保存路径
751
+ * 下载成功后的保存路径
550
752
  * @since IPCKit 5.15.3
551
753
  */
552
754
  path: string
@@ -569,7 +771,10 @@ declare namespace ty.ipc {
569
771
  complete?: () => void
570
772
  /** 接口调用成功的回调函数 */
571
773
  success?: (params: {
572
- /** @since IPCKit 5.15.3 */
774
+ /**
775
+ * 视频保存路径
776
+ * @since IPCKit 5.15.3
777
+ */
573
778
  path: string
574
779
  }) => void
575
780
  /** 接口调用失败的回调函数 */
@@ -592,6 +797,18 @@ declare namespace ty.ipc {
592
797
  * 取消云存储下载
593
798
  * @public
594
799
  * @since IPCKit 5.15.3
800
+ * @example Demo
801
+ * ```tsx
802
+ * ty.ipc.cancelDownloadCloudPlayBack({
803
+ * deviceId: "xx",
804
+ * success: data => {
805
+ * console.log(data);
806
+ * },
807
+ * fail: error => {
808
+ * console.error(error);
809
+ * },
810
+ * });
811
+ * ```
595
812
  * @platform iOS Android
596
813
  */
597
814
  export function cancelDownloadCloudPlayBack(params: {
@@ -603,7 +820,7 @@ declare namespace ty.ipc {
603
820
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
604
821
  complete?: () => void
605
822
  /** 接口调用成功的回调函数 */
606
- success?: (params: null) => void
823
+ success?: () => void
607
824
  /** 接口调用失败的回调函数 */
608
825
  fail?: (params: {
609
826
  /** 错误信息 */
@@ -624,6 +841,21 @@ declare namespace ty.ipc {
624
841
  * 发送 dps
625
842
  * @public
626
843
  * @since IPCKit 6.0.0
844
+ * @example Demo
845
+ * ```tsx
846
+ * ty.ipc.publishDps({
847
+ * deviceId: "xx",
848
+ * dps: {},
849
+ * mode: 1,
850
+ * options: {},
851
+ * success: data => {
852
+ * console.log(data);
853
+ * },
854
+ * fail: error => {
855
+ * console.error(error);
856
+ * },
857
+ * });
858
+ * ```
627
859
  * @platform iOS Android
628
860
  */
629
861
  export function publishDps(params: {
@@ -674,6 +906,18 @@ declare namespace ty.ipc {
674
906
  * 是否支持设备上传日志
675
907
  * @public
676
908
  * @since IPCKit 6.0.0
909
+ * @example Demo
910
+ * ```tsx
911
+ * ty.ipc.isDeviceSupportUploadLog({
912
+ * deviceId: "xx",
913
+ * success: data => {
914
+ * console.log(data);
915
+ * },
916
+ * fail: error => {
917
+ * console.error(error);
918
+ * },
919
+ * });
920
+ * ```
677
921
  * @platform iOS Android
678
922
  */
679
923
  export function isDeviceSupportUploadLog(params: {
@@ -706,6 +950,19 @@ declare namespace ty.ipc {
706
950
  * 上传设备日志
707
951
  * @public
708
952
  * @since IPCKit 6.0.0
953
+ * @example Demo
954
+ * ```tsx
955
+ * ty.ipc.uploadDeviceLog({
956
+ * deviceId: "xx",
957
+ * timeout: 1,
958
+ * success: data => {
959
+ * console.log(data);
960
+ * },
961
+ * fail: error => {
962
+ * console.error(error);
963
+ * },
964
+ * });
965
+ * ```
709
966
  * @platform iOS Android
710
967
  */
711
968
  export function uploadDeviceLog(params: {
@@ -759,6 +1016,21 @@ declare namespace ty.ipc {
759
1016
  * download file
760
1017
  * @public
761
1018
  * @since IPCKit 6.1.2
1019
+ * @example Demo
1020
+ * ```tsx
1021
+ * ty.ipc.downloadResourceToPhoneAlbum({
1022
+ * deviceId: "xx",
1023
+ * fileType: 0,
1024
+ * url: "xx",
1025
+ * secretKey: "xx",
1026
+ * success: data => {
1027
+ * console.log(data);
1028
+ * },
1029
+ * fail: error => {
1030
+ * console.error(error);
1031
+ * },
1032
+ * });
1033
+ * ```
762
1034
  * @platform iOS Android
763
1035
  */
764
1036
  export function downloadResourceToPhoneAlbum(params: {
@@ -786,7 +1058,7 @@ declare namespace ty.ipc {
786
1058
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
787
1059
  complete?: () => void
788
1060
  /** 接口调用成功的回调函数 */
789
- success?: (params: null) => void
1061
+ success?: () => void
790
1062
  /** 接口调用失败的回调函数 */
791
1063
  fail?: (params: {
792
1064
  /** 错误信息 */
@@ -807,6 +1079,22 @@ declare namespace ty.ipc {
807
1079
  * share resource by system
808
1080
  * @public
809
1081
  * @since IPCKit 6.1.2
1082
+ * @example Demo
1083
+ * ```tsx
1084
+ * ty.ipc.shareResourceBySystem({
1085
+ * deviceId: "xx",
1086
+ * fileType: 0,
1087
+ * url: "xx",
1088
+ * filePath: "xx",
1089
+ * secretKey: "xx",
1090
+ * success: data => {
1091
+ * console.log(data);
1092
+ * },
1093
+ * fail: error => {
1094
+ * console.error(error);
1095
+ * },
1096
+ * });
1097
+ * ```
810
1098
  * @platform iOS Android
811
1099
  */
812
1100
  export function shareResourceBySystem(params: {
@@ -839,7 +1127,7 @@ declare namespace ty.ipc {
839
1127
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
840
1128
  complete?: () => void
841
1129
  /** 接口调用成功的回调函数 */
842
- success?: (params: null) => void
1130
+ success?: () => void
843
1131
  /** 接口调用失败的回调函数 */
844
1132
  fail?: (params: {
845
1133
  /** 错误信息 */
@@ -860,6 +1148,22 @@ declare namespace ty.ipc {
860
1148
  * show identifying bird view
861
1149
  * @public
862
1150
  * @since IPCKit 6.1.2
1151
+ * @example Demo
1152
+ * ```tsx
1153
+ * ty.ipc.showIdentifyingBirdView({
1154
+ * deviceId: "xx",
1155
+ * identifier: "xx",
1156
+ * theme: 0,
1157
+ * scannerColor: "xx",
1158
+ * extData: {},
1159
+ * success: data => {
1160
+ * console.log(data);
1161
+ * },
1162
+ * fail: error => {
1163
+ * console.error(error);
1164
+ * },
1165
+ * });
1166
+ * ```
863
1167
  * @platform iOS Android
864
1168
  */
865
1169
  export function showIdentifyingBirdView(params: {
@@ -874,7 +1178,7 @@ declare namespace ty.ipc {
874
1178
  */
875
1179
  identifier: string
876
1180
  /**
877
- * download url
1181
+ * 主题类型,默认 0
878
1182
  * @since IPCKit 6.1.2
879
1183
  * @defaultValue 0
880
1184
  */
@@ -892,7 +1196,7 @@ declare namespace ty.ipc {
892
1196
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
893
1197
  complete?: () => void
894
1198
  /** 接口调用成功的回调函数 */
895
- success?: (params: null) => void
1199
+ success?: () => void
896
1200
  /** 接口调用失败的回调函数 */
897
1201
  fail?: (params: {
898
1202
  /** 错误信息 */
@@ -913,13 +1217,24 @@ declare namespace ty.ipc {
913
1217
  * dismiss identifying bird view
914
1218
  * @public
915
1219
  * @since IPCKit 6.8.0
1220
+ * @example Demo
1221
+ * ```tsx
1222
+ * ty.ipc.dismissIdentifyingBirdView({
1223
+ * success: data => {
1224
+ * console.log(data);
1225
+ * },
1226
+ * fail: error => {
1227
+ * console.error(error);
1228
+ * },
1229
+ * });
1230
+ * ```
916
1231
  * @platform iOS Android
917
1232
  */
918
1233
  export function dismissIdentifyingBirdView(params?: {
919
1234
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
920
1235
  complete?: () => void
921
1236
  /** 接口调用成功的回调函数 */
922
- success?: (params: null) => void
1237
+ success?: () => void
923
1238
  /** 接口调用失败的回调函数 */
924
1239
  fail?: (params: {
925
1240
  /** 错误信息 */
@@ -940,6 +1255,20 @@ declare namespace ty.ipc {
940
1255
  * snapshoot to sandbox
941
1256
  * @public
942
1257
  * @since IPCKit 6.1.2
1258
+ * @example Demo
1259
+ * ```tsx
1260
+ * ty.ipc.snapshootToSandbox({
1261
+ * deviceId: "xx",
1262
+ * filePath: "xx",
1263
+ * needSei: false,
1264
+ * success: data => {
1265
+ * console.log(data);
1266
+ * },
1267
+ * fail: error => {
1268
+ * console.error(error);
1269
+ * },
1270
+ * });
1271
+ * ```
943
1272
  * @platform iOS Android
944
1273
  */
945
1274
  export function snapshootToSandbox(params: {
@@ -998,6 +1327,22 @@ declare namespace ty.ipc {
998
1327
  * upload AI feature image
999
1328
  * @public
1000
1329
  * @since IPCKit 6.1.2
1330
+ * @example Demo
1331
+ * ```tsx
1332
+ * ty.ipc.uploadAIFeatureImage({
1333
+ * deviceId: "xx",
1334
+ * taskId: "xx",
1335
+ * businessType: "xx",
1336
+ * contentType: "xx",
1337
+ * filePath: "xx",
1338
+ * success: data => {
1339
+ * console.log(data);
1340
+ * },
1341
+ * fail: error => {
1342
+ * console.error(error);
1343
+ * },
1344
+ * });
1345
+ * ```
1001
1346
  * @platform iOS Android
1002
1347
  */
1003
1348
  export function uploadAIFeatureImage(params: {
@@ -1017,7 +1362,7 @@ declare namespace ty.ipc {
1017
1362
  */
1018
1363
  businessType?: string
1019
1364
  /**
1020
- * content type, defaul is image/jpeg
1365
+ * content type, default is image/jpeg
1021
1366
  * @since IPCKit 6.1.2
1022
1367
  */
1023
1368
  contentType?: string
@@ -1072,10 +1417,250 @@ declare namespace ty.ipc {
1072
1417
  }) => void
1073
1418
  }): void
1074
1419
 
1420
+ /**
1421
+ * set ai frame feature
1422
+ * @public
1423
+ * @since IPCKit 7.8.1
1424
+ * @platform iOS Android
1425
+ */
1426
+ export function setAIFrameFeature(params: {
1427
+ /**
1428
+ * devId 设备id
1429
+ * @since IPCKit 7.8.1
1430
+ */
1431
+ devId: string
1432
+ /**
1433
+ * whether smart picture quality is enabled
1434
+ * @since IPCKit 7.8.1
1435
+ */
1436
+ enabled: boolean
1437
+ /**
1438
+ * 场景(可选):业务层定义 scope,inPreview(小程序,RN),inCloudData(云存储),inPlayback(SD卡),inMessage(IPC/公版消息中心,安全守护)
1439
+ * @since IPCKit 7.8.1
1440
+ */
1441
+ scene?: string
1442
+ /**
1443
+ * ai frame feature config
1444
+ * @since IPCKit 7.8.1
1445
+ */
1446
+ aiFrameFeature: AIFrameFeatureConfigModel
1447
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1448
+ complete?: () => void
1449
+ /** 接口调用成功的回调函数 */
1450
+ success?: (params: {
1451
+ /**
1452
+ * request ID
1453
+ * @since IPCKit 7.8.1
1454
+ */
1455
+ requestId: string
1456
+ /**
1457
+ * preview absolute local path
1458
+ * @since IPCKit 7.8.1
1459
+ */
1460
+ localPath: string
1461
+ /**
1462
+ * thingfile:// preview URI
1463
+ * @since IPCKit 7.8.1
1464
+ */
1465
+ thingfileUri: string
1466
+ /**
1467
+ * ai frame feature config
1468
+ * @since IPCKit 7.8.1
1469
+ */
1470
+ aiFrameFeature: AIFrameFeatureConfigModel
1471
+ }) => void
1472
+ /** 接口调用失败的回调函数 */
1473
+ fail?: (params: {
1474
+ /** 错误信息 */
1475
+ errorMsg: string
1476
+ /** 错误码 */
1477
+ errorCode: string | number
1478
+ /** 错误扩展 */
1479
+ innerError: {
1480
+ /** 错误扩展码 */
1481
+ errorCode: string | number
1482
+ /** 错误扩展信息 */
1483
+ errorMsg: string
1484
+ }
1485
+ }) => void
1486
+ }): void
1487
+
1488
+ /**
1489
+ * get ai frame feature
1490
+ * @public
1491
+ * @since IPCKit 7.8.1
1492
+ * @platform iOS Android
1493
+ */
1494
+ export function getAIFrameFeature(params: {
1495
+ /**
1496
+ * devId 设备id
1497
+ * @since IPCKit 7.8.1
1498
+ */
1499
+ devId: string
1500
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1501
+ complete?: () => void
1502
+ /** 接口调用成功的回调函数 */
1503
+ success?: (params: {
1504
+ /**
1505
+ * whether smart picture quality is enabled
1506
+ * @since IPCKit 7.8.1
1507
+ */
1508
+ enabled: boolean
1509
+ /**
1510
+ * ai frame feature config
1511
+ * @since IPCKit 7.8.1
1512
+ */
1513
+ aiFrameFeature: AIFrameFeatureCacheModel
1514
+ /**
1515
+ * SmartImageQualityPreviewFields 与入参一致时可带,便于小程序去重
1516
+ * @since IPCKit 7.8.1
1517
+ */
1518
+ requestId?: string
1519
+ /**
1520
+ * SmartImageQualityPreviewFields App 沙箱内 增强后 预览图绝对路径(或团队约定的可读路径)
1521
+ * @since IPCKit 7.8.1
1522
+ */
1523
+ localPath?: string
1524
+ /**
1525
+ * SmartImageQualityPreviewFields thingfile:// 形式预览图地址(可选;若 Uni 侧需 thingfile:// 形式,可复用现有拼接规则,参考 startDownloadMessageVideoForComposition)
1526
+ * @since IPCKit 7.8.1
1527
+ */
1528
+ thingfileUri?: string
1529
+ }) => void
1530
+ /** 接口调用失败的回调函数 */
1531
+ fail?: (params: {
1532
+ /** 错误信息 */
1533
+ errorMsg: string
1534
+ /** 错误码 */
1535
+ errorCode: string | number
1536
+ /** 错误扩展 */
1537
+ innerError: {
1538
+ /** 错误扩展码 */
1539
+ errorCode: string | number
1540
+ /** 错误扩展信息 */
1541
+ errorMsg: string
1542
+ }
1543
+ }) => void
1544
+ }): void
1545
+
1546
+ /**
1547
+ * 查询智能画质状态(四态 GUIDE / DISABLED / ENABLED / TRIAL)
1548
+ * @public
1549
+ * @since IPCKit 7.8.1
1550
+ * @platform iOS Android
1551
+ */
1552
+ export function getSmartImageQualityState(params: {
1553
+ /**
1554
+ * devId 设备id
1555
+ * @since IPCKit 7.8.1
1556
+ */
1557
+ devId: string
1558
+ /**
1559
+ * 场景(可选):'PREVIEW_PANEL' | 'SETTINGS' | 'MESSAGE'
1560
+ * @since IPCKit 7.8.1
1561
+ */
1562
+ scene?: string
1563
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1564
+ complete?: () => void
1565
+ /** 接口调用成功的回调函数 */
1566
+ success?: (params: {
1567
+ /**
1568
+ * 是否购买了云存储;true 且 SmartImageQualityState 缓存已创建时 trialRemainingSec 直接置 0(走试用结束逻辑)
1569
+ * @since IPCKit 7.8.1
1570
+ */
1571
+ isPurchase: boolean
1572
+ /**
1573
+ * 三态:
1574
+ * 0 = SmartImageQualityState 缓存未创建
1575
+ * 1 = 开(aiFrameFeature 缓存已创建,且 ty.getAIFrameFeature 的 enabled 与对应 scope 均为开)
1576
+ * 2 = 关(aiFrameFeature 缓存已创建,但 enabled 为关,或 enabled 开但 scope 关)
1577
+ * @since IPCKit 7.8.1
1578
+ */
1579
+ buttonState: number
1580
+ /**
1581
+ * 试用剩余秒数。约定 TRIAL_MAX_SEC=300:
1582
+ * 300 = 未试用
1583
+ * 0 < x < 300 = 试用中
1584
+ * 0 = 试用结束
1585
+ * @since IPCKit 7.8.1
1586
+ */
1587
+ trialRemainingSec: number
1588
+ /**
1589
+ * 是否允许跳进设置页(虚拟设备等 false)
1590
+ * @since IPCKit 7.8.1
1591
+ */
1592
+ canOpenSettings: boolean
1593
+ }) => void
1594
+ /** 接口调用失败的回调函数 */
1595
+ fail?: (params: {
1596
+ /** 错误信息 */
1597
+ errorMsg: string
1598
+ /** 错误码 */
1599
+ errorCode: string | number
1600
+ /** 错误扩展 */
1601
+ innerError: {
1602
+ /** 错误扩展码 */
1603
+ errorCode: string | number
1604
+ /** 错误扩展信息 */
1605
+ errorMsg: string
1606
+ }
1607
+ }) => void
1608
+ }): void
1609
+
1610
+ /**
1611
+ * set smart image quality trial finished
1612
+ * @public
1613
+ * @since IPCKit 7.8.1
1614
+ * @platform iOS Android
1615
+ */
1616
+ export function setTrailFinish(params: {
1617
+ /**
1618
+ * devId 设备id
1619
+ * @since IPCKit 7.8.1
1620
+ */
1621
+ devId: string
1622
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1623
+ complete?: () => void
1624
+ /** 接口调用成功的回调函数 */
1625
+ success?: (params: {
1626
+ /**
1627
+ * 操作是否成功
1628
+ * @since IPCKit 7.8.1
1629
+ */
1630
+ isSuccess: boolean
1631
+ }) => void
1632
+ /** 接口调用失败的回调函数 */
1633
+ fail?: (params: {
1634
+ /** 错误信息 */
1635
+ errorMsg: string
1636
+ /** 错误码 */
1637
+ errorCode: string | number
1638
+ /** 错误扩展 */
1639
+ innerError: {
1640
+ /** 错误扩展码 */
1641
+ errorCode: string | number
1642
+ /** 错误扩展信息 */
1643
+ errorMsg: string
1644
+ }
1645
+ }) => void
1646
+ }): void
1647
+
1075
1648
  /**
1076
1649
  * remove snapshoot from sandbox
1077
1650
  * @public
1078
1651
  * @since IPCKit 6.1.2
1652
+ * @example Demo
1653
+ * ```tsx
1654
+ * ty.ipc.removeSnapshootFromSandbox({
1655
+ * deviceId: "xx",
1656
+ * success: data => {
1657
+ * console.log(data);
1658
+ * },
1659
+ * fail: error => {
1660
+ * console.error(error);
1661
+ * },
1662
+ * });
1663
+ * ```
1079
1664
  * @platform iOS Android
1080
1665
  */
1081
1666
  export function removeSnapshootFromSandbox(params?: {
@@ -1087,7 +1672,7 @@ declare namespace ty.ipc {
1087
1672
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1088
1673
  complete?: () => void
1089
1674
  /** 接口调用成功的回调函数 */
1090
- success?: (params: null) => void
1675
+ success?: () => void
1091
1676
  /** 接口调用失败的回调函数 */
1092
1677
  fail?: (params: {
1093
1678
  /** 错误信息 */
@@ -1108,11 +1693,26 @@ declare namespace ty.ipc {
1108
1693
  * 下载图片
1109
1694
  * @public
1110
1695
  * @since IPCKit 6.1.2
1696
+ * @example Demo
1697
+ * ```tsx
1698
+ * ty.ipc.downloadEncryptionImage({
1699
+ * url: "xx",
1700
+ * encryptKey: "xx",
1701
+ * deviceId: "xx",
1702
+ * fileName: "xx",
1703
+ * success: data => {
1704
+ * console.log(data);
1705
+ * },
1706
+ * fail: error => {
1707
+ * console.error(error);
1708
+ * },
1709
+ * });
1710
+ * ```
1111
1711
  * @platform iOS Android
1112
1712
  */
1113
1713
  export function downloadEncryptionImage(params: {
1114
1714
  /**
1115
- * 图片连接
1715
+ * 图片链接
1116
1716
  * @since IPCKit 6.1.2
1117
1717
  */
1118
1718
  url: string
@@ -1127,7 +1727,7 @@ declare namespace ty.ipc {
1127
1727
  */
1128
1728
  deviceId: string
1129
1729
  /**
1130
- * fileName
1730
+ * 保存的文件名
1131
1731
  * @since IPCKit 6.1.2
1132
1732
  */
1133
1733
  fileName: string
@@ -1135,7 +1735,10 @@ declare namespace ty.ipc {
1135
1735
  complete?: () => void
1136
1736
  /** 接口调用成功的回调函数 */
1137
1737
  success?: (params: {
1138
- /** @since IPCKit 6.1.2 */
1738
+ /**
1739
+ * 文件路径
1740
+ * @since IPCKit 6.1.2
1741
+ */
1139
1742
  path: string
1140
1743
  }) => void
1141
1744
  /** 接口调用失败的回调函数 */
@@ -1158,6 +1761,19 @@ declare namespace ty.ipc {
1158
1761
  * 删除图片
1159
1762
  * @public
1160
1763
  * @since IPCKit 6.1.2
1764
+ * @example Demo
1765
+ * ```tsx
1766
+ * ty.ipc.deleteImages({
1767
+ * deviceId: "xx",
1768
+ * imagePath: [],
1769
+ * success: data => {
1770
+ * console.log(data);
1771
+ * },
1772
+ * fail: error => {
1773
+ * console.error(error);
1774
+ * },
1775
+ * });
1776
+ * ```
1161
1777
  * @platform iOS Android
1162
1778
  */
1163
1779
  export function deleteImages(params: {
@@ -1174,7 +1790,7 @@ declare namespace ty.ipc {
1174
1790
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1175
1791
  complete?: () => void
1176
1792
  /** 接口调用成功的回调函数 */
1177
- success?: (params: null) => void
1793
+ success?: () => void
1178
1794
  /** 接口调用失败的回调函数 */
1179
1795
  fail?: (params: {
1180
1796
  /** 错误信息 */
@@ -1195,6 +1811,18 @@ declare namespace ty.ipc {
1195
1811
  * 创建媒体设备,只能创建一次,如果要再次创建需要先销毁
1196
1812
  * @public
1197
1813
  * @since IPCKit 6.1.0
1814
+ * @example Demo
1815
+ * ```tsx
1816
+ * ty.ipc.createMediaDevice({
1817
+ * deviceId: "xx",
1818
+ * success: data => {
1819
+ * console.log(data);
1820
+ * },
1821
+ * fail: error => {
1822
+ * console.error(error);
1823
+ * },
1824
+ * });
1825
+ * ```
1198
1826
  * @platform iOS Android
1199
1827
  */
1200
1828
  export function createMediaDevice(params: {
@@ -1206,7 +1834,7 @@ declare namespace ty.ipc {
1206
1834
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1207
1835
  complete?: () => void
1208
1836
  /** 接口调用成功的回调函数 */
1209
- success?: (params: null) => void
1837
+ success?: () => void
1210
1838
  /** 接口调用失败的回调函数 */
1211
1839
  fail?: (params: {
1212
1840
  /** 错误信息 */
@@ -1227,6 +1855,18 @@ declare namespace ty.ipc {
1227
1855
  * 销毁媒体设备
1228
1856
  * @public
1229
1857
  * @since IPCKit 6.3.1
1858
+ * @example Demo
1859
+ * ```tsx
1860
+ * ty.ipc.destroyMediaDevice({
1861
+ * deviceId: "xx",
1862
+ * success: data => {
1863
+ * console.log(data);
1864
+ * },
1865
+ * fail: error => {
1866
+ * console.error(error);
1867
+ * },
1868
+ * });
1869
+ * ```
1230
1870
  * @platform iOS Android
1231
1871
  */
1232
1872
  export function destroyMediaDevice(params: {
@@ -1238,7 +1878,7 @@ declare namespace ty.ipc {
1238
1878
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1239
1879
  complete?: () => void
1240
1880
  /** 接口调用成功的回调函数 */
1241
- success?: (params: null) => void
1881
+ success?: () => void
1242
1882
  /** 接口调用失败的回调函数 */
1243
1883
  fail?: (params: {
1244
1884
  /** 错误信息 */
@@ -1259,6 +1899,22 @@ declare namespace ty.ipc {
1259
1899
  * 视频下载支持旋转
1260
1900
  * @public
1261
1901
  * @since IPCKit 6.1.0
1902
+ * @example Demo
1903
+ * ```tsx
1904
+ * ty.ipc.startDownloadMessageVideo({
1905
+ * deviceId: "xx",
1906
+ * path: "xx",
1907
+ * encryptKey: "xx",
1908
+ * savePath: 1,
1909
+ * rotateMode: 1,
1910
+ * success: data => {
1911
+ * console.log(data);
1912
+ * },
1913
+ * fail: error => {
1914
+ * console.error(error);
1915
+ * },
1916
+ * });
1917
+ * ```
1262
1918
  * @platform iOS Android
1263
1919
  */
1264
1920
  export function startDownloadMessageVideo(params: {
@@ -1268,7 +1924,7 @@ declare namespace ty.ipc {
1268
1924
  */
1269
1925
  deviceId: string
1270
1926
  /**
1271
- * 路径
1927
+ * 视频路径
1272
1928
  * @since IPCKit 6.1.0
1273
1929
  */
1274
1930
  path: string
@@ -1290,7 +1946,7 @@ declare namespace ty.ipc {
1290
1946
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1291
1947
  complete?: () => void
1292
1948
  /** 接口调用成功的回调函数 */
1293
- success?: (params: null) => void
1949
+ success?: () => void
1294
1950
  /** 接口调用失败的回调函数 */
1295
1951
  fail?: (params: {
1296
1952
  /** 错误信息 */
@@ -1311,6 +1967,21 @@ declare namespace ty.ipc {
1311
1967
  * 视频下载,如果有多个视频文件,会合成为一个视频文件
1312
1968
  * @public
1313
1969
  * @since IPCKit 6.3.1
1970
+ * @example Demo
1971
+ * ```tsx
1972
+ * ty.ipc.startDownloadMessageVideoForComposition({
1973
+ * deviceId: "xx",
1974
+ * fileInfo: "xx",
1975
+ * savePath: 1,
1976
+ * option: {},
1977
+ * success: data => {
1978
+ * console.log(data);
1979
+ * },
1980
+ * fail: error => {
1981
+ * console.error(error);
1982
+ * },
1983
+ * });
1984
+ * ```
1314
1985
  * @platform iOS Android
1315
1986
  */
1316
1987
  export function startDownloadMessageVideoForComposition(params: {
@@ -1353,7 +2024,7 @@ declare namespace ty.ipc {
1353
2024
  /** 接口调用成功的回调函数 */
1354
2025
  success?: (params: {
1355
2026
  /**
1356
- * file path
2027
+ * 云存下载完成后保存路径
1357
2028
  * @since IPCKit 6.3.1
1358
2029
  */
1359
2030
  path: string
@@ -1383,13 +2054,24 @@ declare namespace ty.ipc {
1383
2054
  * 取消视频下载
1384
2055
  * @public
1385
2056
  * @since IPCKit 6.1.0
2057
+ * @example Demo
2058
+ * ```tsx
2059
+ * ty.ipc.cancelDownloadMessageVideo({
2060
+ * success: data => {
2061
+ * console.log(data);
2062
+ * },
2063
+ * fail: error => {
2064
+ * console.error(error);
2065
+ * },
2066
+ * });
2067
+ * ```
1386
2068
  * @platform iOS Android
1387
2069
  */
1388
2070
  export function cancelDownloadMessageVideo(params?: {
1389
2071
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1390
2072
  complete?: () => void
1391
2073
  /** 接口调用成功的回调函数 */
1392
- success?: (params: null) => void
2074
+ success?: () => void
1393
2075
  /** 接口调用失败的回调函数 */
1394
2076
  fail?: (params: {
1395
2077
  /** 错误信息 */
@@ -1410,6 +2092,19 @@ declare namespace ty.ipc {
1410
2092
  * 获取视频码率
1411
2093
  * @public
1412
2094
  * @since IPCKit 6.2.0
2095
+ * @example Demo
2096
+ * ```tsx
2097
+ * ty.ipc.getVideoBitrateKbps({
2098
+ * deviceId: "xx",
2099
+ * extendParam: {},
2100
+ * success: data => {
2101
+ * console.log(data);
2102
+ * },
2103
+ * fail: error => {
2104
+ * console.error(error);
2105
+ * },
2106
+ * });
2107
+ * ```
1413
2108
  * @platform iOS Android
1414
2109
  */
1415
2110
  export function getVideoBitrateKbps(params: {
@@ -1453,6 +2148,19 @@ declare namespace ty.ipc {
1453
2148
  * 画中画:是否支持画中画:只有安卓在用
1454
2149
  * @public
1455
2150
  * @since IPCKit 6.2.0
2151
+ * @example Demo
2152
+ * ```tsx
2153
+ * ty.ipc.isSupportFloatWindow({
2154
+ * deviceId: "xx",
2155
+ * extendParam: {},
2156
+ * success: data => {
2157
+ * console.log(data);
2158
+ * },
2159
+ * fail: error => {
2160
+ * console.error(error);
2161
+ * },
2162
+ * });
2163
+ * ```
1456
2164
  * @platform iOS Android
1457
2165
  */
1458
2166
  export function isSupportFloatWindow(params: {
@@ -1496,6 +2204,19 @@ declare namespace ty.ipc {
1496
2204
  * 画中画:开启画中画
1497
2205
  * @public
1498
2206
  * @since IPCKit 6.2.0
2207
+ * @example Demo
2208
+ * ```tsx
2209
+ * ty.ipc.openFloatWindow({
2210
+ * deviceId: "xx",
2211
+ * extendParam: {},
2212
+ * success: data => {
2213
+ * console.log(data);
2214
+ * },
2215
+ * fail: error => {
2216
+ * console.error(error);
2217
+ * },
2218
+ * });
2219
+ * ```
1499
2220
  * @platform iOS Android
1500
2221
  */
1501
2222
  export function openFloatWindow(params: {
@@ -1512,7 +2233,7 @@ declare namespace ty.ipc {
1512
2233
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1513
2234
  complete?: () => void
1514
2235
  /** 接口调用成功的回调函数 */
1515
- success?: (params: null) => void
2236
+ success?: () => void
1516
2237
  /** 接口调用失败的回调函数 */
1517
2238
  fail?: (params: {
1518
2239
  /** 错误信息 */
@@ -1533,6 +2254,19 @@ declare namespace ty.ipc {
1533
2254
  * IPC-APP缓存支持的对讲方式:是否支持对讲
1534
2255
  * @public
1535
2256
  * @since IPCKit 6.2.0
2257
+ * @example Demo
2258
+ * ```tsx
2259
+ * ty.ipc.isSupportedTalk({
2260
+ * deviceId: "xx",
2261
+ * extendParam: {},
2262
+ * success: data => {
2263
+ * console.log(data);
2264
+ * },
2265
+ * fail: error => {
2266
+ * console.error(error);
2267
+ * },
2268
+ * });
2269
+ * ```
1536
2270
  * @platform iOS Android
1537
2271
  */
1538
2272
  export function isSupportedTalk(params: {
@@ -1576,6 +2310,19 @@ declare namespace ty.ipc {
1576
2310
  * 设备支持的对讲模式
1577
2311
  * @public
1578
2312
  * @since IPCKit 6.2.0
2313
+ * @example Demo
2314
+ * ```tsx
2315
+ * ty.ipc.getCurrentSupportedTalkMode({
2316
+ * deviceId: "xx",
2317
+ * extendParam: {},
2318
+ * success: data => {
2319
+ * console.log(data);
2320
+ * },
2321
+ * fail: error => {
2322
+ * console.error(error);
2323
+ * },
2324
+ * });
2325
+ * ```
1579
2326
  * @platform iOS Android
1580
2327
  */
1581
2328
  export function getCurrentSupportedTalkMode(params: {
@@ -1594,7 +2341,7 @@ declare namespace ty.ipc {
1594
2341
  /** 接口调用成功的回调函数 */
1595
2342
  success?: (params: {
1596
2343
  /**
1597
- * 设备支持的对讲模式。回掉方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。
2344
+ * 设备支持的对讲模式。回调方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。
1598
2345
  * @since IPCKit 6.2.0
1599
2346
  */
1600
2347
  talkbackMode: number
@@ -1619,6 +2366,18 @@ declare namespace ty.ipc {
1619
2366
  * IPC TTT日志打点
1620
2367
  * @public
1621
2368
  * @since IPCKit 6.2.0
2369
+ * @example Demo
2370
+ * ```tsx
2371
+ * ty.ipc.ipcTTTOperatorLog({
2372
+ * ipcLogString: "xx",
2373
+ * success: data => {
2374
+ * console.log(data);
2375
+ * },
2376
+ * fail: error => {
2377
+ * console.error(error);
2378
+ * },
2379
+ * });
2380
+ * ```
1622
2381
  * @platform iOS Android
1623
2382
  */
1624
2383
  export function ipcTTTOperatorLog(params: {
@@ -1630,7 +2389,7 @@ declare namespace ty.ipc {
1630
2389
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1631
2390
  complete?: () => void
1632
2391
  /** 接口调用成功的回调函数 */
1633
- success?: (params: null) => void
2392
+ success?: () => void
1634
2393
  /** 接口调用失败的回调函数 */
1635
2394
  fail?: (params: {
1636
2395
  /** 错误信息 */
@@ -1651,6 +2410,18 @@ declare namespace ty.ipc {
1651
2410
  * 唤醒门铃设备。门铃设备休眠时,需要在连接 p2p 通道之前调用
1652
2411
  * @public
1653
2412
  * @since IPCKit 6.2.0
2413
+ * @example Demo
2414
+ * ```tsx
2415
+ * ty.ipc.wakeUpDoorBell({
2416
+ * deviceId: "xx",
2417
+ * success: data => {
2418
+ * console.log(data);
2419
+ * },
2420
+ * fail: error => {
2421
+ * console.error(error);
2422
+ * },
2423
+ * });
2424
+ * ```
1654
2425
  * @platform iOS Android
1655
2426
  */
1656
2427
  export function wakeUpDoorBell(params: {
@@ -1662,7 +2433,7 @@ declare namespace ty.ipc {
1662
2433
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1663
2434
  complete?: () => void
1664
2435
  /** 接口调用成功的回调函数 */
1665
- success?: (params: null) => void
2436
+ success?: () => void
1666
2437
  /** 接口调用失败的回调函数 */
1667
2438
  fail?: (params: {
1668
2439
  /** 错误信息 */
@@ -1683,6 +2454,19 @@ declare namespace ty.ipc {
1683
2454
  * 设置语音对讲变声音
1684
2455
  * @public
1685
2456
  * @since IPCKit 6.2.0
2457
+ * @example Demo
2458
+ * ```tsx
2459
+ * ty.ipc.enableVoiceEffect({
2460
+ * deviceId: "xx",
2461
+ * effectType: 1,
2462
+ * success: data => {
2463
+ * console.log(data);
2464
+ * },
2465
+ * fail: error => {
2466
+ * console.error(error);
2467
+ * },
2468
+ * });
2469
+ * ```
1686
2470
  * @platform iOS Android
1687
2471
  */
1688
2472
  export function enableVoiceEffect(params: {
@@ -1699,7 +2483,7 @@ declare namespace ty.ipc {
1699
2483
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1700
2484
  complete?: () => void
1701
2485
  /** 接口调用成功的回调函数 */
1702
- success?: (params: null) => void
2486
+ success?: () => void
1703
2487
  /** 接口调用失败的回调函数 */
1704
2488
  fail?: (params: {
1705
2489
  /** 错误信息 */
@@ -1720,6 +2504,18 @@ declare namespace ty.ipc {
1720
2504
  * 获取上次设置语音对讲变声音模式
1721
2505
  * @public
1722
2506
  * @since IPCKit 6.2.0
2507
+ * @example Demo
2508
+ * ```tsx
2509
+ * ty.ipc.getLastAudioEffect({
2510
+ * deviceId: "xx",
2511
+ * success: data => {
2512
+ * console.log(data);
2513
+ * },
2514
+ * fail: error => {
2515
+ * console.error(error);
2516
+ * },
2517
+ * });
2518
+ * ```
1723
2519
  * @platform iOS Android
1724
2520
  */
1725
2521
  export function getLastAudioEffect(params: {
@@ -1758,6 +2554,18 @@ declare namespace ty.ipc {
1758
2554
  * 是否已经连接
1759
2555
  * @public
1760
2556
  * @since IPCKit 6.2.0
2557
+ * @example Demo
2558
+ * ```tsx
2559
+ * ty.ipc.isConnected({
2560
+ * deviceId: "xx",
2561
+ * success: data => {
2562
+ * console.log(data);
2563
+ * },
2564
+ * fail: error => {
2565
+ * console.error(error);
2566
+ * },
2567
+ * });
2568
+ * ```
1761
2569
  * @platform iOS Android
1762
2570
  */
1763
2571
  export function isConnected(params: {
@@ -1796,6 +2604,18 @@ declare namespace ty.ipc {
1796
2604
  * 是否正在连接
1797
2605
  * @public
1798
2606
  * @since IPCKit 6.2.0
2607
+ * @example Demo
2608
+ * ```tsx
2609
+ * ty.ipc.isConnecting({
2610
+ * deviceId: "xx",
2611
+ * success: data => {
2612
+ * console.log(data);
2613
+ * },
2614
+ * fail: error => {
2615
+ * console.error(error);
2616
+ * },
2617
+ * });
2618
+ * ```
1799
2619
  * @platform iOS Android
1800
2620
  */
1801
2621
  export function isConnecting(params: {
@@ -1834,6 +2654,18 @@ declare namespace ty.ipc {
1834
2654
  * 请求连接
1835
2655
  * @public
1836
2656
  * @since IPCKit 6.2.0
2657
+ * @example Demo
2658
+ * ```tsx
2659
+ * ty.ipc.connect({
2660
+ * deviceId: "xx",
2661
+ * success: data => {
2662
+ * console.log(data);
2663
+ * },
2664
+ * fail: error => {
2665
+ * console.error(error);
2666
+ * },
2667
+ * });
2668
+ * ```
1837
2669
  * @platform iOS Android
1838
2670
  */
1839
2671
  export function connect(params: {
@@ -1845,7 +2677,7 @@ declare namespace ty.ipc {
1845
2677
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1846
2678
  complete?: () => void
1847
2679
  /** 接口调用成功的回调函数 */
1848
- success?: (params: null) => void
2680
+ success?: () => void
1849
2681
  /** 接口调用失败的回调函数 */
1850
2682
  fail?: (params: {
1851
2683
  /** 错误信息 */
@@ -1866,6 +2698,18 @@ declare namespace ty.ipc {
1866
2698
  * 断开连接
1867
2699
  * @public
1868
2700
  * @since IPCKit 6.2.0
2701
+ * @example Demo
2702
+ * ```tsx
2703
+ * ty.ipc.disConnect({
2704
+ * deviceId: "xx",
2705
+ * success: data => {
2706
+ * console.log(data);
2707
+ * },
2708
+ * fail: error => {
2709
+ * console.error(error);
2710
+ * },
2711
+ * });
2712
+ * ```
1869
2713
  * @platform iOS Android
1870
2714
  */
1871
2715
  export function disConnect(params: {
@@ -1877,7 +2721,7 @@ declare namespace ty.ipc {
1877
2721
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1878
2722
  complete?: () => void
1879
2723
  /** 接口调用成功的回调函数 */
1880
- success?: (params: null) => void
2724
+ success?: () => void
1881
2725
  /** 接口调用失败的回调函数 */
1882
2726
  fail?: (params: {
1883
2727
  /** 错误信息 */
@@ -1898,6 +2742,18 @@ declare namespace ty.ipc {
1898
2742
  * 是否断开连接
1899
2743
  * @public
1900
2744
  * @since IPCKit 6.2.0
2745
+ * @example Demo
2746
+ * ```tsx
2747
+ * ty.ipc.isDisConnect({
2748
+ * deviceId: "xx",
2749
+ * success: data => {
2750
+ * console.log(data);
2751
+ * },
2752
+ * fail: error => {
2753
+ * console.error(error);
2754
+ * },
2755
+ * });
2756
+ * ```
1901
2757
  * @platform iOS Android
1902
2758
  */
1903
2759
  export function isDisConnect(params: {
@@ -1936,6 +2792,18 @@ declare namespace ty.ipc {
1936
2792
  * 开启 debug log 输出给面板
1937
2793
  * @public
1938
2794
  * @since IPCKit 6.2.0
2795
+ * @example Demo
2796
+ * ```tsx
2797
+ * ty.ipc.enableDebugLog({
2798
+ * deviceId: "xx",
2799
+ * success: data => {
2800
+ * console.log(data);
2801
+ * },
2802
+ * fail: error => {
2803
+ * console.error(error);
2804
+ * },
2805
+ * });
2806
+ * ```
1939
2807
  * @platform iOS Android
1940
2808
  */
1941
2809
  export function enableDebugLog(params: {
@@ -1947,7 +2815,7 @@ declare namespace ty.ipc {
1947
2815
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1948
2816
  complete?: () => void
1949
2817
  /** 接口调用成功的回调函数 */
1950
- success?: (params: null) => void
2818
+ success?: () => void
1951
2819
  /** 接口调用失败的回调函数 */
1952
2820
  fail?: (params: {
1953
2821
  /** 错误信息 */
@@ -1968,6 +2836,18 @@ declare namespace ty.ipc {
1968
2836
  * 关闭 debug log 输出给面板
1969
2837
  * @public
1970
2838
  * @since IPCKit 6.2.0
2839
+ * @example Demo
2840
+ * ```tsx
2841
+ * ty.ipc.disableDebugLog({
2842
+ * deviceId: "xx",
2843
+ * success: data => {
2844
+ * console.log(data);
2845
+ * },
2846
+ * fail: error => {
2847
+ * console.error(error);
2848
+ * },
2849
+ * });
2850
+ * ```
1971
2851
  * @platform iOS Android
1972
2852
  */
1973
2853
  export function disableDebugLog(params: {
@@ -1979,7 +2859,7 @@ declare namespace ty.ipc {
1979
2859
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
1980
2860
  complete?: () => void
1981
2861
  /** 接口调用成功的回调函数 */
1982
- success?: (params: null) => void
2862
+ success?: () => void
1983
2863
  /** 接口调用失败的回调函数 */
1984
2864
  fail?: (params: {
1985
2865
  /** 错误信息 */
@@ -2000,13 +2880,24 @@ declare namespace ty.ipc {
2000
2880
  * 上传 App 日志
2001
2881
  * @public
2002
2882
  * @since IPCKit 6.2.0
2883
+ * @example Demo
2884
+ * ```tsx
2885
+ * ty.ipc.uploadAppLog({
2886
+ * success: data => {
2887
+ * console.log(data);
2888
+ * },
2889
+ * fail: error => {
2890
+ * console.error(error);
2891
+ * },
2892
+ * });
2893
+ * ```
2003
2894
  * @platform iOS Android
2004
2895
  */
2005
2896
  export function uploadAppLog(params?: {
2006
2897
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2007
2898
  complete?: () => void
2008
2899
  /** 接口调用成功的回调函数 */
2009
- success?: (params: null) => void
2900
+ success?: () => void
2010
2901
  /** 接口调用失败的回调函数 */
2011
2902
  fail?: (params: {
2012
2903
  /** 错误信息 */
@@ -2027,13 +2918,24 @@ declare namespace ty.ipc {
2027
2918
  * whether supports playbackV2
2028
2919
  * @public
2029
2920
  * @since IPCKit 6.6.3
2921
+ * @example Demo
2922
+ * ```tsx
2923
+ * ty.ipc.isSupportPlaybackV2({
2924
+ * success: data => {
2925
+ * console.log(data);
2926
+ * },
2927
+ * fail: error => {
2928
+ * console.error(error);
2929
+ * },
2930
+ * });
2931
+ * ```
2030
2932
  * @platform iOS Android
2031
2933
  */
2032
2934
  export function isSupportPlaybackV2(params?: {
2033
2935
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2034
2936
  complete?: () => void
2035
2937
  /** 接口调用成功的回调函数 */
2036
- success?: (params: null) => void
2938
+ success?: () => void
2037
2939
  /** 接口调用失败的回调函数 */
2038
2940
  fail?: (params: {
2039
2941
  /** 错误信息 */
@@ -2054,13 +2956,24 @@ declare namespace ty.ipc {
2054
2956
  * whether supports doorLock AOV
2055
2957
  * @public
2056
2958
  * @since IPCKit 6.7.1
2959
+ * @example Demo
2960
+ * ```tsx
2961
+ * ty.ipc.isSupportDoorLockAOV({
2962
+ * success: data => {
2963
+ * console.log(data);
2964
+ * },
2965
+ * fail: error => {
2966
+ * console.error(error);
2967
+ * },
2968
+ * });
2969
+ * ```
2057
2970
  * @platform iOS Android
2058
2971
  */
2059
2972
  export function isSupportDoorLockAOV(params?: {
2060
2973
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2061
2974
  complete?: () => void
2062
2975
  /** 接口调用成功的回调函数 */
2063
- success?: (params: null) => void
2976
+ success?: () => void
2064
2977
  /** 接口调用失败的回调函数 */
2065
2978
  fail?: (params: {
2066
2979
  /** 错误信息 */
@@ -2081,13 +2994,24 @@ declare namespace ty.ipc {
2081
2994
  * whether supports detection setting
2082
2995
  * @public
2083
2996
  * @since IPCKit 6.10.1
2997
+ * @example Demo
2998
+ * ```tsx
2999
+ * ty.ipc.supportDetectionSetting({
3000
+ * success: data => {
3001
+ * console.log(data);
3002
+ * },
3003
+ * fail: error => {
3004
+ * console.error(error);
3005
+ * },
3006
+ * });
3007
+ * ```
2084
3008
  * @platform iOS Android
2085
3009
  */
2086
3010
  export function supportDetectionSetting(params?: {
2087
3011
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2088
3012
  complete?: () => void
2089
3013
  /** 接口调用成功的回调函数 */
2090
- success?: (params: null) => void
3014
+ success?: () => void
2091
3015
  /** 接口调用失败的回调函数 */
2092
3016
  fail?: (params: {
2093
3017
  /** 错误信息 */
@@ -2108,6 +3032,18 @@ declare namespace ty.ipc {
2108
3032
  * whether low power optimization is enabled
2109
3033
  * @public
2110
3034
  * @since IPCKit 7.6.0
3035
+ * @example Demo
3036
+ * ```tsx
3037
+ * ty.ipc.isLowPowerOptEnabled({
3038
+ * deviceId: "xx",
3039
+ * success: data => {
3040
+ * console.log(data);
3041
+ * },
3042
+ * fail: error => {
3043
+ * console.error(error);
3044
+ * },
3045
+ * });
3046
+ * ```
2111
3047
  * @platform iOS Android
2112
3048
  */
2113
3049
  export function isLowPowerOptEnabled(params: {
@@ -2146,6 +3082,19 @@ declare namespace ty.ipc {
2146
3082
  * enable or disable low power optimization
2147
3083
  * @public
2148
3084
  * @since IPCKit 7.6.0
3085
+ * @example Demo
3086
+ * ```tsx
3087
+ * ty.ipc.enableLowPowerOpt({
3088
+ * deviceId: "xx",
3089
+ * enable: false,
3090
+ * success: data => {
3091
+ * console.log(data);
3092
+ * },
3093
+ * fail: error => {
3094
+ * console.error(error);
3095
+ * },
3096
+ * });
3097
+ * ```
2149
3098
  * @platform iOS Android
2150
3099
  */
2151
3100
  export function enableLowPowerOpt(params: {
@@ -2162,7 +3111,7 @@ declare namespace ty.ipc {
2162
3111
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2163
3112
  complete?: () => void
2164
3113
  /** 接口调用成功的回调函数 */
2165
- success?: (params: null) => void
3114
+ success?: () => void
2166
3115
  /** 接口调用失败的回调函数 */
2167
3116
  fail?: (params: {
2168
3117
  /** 错误信息 */
@@ -2183,6 +3132,17 @@ declare namespace ty.ipc {
2183
3132
  * whether should show mobile tips
2184
3133
  * @public
2185
3134
  * @since IPCKit 7.6.0
3135
+ * @example Demo
3136
+ * ```tsx
3137
+ * ty.ipc.shouldShowMobileTips({
3138
+ * success: data => {
3139
+ * console.log(data);
3140
+ * },
3141
+ * fail: error => {
3142
+ * console.error(error);
3143
+ * },
3144
+ * });
3145
+ * ```
2186
3146
  * @platform iOS Android
2187
3147
  */
2188
3148
  export function shouldShowMobileTips(params?: {
@@ -2212,10 +3172,55 @@ declare namespace ty.ipc {
2212
3172
  }) => void
2213
3173
  }): void
2214
3174
 
3175
+ /**
3176
+ * 是否是低端机
3177
+ * @public
3178
+ * @since IPCKit 7.8.1
3179
+ * @platform iOS Android
3180
+ */
3181
+ export function isLowPhone(params?: {
3182
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
3183
+ complete?: () => void
3184
+ /** 接口调用成功的回调函数 */
3185
+ success?: (params: {
3186
+ /**
3187
+ * 是否是低端机
3188
+ * @since IPCKit 7.8.1
3189
+ */
3190
+ isLow: boolean
3191
+ }) => void
3192
+ /** 接口调用失败的回调函数 */
3193
+ fail?: (params: {
3194
+ /** 错误信息 */
3195
+ errorMsg: string
3196
+ /** 错误码 */
3197
+ errorCode: string | number
3198
+ /** 错误扩展 */
3199
+ innerError: {
3200
+ /** 错误扩展码 */
3201
+ errorCode: string | number
3202
+ /** 错误扩展信息 */
3203
+ errorMsg: string
3204
+ }
3205
+ }) => void
3206
+ }): void
3207
+
2215
3208
  /**
2216
3209
  * whether low power optimization is supported
2217
3210
  * @public
2218
3211
  * @since IPCKit 7.6.0
3212
+ * @example Demo
3213
+ * ```tsx
3214
+ * ty.ipc.isSupportLowPowerOpt({
3215
+ * devId: "xx",
3216
+ * success: data => {
3217
+ * console.log(data);
3218
+ * },
3219
+ * fail: error => {
3220
+ * console.error(error);
3221
+ * },
3222
+ * });
3223
+ * ```
2219
3224
  * @platform iOS Android
2220
3225
  */
2221
3226
  export function isSupportLowPowerOpt(params: {
@@ -2254,6 +3259,18 @@ declare namespace ty.ipc {
2254
3259
  * update mobile tips shown status
2255
3260
  * @public
2256
3261
  * @since IPCKit 7.6.0
3262
+ * @example Demo
3263
+ * ```tsx
3264
+ * ty.ipc.updateMobileTipsShownStatus({
3265
+ * hasShown: false,
3266
+ * success: data => {
3267
+ * console.log(data);
3268
+ * },
3269
+ * fail: error => {
3270
+ * console.error(error);
3271
+ * },
3272
+ * });
3273
+ * ```
2257
3274
  * @platform iOS Android
2258
3275
  */
2259
3276
  export function updateMobileTipsShownStatus(params: {
@@ -2265,7 +3282,7 @@ declare namespace ty.ipc {
2265
3282
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2266
3283
  complete?: () => void
2267
3284
  /** 接口调用成功的回调函数 */
2268
- success?: (params: null) => void
3285
+ success?: () => void
2269
3286
  /** 接口调用失败的回调函数 */
2270
3287
  fail?: (params: {
2271
3288
  /** 错误信息 */
@@ -2286,6 +3303,21 @@ declare namespace ty.ipc {
2286
3303
  * set camera smart frame
2287
3304
  * @public
2288
3305
  * @since IPCKit 6.10.1
3306
+ * @example Demo
3307
+ * ```tsx
3308
+ * ty.ipc.updateCameraSmartFrame({
3309
+ * devId: "xx",
3310
+ * frameType: 1,
3311
+ * value: "xx",
3312
+ * openState: false,
3313
+ * success: data => {
3314
+ * console.log(data);
3315
+ * },
3316
+ * fail: error => {
3317
+ * console.error(error);
3318
+ * },
3319
+ * });
3320
+ * ```
2289
3321
  * @platform iOS Android
2290
3322
  */
2291
3323
  export function updateCameraSmartFrame(params: {
@@ -2312,7 +3344,7 @@ declare namespace ty.ipc {
2312
3344
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2313
3345
  complete?: () => void
2314
3346
  /** 接口调用成功的回调函数 */
2315
- success?: (params: null) => void
3347
+ success?: () => void
2316
3348
  /** 接口调用失败的回调函数 */
2317
3349
  fail?: (params: {
2318
3350
  /** 错误信息 */
@@ -2333,6 +3365,18 @@ declare namespace ty.ipc {
2333
3365
  * get camera smart frame
2334
3366
  * @public
2335
3367
  * @since IPCKit 6.10.1
3368
+ * @example Demo
3369
+ * ```tsx
3370
+ * ty.ipc.getCameraSmartFrame({
3371
+ * devId: "xx",
3372
+ * success: data => {
3373
+ * console.log(data);
3374
+ * },
3375
+ * fail: error => {
3376
+ * console.error(error);
3377
+ * },
3378
+ * });
3379
+ * ```
2336
3380
  * @platform iOS Android
2337
3381
  */
2338
3382
  export function getCameraSmartFrame(params: {
@@ -2376,6 +3420,21 @@ declare namespace ty.ipc {
2376
3420
  * set camera cross line frame
2377
3421
  * @public
2378
3422
  * @since IPCKit 6.10.1
3423
+ * @example Demo
3424
+ * ```tsx
3425
+ * ty.ipc.updateCameraCrosslineFrame({
3426
+ * devId: "xx",
3427
+ * lineType: 1,
3428
+ * value: "xx",
3429
+ * openState: false,
3430
+ * success: data => {
3431
+ * console.log(data);
3432
+ * },
3433
+ * fail: error => {
3434
+ * console.error(error);
3435
+ * },
3436
+ * });
3437
+ * ```
2379
3438
  * @platform iOS Android
2380
3439
  */
2381
3440
  export function updateCameraCrosslineFrame(params: {
@@ -2402,7 +3461,7 @@ declare namespace ty.ipc {
2402
3461
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2403
3462
  complete?: () => void
2404
3463
  /** 接口调用成功的回调函数 */
2405
- success?: (params: null) => void
3464
+ success?: () => void
2406
3465
  /** 接口调用失败的回调函数 */
2407
3466
  fail?: (params: {
2408
3467
  /** 错误信息 */
@@ -2423,6 +3482,18 @@ declare namespace ty.ipc {
2423
3482
  * get camera cross line frame
2424
3483
  * @public
2425
3484
  * @since IPCKit 6.10.1
3485
+ * @example Demo
3486
+ * ```tsx
3487
+ * ty.ipc.getCameraCrosslineFrame({
3488
+ * devId: "xx",
3489
+ * success: data => {
3490
+ * console.log(data);
3491
+ * },
3492
+ * fail: error => {
3493
+ * console.error(error);
3494
+ * },
3495
+ * });
3496
+ * ```
2426
3497
  * @platform iOS Android
2427
3498
  */
2428
3499
  export function getCameraCrosslineFrame(params: {
@@ -2466,6 +3537,19 @@ declare namespace ty.ipc {
2466
3537
  * set camera talk mode
2467
3538
  * @public
2468
3539
  * @since IPCKit 6.10.1
3540
+ * @example Demo
3541
+ * ```tsx
3542
+ * ty.ipc.updateCameraAudioMode({
3543
+ * devId: "xx",
3544
+ * mode: 1,
3545
+ * success: data => {
3546
+ * console.log(data);
3547
+ * },
3548
+ * fail: error => {
3549
+ * console.error(error);
3550
+ * },
3551
+ * });
3552
+ * ```
2469
3553
  * @platform iOS Android
2470
3554
  */
2471
3555
  export function updateCameraAudioMode(params: {
@@ -2482,7 +3566,7 @@ declare namespace ty.ipc {
2482
3566
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2483
3567
  complete?: () => void
2484
3568
  /** 接口调用成功的回调函数 */
2485
- success?: (params: null) => void
3569
+ success?: () => void
2486
3570
  /** 接口调用失败的回调函数 */
2487
3571
  fail?: (params: {
2488
3572
  /** 错误信息 */
@@ -2503,6 +3587,18 @@ declare namespace ty.ipc {
2503
3587
  * get ttt abilityKeyList
2504
3588
  * @public
2505
3589
  * @since IPCKit 7.3.0
3590
+ * @example Demo
3591
+ * ```tsx
3592
+ * ty.ipc.getTTTAbilityKeyList({
3593
+ * key: "xx",
3594
+ * success: data => {
3595
+ * console.log(data);
3596
+ * },
3597
+ * fail: error => {
3598
+ * console.error(error);
3599
+ * },
3600
+ * });
3601
+ * ```
2506
3602
  * @platform iOS Android
2507
3603
  */
2508
3604
  export function getTTTAbilityKeyList(params: {
@@ -2538,9 +3634,21 @@ declare namespace ty.ipc {
2538
3634
  }): void
2539
3635
 
2540
3636
  /**
2541
- * allow show device persionssion alert
3637
+ * allow show device permission alert
2542
3638
  * @public
2543
3639
  * @since IPCKit 7.5.0
3640
+ * @example Demo
3641
+ * ```tsx
3642
+ * ty.ipc.allowShowDevicePermissionAlert({
3643
+ * deviceId: "xx",
3644
+ * success: data => {
3645
+ * console.log(data);
3646
+ * },
3647
+ * fail: error => {
3648
+ * console.error(error);
3649
+ * },
3650
+ * });
3651
+ * ```
2544
3652
  * @platform iOS Android
2545
3653
  */
2546
3654
  export function allowShowDevicePermissionAlert(params: {
@@ -2552,7 +3660,7 @@ declare namespace ty.ipc {
2552
3660
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2553
3661
  complete?: () => void
2554
3662
  /** 接口调用成功的回调函数 */
2555
- success?: (params: null) => void
3663
+ success?: () => void
2556
3664
  /** 接口调用失败的回调函数 */
2557
3665
  fail?: (params: {
2558
3666
  /** 错误信息 */
@@ -2573,6 +3681,18 @@ declare namespace ty.ipc {
2573
3681
  * 查询业务能力
2574
3682
  * @public
2575
3683
  * @since IPCKit 7.5.2
3684
+ * @example Demo
3685
+ * ```tsx
3686
+ * ty.ipc.queryBizSkills({
3687
+ * deviceId: "xx",
3688
+ * success: data => {
3689
+ * console.log(data);
3690
+ * },
3691
+ * fail: error => {
3692
+ * console.error(error);
3693
+ * },
3694
+ * });
3695
+ * ```
2576
3696
  * @platform iOS Android
2577
3697
  */
2578
3698
  export function queryBizSkills(params: {
@@ -2616,6 +3736,19 @@ declare namespace ty.ipc {
2616
3736
  * 下发业务动作控制指令
2617
3737
  * @public
2618
3738
  * @since IPCKit 7.5.2
3739
+ * @example Demo
3740
+ * ```tsx
3741
+ * ty.ipc.startBizAction({
3742
+ * deviceId: "xx",
3743
+ * action: "xx",
3744
+ * success: data => {
3745
+ * console.log(data);
3746
+ * },
3747
+ * fail: error => {
3748
+ * console.error(error);
3749
+ * },
3750
+ * });
3751
+ * ```
2619
3752
  * @platform iOS Android
2620
3753
  */
2621
3754
  export function startBizAction(params: {
@@ -2669,6 +3802,19 @@ declare namespace ty.ipc {
2669
3802
  * 取消业务动作控制指令
2670
3803
  * @public
2671
3804
  * @since IPCKit 7.5.2
3805
+ * @example Demo
3806
+ * ```tsx
3807
+ * ty.ipc.cancelBizAction({
3808
+ * deviceId: "xx",
3809
+ * cmdId: 1,
3810
+ * success: data => {
3811
+ * console.log(data);
3812
+ * },
3813
+ * fail: error => {
3814
+ * console.error(error);
3815
+ * },
3816
+ * });
3817
+ * ```
2672
3818
  * @platform iOS Android
2673
3819
  */
2674
3820
  export function cancelBizAction(params: {
@@ -2722,13 +3868,66 @@ declare namespace ty.ipc {
2722
3868
  * 智能推送流程结束,进入下一步通知
2723
3869
  * @public
2724
3870
  * @since IPCKit 7.7.0
3871
+ * @example Demo
3872
+ * ```tsx
3873
+ * ty.ipc.goNextStepWhenSmartPushProcessEnd({
3874
+ * success: data => {
3875
+ * console.log(data);
3876
+ * },
3877
+ * fail: error => {
3878
+ * console.error(error);
3879
+ * },
3880
+ * });
3881
+ * ```
2725
3882
  * @platform iOS Android
2726
3883
  */
2727
3884
  export function goNextStepWhenSmartPushProcessEnd(params?: {
2728
3885
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2729
3886
  complete?: () => void
2730
3887
  /** 接口调用成功的回调函数 */
2731
- success?: (params: null) => void
3888
+ success?: () => void
3889
+ /** 接口调用失败的回调函数 */
3890
+ fail?: (params: {
3891
+ /** 错误信息 */
3892
+ errorMsg: string
3893
+ /** 错误码 */
3894
+ errorCode: string | number
3895
+ /** 错误扩展 */
3896
+ innerError: {
3897
+ /** 错误扩展码 */
3898
+ errorCode: string | number
3899
+ /** 错误扩展信息 */
3900
+ errorMsg: string
3901
+ }
3902
+ }) => void
3903
+ }): void
3904
+
3905
+ /**
3906
+ * 更新报告已读状态
3907
+ * @public
3908
+ * @since IPCKit 7.8.0
3909
+ * @platform iOS Android
3910
+ */
3911
+ export function protectSummaryDidRead(params: {
3912
+ /**
3913
+ * devId 设备id
3914
+ * @since IPCKit 7.8.0
3915
+ */
3916
+ devId: string
3917
+ /**
3918
+ * eventTime 时间
3919
+ * @since IPCKit 7.8.0
3920
+ */
3921
+ eventTime: string
3922
+ /**
3923
+ * defaultDesc 描述
3924
+ * @since IPCKit 7.8.0
3925
+ */
3926
+ defaultDesc: string
3927
+ /** 接口调用结束的回调函数(调用成功、失败都会执行) */
3928
+ complete?: () => void
3929
+ /** 接口调用成功的回调函数 */
3930
+ success?: () => void
2732
3931
  /** 接口调用失败的回调函数 */
2733
3932
  fail?: (params: {
2734
3933
  /** 错误信息 */
@@ -2753,6 +3952,18 @@ declare namespace ty.ipc {
2753
3952
  * 参数由app与面板共同约定
2754
3953
  * @public
2755
3954
  * @since IPCKit 1.0.0
3955
+ * @example Demo
3956
+ * ```tsx
3957
+ * ty.ipc.gotoCameraSettingsRouter({
3958
+ * url: "xx",
3959
+ * success: data => {
3960
+ * console.log(data);
3961
+ * },
3962
+ * fail: error => {
3963
+ * console.error(error);
3964
+ * },
3965
+ * });
3966
+ * ```
2756
3967
  * @platform iOS Android
2757
3968
  */
2758
3969
  export function gotoCameraSettingsRouter(params: {
@@ -2765,7 +3976,7 @@ declare namespace ty.ipc {
2765
3976
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2766
3977
  complete?: () => void
2767
3978
  /** 接口调用成功的回调函数 */
2768
- success?: (params: null) => void
3979
+ success?: () => void
2769
3980
  /** 接口调用失败的回调函数 */
2770
3981
  fail?: (params: {
2771
3982
  /** 错误信息 */
@@ -2787,6 +3998,18 @@ declare namespace ty.ipc {
2787
3998
  * 参数由app与面板共同约定
2788
3999
  * @public
2789
4000
  * @since IPCKit 1.0.0
4001
+ * @example Demo
4002
+ * ```tsx
4003
+ * ty.ipc.couldChangeTalkbackMode({
4004
+ * devId: "xx",
4005
+ * success: data => {
4006
+ * console.log(data);
4007
+ * },
4008
+ * fail: error => {
4009
+ * console.error(error);
4010
+ * },
4011
+ * });
4012
+ * ```
2790
4013
  * @platform iOS Android
2791
4014
  */
2792
4015
  export function couldChangeTalkbackMode(params: {
@@ -2798,7 +4021,7 @@ declare namespace ty.ipc {
2798
4021
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2799
4022
  complete?: () => void
2800
4023
  /** 接口调用成功的回调函数 */
2801
- success?: (params: null) => void
4024
+ success?: () => void
2802
4025
  /** 接口调用失败的回调函数 */
2803
4026
  fail?: (params: {
2804
4027
  /** 错误信息 */
@@ -2819,6 +4042,19 @@ declare namespace ty.ipc {
2819
4042
  * 门铃呼叫参数设置
2820
4043
  * @public
2821
4044
  * @since IPCKit 1.3.0
4045
+ * @example Demo
4046
+ * ```tsx
4047
+ * ty.ipc.doorbellCallConfig({
4048
+ * ignoreWhenCalling: true,
4049
+ * doorbellRingTimeOut: 25,
4050
+ * success: (res) => {
4051
+ * console.log(res);
4052
+ * },
4053
+ * fail: (err) => {
4054
+ * console.log(err);
4055
+ * },
4056
+ * });
4057
+ * ```
2822
4058
  * @platform iOS Android
2823
4059
  */
2824
4060
  export function doorbellCallConfig(params?: {
@@ -2837,7 +4073,7 @@ declare namespace ty.ipc {
2837
4073
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2838
4074
  complete?: () => void
2839
4075
  /** 接口调用成功的回调函数 */
2840
- success?: (params: null) => void
4076
+ success?: () => void
2841
4077
  /** 接口调用失败的回调函数 */
2842
4078
  fail?: (params: {
2843
4079
  /** 错误信息 */
@@ -2858,6 +4094,18 @@ declare namespace ty.ipc {
2858
4094
  * 接听门铃呼叫
2859
4095
  * @public
2860
4096
  * @since IPCKit 1.3.0
4097
+ * @example Demo
4098
+ * ```tsx
4099
+ * ty.ipc.acceptDoorbellCall({
4100
+ * messageId: "xx",
4101
+ * success: (res) => {
4102
+ * console.log(res);
4103
+ * },
4104
+ * fail: (err) => {
4105
+ * console.log(err);
4106
+ * },
4107
+ * });
4108
+ * ```
2861
4109
  * @platform iOS Android
2862
4110
  */
2863
4111
  export function acceptDoorbellCall(params: {
@@ -2869,7 +4117,7 @@ declare namespace ty.ipc {
2869
4117
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2870
4118
  complete?: () => void
2871
4119
  /** 接口调用成功的回调函数 */
2872
- success?: (params: null) => void
4120
+ success?: () => void
2873
4121
  /** 接口调用失败的回调函数 */
2874
4122
  fail?: (params: {
2875
4123
  /** 错误信息 */
@@ -2890,6 +4138,18 @@ declare namespace ty.ipc {
2890
4138
  * 拒绝门铃呼叫
2891
4139
  * @public
2892
4140
  * @since IPCKit 1.3.0
4141
+ * @example Demo
4142
+ * ```tsx
4143
+ * ty.ipc.refuseDoorbellCall({
4144
+ * messageId: "xx",
4145
+ * success: (res) => {
4146
+ * console.log(res);
4147
+ * },
4148
+ * fail: (err) => {
4149
+ * console.log(err);
4150
+ * },
4151
+ * });
4152
+ * ```
2893
4153
  * @platform iOS Android
2894
4154
  */
2895
4155
  export function refuseDoorbellCall(params: {
@@ -2901,7 +4161,7 @@ declare namespace ty.ipc {
2901
4161
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2902
4162
  complete?: () => void
2903
4163
  /** 接口调用成功的回调函数 */
2904
- success?: (params: null) => void
4164
+ success?: () => void
2905
4165
  /** 接口调用失败的回调函数 */
2906
4166
  fail?: (params: {
2907
4167
  /** 错误信息 */
@@ -2922,6 +4182,18 @@ declare namespace ty.ipc {
2922
4182
  * 挂断门铃呼叫
2923
4183
  * @public
2924
4184
  * @since IPCKit 1.3.0
4185
+ * @example Demo
4186
+ * ```tsx
4187
+ * ty.ipc.hangupDoorbellCall({
4188
+ * messageId: "xx",
4189
+ * success: (res) => {
4190
+ * console.log(res);
4191
+ * },
4192
+ * fail: (err) => {
4193
+ * console.log(err);
4194
+ * },
4195
+ * });
4196
+ * ```
2925
4197
  * @platform iOS Android
2926
4198
  */
2927
4199
  export function hangupDoorbellCall(params: {
@@ -2933,7 +4205,7 @@ declare namespace ty.ipc {
2933
4205
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2934
4206
  complete?: () => void
2935
4207
  /** 接口调用成功的回调函数 */
2936
- success?: (params: null) => void
4208
+ success?: () => void
2937
4209
  /** 接口调用失败的回调函数 */
2938
4210
  fail?: (params: {
2939
4211
  /** 错误信息 */
@@ -2954,13 +4226,24 @@ declare namespace ty.ipc {
2954
4226
  * 是否自定义默认语音配置
2955
4227
  * @public
2956
4228
  * @since IPCKit 5.15.1
4229
+ * @example Demo
4230
+ * ```tsx
4231
+ * ty.ipc.isSupportedCustomDefaultAudioConfig({
4232
+ * success: (res) => {
4233
+ * console.log(res);
4234
+ * },
4235
+ * fail: (err) => {
4236
+ * console.log(err);
4237
+ * },
4238
+ * });
4239
+ * ```
2957
4240
  * @platform iOS Android
2958
4241
  */
2959
4242
  export function isSupportedCustomDefaultAudioConfig(params?: {
2960
4243
  /** 接口调用结束的回调函数(调用成功、失败都会执行) */
2961
4244
  complete?: () => void
2962
4245
  /** 接口调用成功的回调函数 */
2963
- success?: (params: null) => void
4246
+ success?: () => void
2964
4247
  /** 接口调用失败的回调函数 */
2965
4248
  fail?: (params: {
2966
4249
  /** 错误信息 */
@@ -2980,7 +4263,13 @@ declare namespace ty.ipc {
2980
4263
  /**
2981
4264
  * 创建视图完成回调
2982
4265
  * @public
2983
- * @since IPCKit 6.3.1
4266
+ * @since IPCKit 6.3.11
4267
+ * @example Demo
4268
+ * ```tsx
4269
+ * ty.ipc.onCreateViewSuccess(e => {
4270
+ * console.log(e);
4271
+ * });
4272
+ * ```
2984
4273
  * @platform iOS Android
2985
4274
  */
2986
4275
  export function onCreateViewSuccess(
@@ -2990,7 +4279,13 @@ declare namespace ty.ipc {
2990
4279
  /**
2991
4280
  * 创建视图完成回调
2992
4281
  * @public
2993
- * @since IPCKit 6.3.1
4282
+ * @since IPCKit 6.3.11
4283
+ * @example Demo
4284
+ * ```tsx
4285
+ * const listener = function (res) { console.log(res) }
4286
+ * ty.ipc.onCreateViewSuccess(listener)
4287
+ * ty.ipc.offCreateViewSuccess(listener)
4288
+ * ```
2994
4289
  * @platform iOS Android
2995
4290
  */
2996
4291
  export function offCreateViewSuccess(
@@ -3001,6 +4296,12 @@ declare namespace ty.ipc {
3001
4296
  * 视频播放信息回调
3002
4297
  * @public
3003
4298
  * @since IPCKit 6.1.0
4299
+ * @example Demo
4300
+ * ```tsx
4301
+ * ty.ipc.onPlayMessageVideoInfo(e => {
4302
+ * console.log(e);
4303
+ * });
4304
+ * ```
3004
4305
  * @platform iOS Android
3005
4306
  */
3006
4307
  export function onPlayMessageVideoInfo(
@@ -3011,6 +4312,12 @@ declare namespace ty.ipc {
3011
4312
  * 视频播放信息回调
3012
4313
  * @public
3013
4314
  * @since IPCKit 6.1.0
4315
+ * @example Demo
4316
+ * ```tsx
4317
+ * const listener = function (res) { console.log(res) }
4318
+ * ty.ipc.onPlayMessageVideoInfo(listener)
4319
+ * ty.ipc.offPlayMessageVideoInfo(listener)
4320
+ * ```
3014
4321
  * @platform iOS Android
3015
4322
  */
3016
4323
  export function offPlayMessageVideoInfo(
@@ -3021,6 +4328,12 @@ declare namespace ty.ipc {
3021
4328
  * 音频播放信息回调
3022
4329
  * @public
3023
4330
  * @since IPCKit 6.1.0
4331
+ * @example Demo
4332
+ * ```tsx
4333
+ * ty.ipc.onPlayMessageAudioInfo(e => {
4334
+ * console.log(e);
4335
+ * });
4336
+ * ```
3024
4337
  * @platform iOS Android
3025
4338
  */
3026
4339
  export function onPlayMessageAudioInfo(
@@ -3031,6 +4344,12 @@ declare namespace ty.ipc {
3031
4344
  * 音频播放信息回调
3032
4345
  * @public
3033
4346
  * @since IPCKit 6.1.0
4347
+ * @example Demo
4348
+ * ```tsx
4349
+ * const listener = function (res) { console.log(res) }
4350
+ * ty.ipc.onPlayMessageAudioInfo(listener)
4351
+ * ty.ipc.offPlayMessageAudioInfo(listener)
4352
+ * ```
3034
4353
  * @platform iOS Android
3035
4354
  */
3036
4355
  export function offPlayMessageAudioInfo(
@@ -3041,6 +4360,12 @@ declare namespace ty.ipc {
3041
4360
  * 播放完成回调
3042
4361
  * @public
3043
4362
  * @since IPCKit 6.1.0
4363
+ * @example Demo
4364
+ * ```tsx
4365
+ * ty.ipc.onPlayMessageVideoFinish(e => {
4366
+ * console.log(e);
4367
+ * });
4368
+ * ```
3044
4369
  * @platform iOS Android
3045
4370
  */
3046
4371
  export function onPlayMessageVideoFinish(
@@ -3051,6 +4376,12 @@ declare namespace ty.ipc {
3051
4376
  * 播放完成回调
3052
4377
  * @public
3053
4378
  * @since IPCKit 6.1.0
4379
+ * @example Demo
4380
+ * ```tsx
4381
+ * const listener = function (res) { console.log(res) }
4382
+ * ty.ipc.onPlayMessageVideoFinish(listener)
4383
+ * ty.ipc.offPlayMessageVideoFinish(listener)
4384
+ * ```
3054
4385
  * @platform iOS Android
3055
4386
  */
3056
4387
  export function offPlayMessageVideoFinish(
@@ -3061,6 +4392,12 @@ declare namespace ty.ipc {
3061
4392
  * 播放完成失败回调
3062
4393
  * @public
3063
4394
  * @since IPCKit 6.10.0
4395
+ * @example Demo
4396
+ * ```tsx
4397
+ * ty.ipc.onPlayMessageVideoError(e => {
4398
+ * console.log(e);
4399
+ * });
4400
+ * ```
3064
4401
  * @platform iOS Android
3065
4402
  */
3066
4403
  export function onPlayMessageVideoError(
@@ -3071,6 +4408,12 @@ declare namespace ty.ipc {
3071
4408
  * 播放完成失败回调
3072
4409
  * @public
3073
4410
  * @since IPCKit 6.10.0
4411
+ * @example Demo
4412
+ * ```tsx
4413
+ * const listener = function (res) { console.log(res) }
4414
+ * ty.ipc.onPlayMessageVideoError(listener)
4415
+ * ty.ipc.offPlayMessageVideoError(listener)
4416
+ * ```
3074
4417
  * @platform iOS Android
3075
4418
  */
3076
4419
  export function offPlayMessageVideoError(
@@ -3081,6 +4424,12 @@ declare namespace ty.ipc {
3081
4424
  * 下载进度事件
3082
4425
  * @public
3083
4426
  * @since IPCKit 5.16.0
4427
+ * @example Demo
4428
+ * ```tsx
4429
+ * ty.ipc.onCloudPlayBackDownloadProgress(e => {
4430
+ * console.log(e);
4431
+ * });
4432
+ * ```
3084
4433
  * @platform iOS Android
3085
4434
  */
3086
4435
  export function onCloudPlayBackDownloadProgress(
@@ -3091,6 +4440,12 @@ declare namespace ty.ipc {
3091
4440
  * 下载进度事件
3092
4441
  * @public
3093
4442
  * @since IPCKit 5.16.0
4443
+ * @example Demo
4444
+ * ```tsx
4445
+ * const listener = function (res) { console.log(res) }
4446
+ * ty.ipc.onCloudPlayBackDownloadProgress(listener)
4447
+ * ty.ipc.offCloudPlayBackDownloadProgress(listener)
4448
+ * ```
3094
4449
  * @platform iOS Android
3095
4450
  */
3096
4451
  export function offCloudPlayBackDownloadProgress(
@@ -3101,6 +4456,12 @@ declare namespace ty.ipc {
3101
4456
  * identifying bird view action trigger
3102
4457
  * @public
3103
4458
  * @since IPCKit 6.1.2
4459
+ * @example Demo
4460
+ * ```tsx
4461
+ * ty.ipc.onIdentifyingBirdViewActionTrigger(e => {
4462
+ * console.log(e);
4463
+ * });
4464
+ * ```
3104
4465
  * @platform iOS Android
3105
4466
  */
3106
4467
  export function onIdentifyingBirdViewActionTrigger(
@@ -3111,6 +4472,12 @@ declare namespace ty.ipc {
3111
4472
  * identifying bird view action trigger
3112
4473
  * @public
3113
4474
  * @since IPCKit 6.1.2
4475
+ * @example Demo
4476
+ * ```tsx
4477
+ * const listener = function (res) { console.log(res) }
4478
+ * ty.ipc.onIdentifyingBirdViewActionTrigger(listener)
4479
+ * ty.ipc.offIdentifyingBirdViewActionTrigger(listener)
4480
+ * ```
3114
4481
  * @platform iOS Android
3115
4482
  */
3116
4483
  export function offIdentifyingBirdViewActionTrigger(
@@ -3121,6 +4488,12 @@ declare namespace ty.ipc {
3121
4488
  * 视频下载结束
3122
4489
  * @public
3123
4490
  * @since IPCKit 6.1.0
4491
+ * @example Demo
4492
+ * ```tsx
4493
+ * ty.ipc.onDownloadMessageVideoFinished(e => {
4494
+ * console.log(e);
4495
+ * });
4496
+ * ```
3124
4497
  * @platform iOS Android
3125
4498
  */
3126
4499
  export function onDownloadMessageVideoFinished(
@@ -3131,6 +4504,12 @@ declare namespace ty.ipc {
3131
4504
  * 视频下载结束
3132
4505
  * @public
3133
4506
  * @since IPCKit 6.1.0
4507
+ * @example Demo
4508
+ * ```tsx
4509
+ * const listener = function (res) { console.log(res) }
4510
+ * ty.ipc.onDownloadMessageVideoFinished(listener)
4511
+ * ty.ipc.offDownloadMessageVideoFinished(listener)
4512
+ * ```
3134
4513
  * @platform iOS Android
3135
4514
  */
3136
4515
  export function offDownloadMessageVideoFinished(
@@ -3141,6 +4520,12 @@ declare namespace ty.ipc {
3141
4520
  * 视频下载进度
3142
4521
  * @public
3143
4522
  * @since IPCKit 6.1.0
4523
+ * @example Demo
4524
+ * ```tsx
4525
+ * ty.ipc.onDownloadMessageVideoProgress(e => {
4526
+ * console.log(e);
4527
+ * });
4528
+ * ```
3144
4529
  * @platform iOS Android
3145
4530
  */
3146
4531
  export function onDownloadMessageVideoProgress(
@@ -3151,6 +4536,12 @@ declare namespace ty.ipc {
3151
4536
  * 视频下载进度
3152
4537
  * @public
3153
4538
  * @since IPCKit 6.1.0
4539
+ * @example Demo
4540
+ * ```tsx
4541
+ * const listener = function (res) { console.log(res) }
4542
+ * ty.ipc.onDownloadMessageVideoProgress(listener)
4543
+ * ty.ipc.offDownloadMessageVideoProgress(listener)
4544
+ * ```
3154
4545
  * @platform iOS Android
3155
4546
  */
3156
4547
  export function offDownloadMessageVideoProgress(
@@ -3161,6 +4552,12 @@ declare namespace ty.ipc {
3161
4552
  * 面板调试日志事件
3162
4553
  * @public
3163
4554
  * @since IPCKit 6.2.0
4555
+ * @example Demo
4556
+ * ```tsx
4557
+ * ty.ipc.onDebugLogHit(e => {
4558
+ * console.log(e);
4559
+ * });
4560
+ * ```
3164
4561
  * @platform iOS Android
3165
4562
  */
3166
4563
  export function onDebugLogHit(
@@ -3171,6 +4568,12 @@ declare namespace ty.ipc {
3171
4568
  * 面板调试日志事件
3172
4569
  * @public
3173
4570
  * @since IPCKit 6.2.0
4571
+ * @example Demo
4572
+ * ```tsx
4573
+ * const listener = function (res) { console.log(res) }
4574
+ * ty.ipc.onDebugLogHit(listener)
4575
+ * ty.ipc.offDebugLogHit(listener)
4576
+ * ```
3174
4577
  * @platform iOS Android
3175
4578
  */
3176
4579
  export function offDebugLogHit(
@@ -3181,6 +4584,12 @@ declare namespace ty.ipc {
3181
4584
  * 业务动作完成通知
3182
4585
  * @public
3183
4586
  * @since IPCKit 7.5.2
4587
+ * @example Demo
4588
+ * ```tsx
4589
+ * ty.ipc.onBizActionFinished(e => {
4590
+ * console.log(e);
4591
+ * });
4592
+ * ```
3184
4593
  * @platform iOS Android
3185
4594
  */
3186
4595
  export function onBizActionFinished(
@@ -3191,6 +4600,12 @@ declare namespace ty.ipc {
3191
4600
  * 业务动作完成通知
3192
4601
  * @public
3193
4602
  * @since IPCKit 7.5.2
4603
+ * @example Demo
4604
+ * ```tsx
4605
+ * const listener = function (res) { console.log(res) }
4606
+ * ty.ipc.onBizActionFinished(listener)
4607
+ * ty.ipc.offBizActionFinished(listener)
4608
+ * ```
3194
4609
  * @platform iOS Android
3195
4610
  */
3196
4611
  export function offBizActionFinished(
@@ -3201,6 +4616,12 @@ declare namespace ty.ipc {
3201
4616
  * 门铃呼叫挂断事件
3202
4617
  * @public
3203
4618
  * @since IPCKit 1.3.0
4619
+ * @example Demo
4620
+ * ```tsx
4621
+ * ty.ipc.onDoorBellCallHangUp(e => {
4622
+ * console.log(e);
4623
+ * });
4624
+ * ```
3204
4625
  * @platform iOS Android
3205
4626
  */
3206
4627
  export function onDoorBellCallHangUp(
@@ -3211,6 +4632,12 @@ declare namespace ty.ipc {
3211
4632
  * 门铃呼叫挂断事件
3212
4633
  * @public
3213
4634
  * @since IPCKit 1.3.0
4635
+ * @example Demo
4636
+ * ```tsx
4637
+ * const listener = function (res) { console.log(res) }
4638
+ * ty.ipc.onDoorBellCallHangUp(listener)
4639
+ * ty.ipc.offDoorBellCallHangUp(listener)
4640
+ * ```
3214
4641
  * @platform iOS Android
3215
4642
  */
3216
4643
  export function offDoorBellCallHangUp(
@@ -3221,6 +4648,12 @@ declare namespace ty.ipc {
3221
4648
  * 其他终端挂断门铃呼叫事件
3222
4649
  * @public
3223
4650
  * @since IPCKit 1.3.0
4651
+ * @example Demo
4652
+ * ```tsx
4653
+ * ty.ipc.onDoorBellCallHangUpByOther(e => {
4654
+ * console.log(e);
4655
+ * });
4656
+ * ```
3224
4657
  * @platform iOS Android
3225
4658
  */
3226
4659
  export function onDoorBellCallHangUpByOther(
@@ -3231,6 +4664,12 @@ declare namespace ty.ipc {
3231
4664
  * 其他终端挂断门铃呼叫事件
3232
4665
  * @public
3233
4666
  * @since IPCKit 1.3.0
4667
+ * @example Demo
4668
+ * ```tsx
4669
+ * const listener = function (res) { console.log(res) }
4670
+ * ty.ipc.onDoorBellCallHangUpByOther(listener)
4671
+ * ty.ipc.offDoorBellCallHangUpByOther(listener)
4672
+ * ```
3234
4673
  * @platform iOS Android
3235
4674
  */
3236
4675
  export function offDoorBellCallHangUpByOther(
@@ -3241,6 +4680,12 @@ declare namespace ty.ipc {
3241
4680
  * 取消门铃呼叫事件
3242
4681
  * @public
3243
4682
  * @since IPCKit 1.3.0
4683
+ * @example Demo
4684
+ * ```tsx
4685
+ * ty.ipc.onDoorBellCallCancel(e => {
4686
+ * console.log(e);
4687
+ * });
4688
+ * ```
3244
4689
  * @platform iOS Android
3245
4690
  */
3246
4691
  export function onDoorBellCallCancel(
@@ -3251,75 +4696,87 @@ declare namespace ty.ipc {
3251
4696
  * 取消门铃呼叫事件
3252
4697
  * @public
3253
4698
  * @since IPCKit 1.3.0
4699
+ * @example Demo
4700
+ * ```tsx
4701
+ * const listener = function (res) { console.log(res) }
4702
+ * ty.ipc.onDoorBellCallCancel(listener)
4703
+ * ty.ipc.offDoorBellCallCancel(listener)
4704
+ * ```
3254
4705
  * @platform iOS Android
3255
4706
  */
3256
4707
  export function offDoorBellCallCancel(
3257
4708
  listener: (params: DoorbellCallEventResponse) => void
3258
4709
  ): void
3259
4710
 
3260
- /** @since IPCKit 1.2.0 */
4711
+ /**
4712
+ * 云存储签名请求参数
4713
+ * @since IPCKit 1.2.0
4714
+ */
3261
4715
  export interface CloudStorageSignatureParams {
3262
4716
  /**
3263
- * file path
4717
+ * 文件路径
3264
4718
  * @since IPCKit 1.2.0
3265
4719
  */
3266
4720
  path: string
3267
4721
  /**
3268
- * expiration
4722
+ * 签名过期时间
3269
4723
  * @since IPCKit 1.2.0
3270
4724
  */
3271
4725
  expiration: string
3272
4726
  /**
3273
- * region
4727
+ * 存储区域
3274
4728
  * @since IPCKit 1.2.0
3275
4729
  */
3276
4730
  region: string
3277
4731
  /**
3278
- * token
4732
+ * 临时访问令牌
3279
4733
  * @since IPCKit 1.2.0
3280
4734
  */
3281
4735
  token: string
3282
4736
  /**
3283
- * sk
4737
+ * 密钥(Secret Key)
3284
4738
  * @since IPCKit 1.2.0
3285
4739
  */
3286
4740
  sk: string
3287
4741
  /**
3288
- * provider
4742
+ * 云存储服务商
3289
4743
  * @since IPCKit 1.2.0
3290
4744
  */
3291
4745
  provider: string
3292
4746
  /**
3293
- * endpoint
4747
+ * 服务端点地址
3294
4748
  * @since IPCKit 1.2.0
3295
4749
  */
3296
4750
  endpoint: string
3297
4751
  /**
3298
- * ak
4752
+ * 访问密钥(Access Key)
3299
4753
  * @since IPCKit 1.2.0
3300
4754
  */
3301
4755
  ak: string
3302
4756
  /**
3303
- * bucket
4757
+ * 存储桶名称
3304
4758
  * @since IPCKit 1.2.0
3305
4759
  */
3306
4760
  bucket: string
3307
4761
  }
3308
4762
 
3309
- /** @since IPCKit 1.2.0 */
4763
+ /**
4764
+ * 云存储签名响应结果
4765
+ * @since IPCKit 1.2.0
4766
+ */
3310
4767
  export interface CloudStorageSignatureResponse {
3311
4768
  /**
3312
- * signed url
4769
+ * 已签名的访问 URL
3313
4770
  * @since IPCKit 1.2.0
3314
4771
  */
3315
4772
  signedUrl: string
3316
4773
  }
3317
4774
 
3318
- /** @since IPCKit 6.3.1 */
4775
+ /** @since IPCKit 6.3.11 */
3319
4776
  export interface MessageCreateViewModel {
3320
4777
  /**
3321
4778
  * 创建成功
3322
- * @since IPCKit 6.3.1
4779
+ * @since IPCKit 6.3.11
3323
4780
  */
3324
4781
  success: boolean
3325
4782
  }
@@ -3545,7 +5002,7 @@ declare namespace ty.ipc {
3545
5002
  */
3546
5003
  url: string
3547
5004
  /**
3548
- * 保存路径
5005
+ * 下载成功后的保存路径
3549
5006
  * @since IPCKit 5.15.3
3550
5007
  */
3551
5008
  path: string
@@ -3568,7 +5025,10 @@ declare namespace ty.ipc {
3568
5025
 
3569
5026
  /** @since IPCKit 5.16.0 */
3570
5027
  export interface CloudPlayBackDownloadSuccessModel {
3571
- /** @since IPCKit 5.16.0 */
5028
+ /**
5029
+ * 视频保存路径
5030
+ * @since IPCKit 5.16.0
5031
+ */
3572
5032
  path: string
3573
5033
  }
3574
5034
 
@@ -3718,7 +5178,7 @@ declare namespace ty.ipc {
3718
5178
  */
3719
5179
  identifier: string
3720
5180
  /**
3721
- * download url
5181
+ * 主题类型,默认 0
3722
5182
  * @since IPCKit 6.1.2
3723
5183
  * @defaultValue 0
3724
5184
  */
@@ -3806,7 +5266,7 @@ declare namespace ty.ipc {
3806
5266
  */
3807
5267
  businessType?: string
3808
5268
  /**
3809
- * content type, defaul is image/jpeg
5269
+ * content type, default is image/jpeg
3810
5270
  * @since IPCKit 6.1.2
3811
5271
  */
3812
5272
  contentType?: string
@@ -3846,6 +5306,235 @@ declare namespace ty.ipc {
3846
5306
  url: string
3847
5307
  }
3848
5308
 
5309
+ /** @since IPCKit 7.8.1 */
5310
+ export interface AIFrameFeatureScopeModel {
5311
+ /**
5312
+ * whether ai frame feature takes effect in preview
5313
+ * @since IPCKit 7.8.1
5314
+ */
5315
+ inPreview: boolean
5316
+ /**
5317
+ * whether ai frame feature takes effect in message
5318
+ * @since IPCKit 7.8.1
5319
+ */
5320
+ inMessage: boolean
5321
+ /**
5322
+ * whether ai frame feature takes effect in playback
5323
+ * @since IPCKit 7.8.1
5324
+ */
5325
+ inPlayback: boolean
5326
+ /**
5327
+ * whether ai frame feature takes effect in cloud data
5328
+ * @since IPCKit 7.8.1
5329
+ */
5330
+ inCloudData: boolean
5331
+ }
5332
+
5333
+ /** @since IPCKit 7.8.1 */
5334
+ export interface AIFrameFeatureSwitchModel {
5335
+ /**
5336
+ * super resolution model status, 0: off, 1: on
5337
+ * @since IPCKit 7.8.1
5338
+ */
5339
+ srModelStatus: number
5340
+ /**
5341
+ * light enhancement model status, 0: off, 1: on
5342
+ * @since IPCKit 7.8.1
5343
+ */
5344
+ lightModelStatus: number
5345
+ /**
5346
+ * filter status, 0: original, 1: vibrant, 2: fresh, 3: texture
5347
+ * @since IPCKit 7.8.1
5348
+ */
5349
+ filterStatus: number
5350
+ }
5351
+
5352
+ /** @since IPCKit 7.8.1 */
5353
+ export interface AIFrameFeatureConfigModel {
5354
+ /**
5355
+ * take effect scope config
5356
+ * @since IPCKit 7.8.1
5357
+ */
5358
+ scope: AIFrameFeatureScopeModel
5359
+ /**
5360
+ * ai feature switch config
5361
+ * @since IPCKit 7.8.1
5362
+ */
5363
+ feature: AIFrameFeatureSwitchModel
5364
+ /**
5365
+ * whether export processed images/videos
5366
+ * @since IPCKit 7.8.1
5367
+ */
5368
+ exportEnabled: boolean
5369
+ }
5370
+
5371
+ /** @since IPCKit 7.8.1 */
5372
+ export interface SetAIFrameFeatureParams {
5373
+ /**
5374
+ * devId 设备id
5375
+ * @since IPCKit 7.8.1
5376
+ */
5377
+ devId: string
5378
+ /**
5379
+ * whether smart picture quality is enabled
5380
+ * @since IPCKit 7.8.1
5381
+ */
5382
+ enabled: boolean
5383
+ /**
5384
+ * 场景(可选):业务层定义 scope,inPreview(小程序,RN),inCloudData(云存储),inPlayback(SD卡),inMessage(IPC/公版消息中心,安全守护)
5385
+ * @since IPCKit 7.8.1
5386
+ */
5387
+ scene?: string
5388
+ /**
5389
+ * ai frame feature config
5390
+ * @since IPCKit 7.8.1
5391
+ */
5392
+ aiFrameFeature: AIFrameFeatureConfigModel
5393
+ }
5394
+
5395
+ /** @since IPCKit 7.8.1 */
5396
+ export interface SetAIFrameFeatureResult {
5397
+ /**
5398
+ * request ID
5399
+ * @since IPCKit 7.8.1
5400
+ */
5401
+ requestId: string
5402
+ /**
5403
+ * preview absolute local path
5404
+ * @since IPCKit 7.8.1
5405
+ */
5406
+ localPath: string
5407
+ /**
5408
+ * thingfile:// preview URI
5409
+ * @since IPCKit 7.8.1
5410
+ */
5411
+ thingfileUri: string
5412
+ /**
5413
+ * ai frame feature config
5414
+ * @since IPCKit 7.8.1
5415
+ */
5416
+ aiFrameFeature: AIFrameFeatureConfigModel
5417
+ }
5418
+
5419
+ /** @since IPCKit 7.8.1 */
5420
+ export interface GetAIFrameFeatureParams {
5421
+ /**
5422
+ * devId 设备id
5423
+ * @since IPCKit 7.8.1
5424
+ */
5425
+ devId: string
5426
+ }
5427
+
5428
+ /** @since IPCKit 7.8.1 */
5429
+ export interface AIFrameFeatureCacheModel {
5430
+ /**
5431
+ * take effect scope config
5432
+ * @since IPCKit 7.8.1
5433
+ */
5434
+ scope?: AIFrameFeatureScopeModel
5435
+ /**
5436
+ * ai feature switch config
5437
+ * @since IPCKit 7.8.1
5438
+ */
5439
+ feature?: AIFrameFeatureSwitchModel
5440
+ /**
5441
+ * whether export processed images/videos
5442
+ * @since IPCKit 7.8.1
5443
+ */
5444
+ exportEnabled?: boolean
5445
+ }
5446
+
5447
+ /** @since IPCKit 7.8.1 */
5448
+ export interface GetAIFrameFeatureResult {
5449
+ /**
5450
+ * whether smart picture quality is enabled
5451
+ * @since IPCKit 7.8.1
5452
+ */
5453
+ enabled: boolean
5454
+ /**
5455
+ * ai frame feature config
5456
+ * @since IPCKit 7.8.1
5457
+ */
5458
+ aiFrameFeature: AIFrameFeatureCacheModel
5459
+ /**
5460
+ * SmartImageQualityPreviewFields 与入参一致时可带,便于小程序去重
5461
+ * @since IPCKit 7.8.1
5462
+ */
5463
+ requestId?: string
5464
+ /**
5465
+ * SmartImageQualityPreviewFields App 沙箱内 增强后 预览图绝对路径(或团队约定的可读路径)
5466
+ * @since IPCKit 7.8.1
5467
+ */
5468
+ localPath?: string
5469
+ /**
5470
+ * SmartImageQualityPreviewFields thingfile:// 形式预览图地址(可选;若 Uni 侧需 thingfile:// 形式,可复用现有拼接规则,参考 startDownloadMessageVideoForComposition)
5471
+ * @since IPCKit 7.8.1
5472
+ */
5473
+ thingfileUri?: string
5474
+ }
5475
+
5476
+ /** @since IPCKit 7.8.1 */
5477
+ export interface GetSmartImageQualityStateParams {
5478
+ /**
5479
+ * devId 设备id
5480
+ * @since IPCKit 7.8.1
5481
+ */
5482
+ devId: string
5483
+ /**
5484
+ * 场景(可选):'PREVIEW_PANEL' | 'SETTINGS' | 'MESSAGE'
5485
+ * @since IPCKit 7.8.1
5486
+ */
5487
+ scene?: string
5488
+ }
5489
+
5490
+ /** @since IPCKit 7.8.1 */
5491
+ export interface SmartImageQualityState {
5492
+ /**
5493
+ * 是否购买了云存储;true 且 SmartImageQualityState 缓存已创建时 trialRemainingSec 直接置 0(走试用结束逻辑)
5494
+ * @since IPCKit 7.8.1
5495
+ */
5496
+ isPurchase: boolean
5497
+ /**
5498
+ * 三态:
5499
+ * 0 = SmartImageQualityState 缓存未创建
5500
+ * 1 = 开(aiFrameFeature 缓存已创建,且 ty.getAIFrameFeature 的 enabled 与对应 scope 均为开)
5501
+ * 2 = 关(aiFrameFeature 缓存已创建,但 enabled 为关,或 enabled 开但 scope 关)
5502
+ * @since IPCKit 7.8.1
5503
+ */
5504
+ buttonState: number
5505
+ /**
5506
+ * 试用剩余秒数。约定 TRIAL_MAX_SEC=300:
5507
+ * 300 = 未试用
5508
+ * 0 < x < 300 = 试用中
5509
+ * 0 = 试用结束
5510
+ * @since IPCKit 7.8.1
5511
+ */
5512
+ trialRemainingSec: number
5513
+ /**
5514
+ * 是否允许跳进设置页(虚拟设备等 false)
5515
+ * @since IPCKit 7.8.1
5516
+ */
5517
+ canOpenSettings: boolean
5518
+ }
5519
+
5520
+ /** @since IPCKit 7.8.1 */
5521
+ export interface SetTrailFinishParams {
5522
+ /**
5523
+ * devId 设备id
5524
+ * @since IPCKit 7.8.1
5525
+ */
5526
+ devId: string
5527
+ }
5528
+
5529
+ /** @since IPCKit 7.8.1 */
5530
+ export interface SetTrailFinishResult {
5531
+ /**
5532
+ * 操作是否成功
5533
+ * @since IPCKit 7.8.1
5534
+ */
5535
+ isSuccess: boolean
5536
+ }
5537
+
3849
5538
  /** @since IPCKit 6.1.2 */
3850
5539
  export interface RemoveSnapshotParams {
3851
5540
  /**
@@ -3858,7 +5547,7 @@ declare namespace ty.ipc {
3858
5547
  /** @since IPCKit 6.1.2 */
3859
5548
  export interface DownloadEncryptionImageParams {
3860
5549
  /**
3861
- * 图片连接
5550
+ * 图片链接
3862
5551
  * @since IPCKit 6.1.2
3863
5552
  */
3864
5553
  url: string
@@ -3873,7 +5562,7 @@ declare namespace ty.ipc {
3873
5562
  */
3874
5563
  deviceId: string
3875
5564
  /**
3876
- * fileName
5565
+ * 保存的文件名
3877
5566
  * @since IPCKit 6.1.2
3878
5567
  */
3879
5568
  fileName: string
@@ -3881,7 +5570,10 @@ declare namespace ty.ipc {
3881
5570
 
3882
5571
  /** @since IPCKit 6.1.2 */
3883
5572
  export interface StringCallbackClass {
3884
- /** @since IPCKit 6.1.2 */
5573
+ /**
5574
+ * 文件路径
5575
+ * @since IPCKit 6.1.2
5576
+ */
3885
5577
  path: string
3886
5578
  }
3887
5579
 
@@ -3916,7 +5608,7 @@ declare namespace ty.ipc {
3916
5608
  */
3917
5609
  deviceId: string
3918
5610
  /**
3919
- * 路径
5611
+ * 视频路径
3920
5612
  * @since IPCKit 6.1.0
3921
5613
  */
3922
5614
  path: string
@@ -4003,7 +5695,7 @@ declare namespace ty.ipc {
4003
5695
  /** @since IPCKit 6.3.1 */
4004
5696
  export interface DownloadVideoSuccessModel {
4005
5697
  /**
4006
- * file path
5698
+ * 云存下载完成后保存路径
4007
5699
  * @since IPCKit 6.3.1
4008
5700
  */
4009
5701
  path: string
@@ -4132,7 +5824,7 @@ declare namespace ty.ipc {
4132
5824
  /** @since IPCKit 6.2.0 */
4133
5825
  export interface CurrentSupportedTalkModel {
4134
5826
  /**
4135
- * 设备支持的对讲模式。回掉方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。
5827
+ * 设备支持的对讲模式。回调方法的参数为数值型,0 未知;1:单向对讲;2:双向对讲。
4136
5828
  * @since IPCKit 6.2.0
4137
5829
  */
4138
5830
  talkbackMode: number
@@ -4274,6 +5966,15 @@ declare namespace ty.ipc {
4274
5966
  shown: boolean
4275
5967
  }
4276
5968
 
5969
+ /** @since IPCKit 7.8.1 */
5970
+ export interface IsLowPhoneResult {
5971
+ /**
5972
+ * 是否是低端机
5973
+ * @since IPCKit 7.8.1
5974
+ */
5975
+ isLow: boolean
5976
+ }
5977
+
4277
5978
  /** @since IPCKit 7.6.0 */
4278
5979
  export interface IsSupportLowPowerOptParams {
4279
5980
  /**
@@ -4526,6 +6227,25 @@ declare namespace ty.ipc {
4526
6227
  errorCode: number
4527
6228
  }
4528
6229
 
6230
+ /** @since IPCKit 7.8.0 */
6231
+ export interface ProtectSummaryDidReadParams {
6232
+ /**
6233
+ * devId 设备id
6234
+ * @since IPCKit 7.8.0
6235
+ */
6236
+ devId: string
6237
+ /**
6238
+ * eventTime 时间
6239
+ * @since IPCKit 7.8.0
6240
+ */
6241
+ eventTime: string
6242
+ /**
6243
+ * defaultDesc 描述
6244
+ * @since IPCKit 7.8.0
6245
+ */
6246
+ defaultDesc: string
6247
+ }
6248
+
4529
6249
  /** @since IPCKit 6.0.0 */
4530
6250
  export interface DeviceDpUpdateBody {
4531
6251
  /**
@@ -4544,7 +6264,10 @@ declare namespace ty.ipc {
4544
6264
  deviceId: string
4545
6265
  }
4546
6266
 
4547
- /** @since IPCKit 1.0.0 */
6267
+ /**
6268
+ * 路由跳转参数
6269
+ * @since IPCKit 1.0.0
6270
+ */
4548
6271
  export interface RouterParamsBean {
4549
6272
  /**
4550
6273
  * Router url: "thingSmart://" + 路由名 + "?" + 参数名1 + "=" + 参数1 + "&" + 参数名2 + "=" +参数2 +...
@@ -4554,7 +6277,10 @@ declare namespace ty.ipc {
4554
6277
  url: string
4555
6278
  }
4556
6279
 
4557
- /** @since IPCKit 1.0.0 */
6280
+ /**
6281
+ * 设备参数
6282
+ * @since IPCKit 1.0.0
6283
+ */
4558
6284
  export interface DeviceParamsBean {
4559
6285
  /**
4560
6286
  * 设备ID
@@ -4563,7 +6289,10 @@ declare namespace ty.ipc {
4563
6289
  devId: string
4564
6290
  }
4565
6291
 
4566
- /** @since IPCKit 1.3.0 */
6292
+ /**
6293
+ * 门铃呼叫配置参数
6294
+ * @since IPCKit 1.3.0
6295
+ */
4567
6296
  export interface DoorbellConfigParams {
4568
6297
  /**
4569
6298
  * 是否忽略门铃呼叫
@@ -4579,7 +6308,10 @@ declare namespace ty.ipc {
4579
6308
  doorbellRingTimeOut?: number
4580
6309
  }
4581
6310
 
4582
- /** @since IPCKit 1.3.0 */
6311
+ /**
6312
+ * 门铃呼叫操作参数
6313
+ * @since IPCKit 1.3.0
6314
+ */
4583
6315
  export interface DoorbellCallParams {
4584
6316
  /**
4585
6317
  * 门铃呼叫消息id
@@ -4588,7 +6320,10 @@ declare namespace ty.ipc {
4588
6320
  messageId: string
4589
6321
  }
4590
6322
 
4591
- /** @since IPCKit 1.3.0 */
6323
+ /**
6324
+ * 门铃呼叫事件响应
6325
+ * @since IPCKit 1.3.0
6326
+ */
4592
6327
  export interface DoorbellCallEventResponse {
4593
6328
  /**
4594
6329
  * 返回结果