@ray-js/api 0.5.10 → 0.5.11

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.
Files changed (50) hide show
  1. package/@types/BaseKit.d.ts +1009 -89
  2. package/@types/{TYKit.d.ts → BizKit.d.ts} +104 -41
  3. package/@types/DeviceKit.d.ts +1512 -176
  4. package/@types/MiniKit.d.ts +381 -26
  5. package/@types/all-kits.d.ts +1 -1
  6. package/lib/{BaseKit-2.3.11.d.ts → BaseKit-3.0.0.d.ts} +18 -2
  7. package/lib/{BaseKit-2.3.11.js → BaseKit-3.0.0.js} +18 -2
  8. package/lib/{TYKit-2.2.6.d.ts → BizKit-3.0.1.d.ts} +2 -1
  9. package/lib/{TYKit-2.2.6.js → BizKit-3.0.1.js} +2 -1
  10. package/lib/{DeviceKit-2.3.3.d.ts → DeviceKit-3.0.0.d.ts} +58 -18
  11. package/lib/{DeviceKit-2.3.3.js → DeviceKit-3.0.0.js} +140 -20
  12. package/lib/{MiniKit-2.4.3.d.ts → MiniKit-3.0.0.d.ts} +14 -0
  13. package/lib/{MiniKit-2.4.3.js → MiniKit-3.0.0.js} +14 -0
  14. package/lib/all-kits.d.ts +5 -5
  15. package/lib/all-kits.js +5 -5
  16. package/lib/getApp/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  17. package/lib/getApp/{index.tuya.js → index.thing.js} +0 -0
  18. package/lib/getBoundingClientRect/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  19. package/lib/getBoundingClientRect/{index.tuya.js → index.thing.js} +0 -0
  20. package/lib/getCurrentPages/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  21. package/lib/getCurrentPages/{index.tuya.js → index.thing.js} +0 -0
  22. package/lib/getElementById/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  23. package/lib/getElementById/{index.tuya.js → index.thing.js} +0 -0
  24. package/lib/getI18nInfo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  25. package/lib/getI18nInfo/{index.tuya.js → index.thing.js} +0 -0
  26. package/lib/hideTabBar/index.d.ts +1 -7
  27. package/lib/hideTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  28. package/lib/hideTabBar/{index.tuya.js → index.thing.js} +0 -0
  29. package/lib/navigateBack/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  30. package/lib/navigateBack/{index.tuya.js → index.thing.js} +0 -0
  31. package/lib/navigateTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  32. package/lib/navigateTo/{index.tuya.js → index.thing.js} +0 -0
  33. package/lib/reLaunch/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  34. package/lib/reLaunch/{index.tuya.js → index.thing.js} +0 -0
  35. package/lib/readFileSync/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  36. package/lib/readFileSync/{index.tuya.js → index.thing.js} +0 -0
  37. package/lib/redirectTo/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  38. package/lib/redirectTo/{index.tuya.js → index.thing.js} +0 -0
  39. package/lib/requestCloud/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  40. package/lib/requestCloud/{index.tuya.js → index.thing.js} +0 -0
  41. package/lib/setNavigationBarColor/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  42. package/lib/setNavigationBarColor/{index.tuya.js → index.thing.js} +0 -0
  43. package/lib/setNavigationBarTitle/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  44. package/lib/setNavigationBarTitle/{index.tuya.js → index.thing.js} +0 -0
  45. package/lib/showTabBar/index.d.ts +1 -7
  46. package/lib/showTabBar/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  47. package/lib/showTabBar/{index.tuya.js → index.thing.js} +0 -0
  48. package/lib/switchTab/{index.tuya.d.ts → index.thing.d.ts} +0 -0
  49. package/lib/switchTab/{index.tuya.js → index.thing.js} +0 -0
  50. package/package.json +5 -9
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * MiniKit
3
3
  *
4
- * @version 2.4.3
4
+ * @version 3.0.0
5
5
  */
6
6
  declare namespace ty {
7
7
  /**
@@ -50,6 +50,86 @@ declare namespace ty {
50
50
  }) => void
51
51
  }): void
52
52
 
53
+ /**
54
+ * 获取权限的配置信息
55
+ */
56
+ export function getPermissionConfig(params?: {
57
+ complete?: () => void
58
+ success?: (params: {
59
+ /** 权限相关配置信息 */
60
+ result: Record<string, any>
61
+ }) => void
62
+ fail?: (params: {
63
+ errorMsg: string
64
+ errorCode: string | number
65
+ innerError: {
66
+ errorCode: string | number
67
+ errorMsg: string
68
+ }
69
+ }) => void
70
+ }): void
71
+
72
+ /**
73
+ * 获取权限的配置信息
74
+ */
75
+ export function getPermissionConfigSync(): {
76
+ /** 权限相关配置信息 */
77
+ result: Record<string, any>
78
+ }
79
+
80
+ /**
81
+ * 调起客户端小程序设置界面,返回用户设置的操作结果。
82
+ */
83
+ export function openSetting(params?: {
84
+ complete?: () => void
85
+ success?: (params: {
86
+ /** 用户授权设置信息 */
87
+ scope: Record<string, boolean>
88
+ }) => void
89
+ fail?: (params: {
90
+ errorMsg: string
91
+ errorCode: string | number
92
+ innerError: {
93
+ errorCode: string | number
94
+ errorMsg: string
95
+ }
96
+ }) => void
97
+ }): void
98
+
99
+ /**
100
+ * 设置调试模式
101
+ */
102
+ export function changeDebugMode(params: {
103
+ /** 调试模式开关 */
104
+ isEnable: boolean
105
+ complete?: () => void
106
+ success?: (params: null) => void
107
+ fail?: (params: {
108
+ errorMsg: string
109
+ errorCode: string | number
110
+ innerError: {
111
+ errorCode: string | number
112
+ errorMsg: string
113
+ }
114
+ }) => void
115
+ }): void
116
+
117
+ /**
118
+ * 打开帮助中心,默认:面板小程序会跳转到面板帮助中心,普通小程序会跳转到App帮助中心
119
+ */
120
+ export function openHelpCenter(params?: {
121
+ complete?: () => void
122
+ success?: (params: null) => void
123
+ fail?: (params: {
124
+ errorMsg: string
125
+ errorCode: string | number
126
+ innerError: {
127
+ errorCode: string | number
128
+ errorMsg: string
129
+ }
130
+ }) => void
131
+ }): void
132
+
53
133
  /**
54
134
  * 显示 tabBar 某一项的右上角的红点
55
135
  */
@@ -58,7 +138,14 @@ declare namespace ty {
58
138
  index: number
59
139
  complete?: () => void
60
140
  success?: (params: null) => void
61
- fail?: (params: {}) => void
141
+ fail?: (params: {
142
+ errorMsg: string
143
+ errorCode: string | number
144
+ innerError: {
145
+ errorCode: string | number
146
+ errorMsg: string
147
+ }
148
+ }) => void
62
149
  }): void
63
150
 
64
151
  /**
@@ -69,7 +156,14 @@ declare namespace ty {
69
156
  animation: boolean
70
157
  complete?: () => void
71
158
  success?: (params: null) => void
72
- fail?: (params: {}) => void
159
+ fail?: (params: {
160
+ errorMsg: string
161
+ errorCode: string | number
162
+ innerError: {
163
+ errorCode: string | number
164
+ errorMsg: string
165
+ }
166
+ }) => void
73
167
  }): void
74
168
 
75
169
  /**
@@ -86,7 +180,14 @@ declare namespace ty {
86
180
  borderStyle: string
87
181
  complete?: () => void
88
182
  success?: (params: null) => void
89
- fail?: (params: {}) => void
183
+ fail?: (params: {
184
+ errorMsg: string
185
+ errorCode: string | number
186
+ innerError: {
187
+ errorCode: string | number
188
+ errorMsg: string
189
+ }
190
+ }) => void
90
191
  }): void
91
192
 
92
193
  /**
@@ -103,7 +204,14 @@ declare namespace ty {
103
204
  selectedIconPath: string
104
205
  complete?: () => void
105
206
  success?: (params: null) => void
106
- fail?: (params: {}) => void
207
+ fail?: (params: {
208
+ errorMsg: string
209
+ errorCode: string | number
210
+ innerError: {
211
+ errorCode: string | number
212
+ errorMsg: string
213
+ }
214
+ }) => void
107
215
  }): void
108
216
 
109
217
  /**
@@ -116,7 +224,14 @@ declare namespace ty {
116
224
  text: string
117
225
  complete?: () => void
118
226
  success?: (params: null) => void
119
- fail?: (params: {}) => void
227
+ fail?: (params: {
228
+ errorMsg: string
229
+ errorCode: string | number
230
+ innerError: {
231
+ errorCode: string | number
232
+ errorMsg: string
233
+ }
234
+ }) => void
120
235
  }): void
121
236
 
122
237
  /**
@@ -129,7 +244,14 @@ declare namespace ty {
129
244
  text: string
130
245
  complete?: () => void
131
246
  success?: (params: null) => void
132
- fail?: (params: {}) => void
247
+ fail?: (params: {
248
+ errorMsg: string
249
+ errorCode: string | number
250
+ innerError: {
251
+ errorCode: string | number
252
+ errorMsg: string
253
+ }
254
+ }) => void
133
255
  }): void
134
256
 
135
257
  /**
@@ -140,7 +262,14 @@ declare namespace ty {
140
262
  index: number
141
263
  complete?: () => void
142
264
  success?: (params: null) => void
143
- fail?: (params: {}) => void
265
+ fail?: (params: {
266
+ errorMsg: string
267
+ errorCode: string | number
268
+ innerError: {
269
+ errorCode: string | number
270
+ errorMsg: string
271
+ }
272
+ }) => void
144
273
  }): void
145
274
 
146
275
  /**
@@ -151,7 +280,44 @@ declare namespace ty {
151
280
  animation: boolean
152
281
  complete?: () => void
153
282
  success?: (params: null) => void
154
- fail?: (params: {}) => void
283
+ fail?: (params: {
284
+ errorMsg: string
285
+ errorCode: string | number
286
+ innerError: {
287
+ errorCode: string | number
288
+ errorMsg: string
289
+ }
290
+ }) => void
291
+ }): void
292
+
293
+ /**
294
+ * 发起highway请求
295
+ */
296
+ export function apiRequestByHighway(params: {
297
+ /** api 名称 */
298
+ api: string
299
+ /** data 请求入参 */
300
+ data?: Record<string, any>
301
+ /** method 请求方法 */
302
+ method?: HighwayMethod
303
+ complete?: () => void
304
+ success?: (params: {
305
+ /**
306
+ * 请求结果
307
+ * thing_data_ 出参结构体, JSON序列化
308
+ */
309
+ thing_json_?: {}
310
+ /** 元数据 */
311
+ data: string
312
+ }) => void
313
+ fail?: (params: {
314
+ errorMsg: string
315
+ errorCode: string | number
316
+ innerError: {
317
+ errorCode: string | number
318
+ errorMsg: string
319
+ }
320
+ }) => void
155
321
  }): void
156
322
 
157
323
  /**
@@ -173,7 +339,7 @@ declare namespace ty {
173
339
  }): void
174
340
 
175
341
  /**
176
- * 退出当前小程序。必须有点击行为才能调用成功
342
+ * 退出当前小程序
177
343
  */
178
344
  export function exitMiniProgram(params?: {
179
345
  complete?: () => void
@@ -395,6 +561,133 @@ declare namespace ty {
395
561
  }) => void
396
562
  }): void
397
563
 
564
+ /**
565
+ * 隐藏右上角胶囊按钮
566
+ */
567
+ export function hideMenuButton(params?: {
568
+ complete?: () => void
569
+ success?: (params: null) => void
570
+ fail?: (params: {
571
+ errorMsg: string
572
+ errorCode: string | number
573
+ innerError: {
574
+ errorCode: string | number
575
+ errorMsg: string
576
+ }
577
+ }) => void
578
+ }): void
579
+
580
+ /**
581
+ * 显示右上角胶囊按钮
582
+ */
583
+ export function showMenuButton(params?: {
584
+ complete?: () => void
585
+ success?: (params: null) => void
586
+ fail?: (params: {
587
+ errorMsg: string
588
+ errorCode: string | number
589
+ innerError: {
590
+ errorCode: string | number
591
+ errorMsg: string
592
+ }
593
+ }) => void
594
+ }): void
595
+
596
+ /**
597
+ * 显示手机状态栏
598
+ */
599
+ export function showStatusBar(params?: {
600
+ complete?: () => void
601
+ success?: (params: null) => void
602
+ fail?: (params: {
603
+ errorMsg: string
604
+ errorCode: string | number
605
+ innerError: {
606
+ errorCode: string | number
607
+ errorMsg: string
608
+ }
609
+ }) => void
610
+ }): void
611
+
612
+ /**
613
+ * 隐藏手机状态栏
614
+ */
615
+ export function hideStatusBar(params?: {
616
+ complete?: () => void
617
+ success?: (params: null) => void
618
+ fail?: (params: {
619
+ errorMsg: string
620
+ errorCode: string | number
621
+ innerError: {
622
+ errorCode: string | number
623
+ errorMsg: string
624
+ }
625
+ }) => void
626
+ }): void
627
+
628
+ /**
629
+ * 关闭小部件
630
+ */
631
+ export function exitMiniWidget(params?: {
632
+ complete?: () => void
633
+ success?: (params: null) => void
634
+ fail?: (params: {
635
+ errorMsg: string
636
+ errorCode: string | number
637
+ innerError: {
638
+ errorCode: string | number
639
+ errorMsg: string
640
+ }
641
+ }) => void
642
+ }): void
643
+
644
+ /**
645
+ * 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
646
+ */
647
+ export function canOpenURL(params: {
648
+ /** 要打开的url */
649
+ url: string
650
+ complete?: () => void
651
+ success?: (params: {
652
+ /** 是否支持打开对应的url */
653
+ isCanOpen?: boolean
654
+ }) => void
655
+ fail?: (params: {
656
+ errorMsg: string
657
+ errorCode: string | number
658
+ innerError: {
659
+ errorCode: string | number
660
+ errorMsg: string
661
+ }
662
+ }) => void
663
+ }): void
664
+
665
+ /**
666
+ * 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
667
+ */
668
+ export function canOpenURLSync(openURLBean?: OpenURLBean): {
669
+ /** 是否支持打开对应的url */
670
+ isCanOpen?: boolean
671
+ }
672
+
673
+ /**
674
+ * 打开设备上的某个应用或可以处理URL的程序。
675
+ */
676
+ export function openURL(params: {
677
+ /** 要打开的url */
678
+ url: string
679
+ complete?: () => void
680
+ success?: (params: null) => void
681
+ fail?: (params: {
682
+ errorMsg: string
683
+ errorCode: string | number
684
+ innerError: {
685
+ errorCode: string | number
686
+ errorMsg: string
687
+ }
688
+ }) => void
689
+ }): void
690
+
398
691
  /**
399
692
  * 在当前页面显示导航条加载动画
400
693
  */
@@ -489,8 +782,8 @@ declare namespace ty {
489
782
  export function navigateTo(params: {
490
783
  /** 页面路径 */
491
784
  url: string
492
- /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
493
- delta?: number
785
+ /** 打开方式,支持全屏full,半屏half;默认全屏full */
786
+ type?: string
494
787
  complete?: () => void
495
788
  success?: (params: null) => void
496
789
  fail?: (params: {
@@ -506,9 +799,7 @@ declare namespace ty {
506
799
  /**
507
800
  * 关闭当前页面,返回上一页面或多级页面
508
801
  */
509
- export function navigateBack(params: {
510
- /** 页面路径 */
511
- url: string
802
+ export function navigateBack(params?: {
512
803
  /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
513
804
  delta?: number
514
805
  complete?: () => void
@@ -529,8 +820,8 @@ declare namespace ty {
529
820
  export function redirectTo(params: {
530
821
  /** 页面路径 */
531
822
  url: string
532
- /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
533
- delta?: number
823
+ /** 打开方式,支持全屏full,半屏half;默认全屏full */
824
+ type?: string
534
825
  complete?: () => void
535
826
  success?: (params: null) => void
536
827
  fail?: (params: {
@@ -549,8 +840,8 @@ declare namespace ty {
549
840
  export function reLaunch(params: {
550
841
  /** 页面路径 */
551
842
  url: string
552
- /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
553
- delta?: number
843
+ /** 打开方式,支持全屏full,半屏half;默认全屏full */
844
+ type?: string
554
845
  complete?: () => void
555
846
  success?: (params: null) => void
556
847
  fail?: (params: {
@@ -569,8 +860,8 @@ declare namespace ty {
569
860
  export function switchTab(params: {
570
861
  /** 页面路径 */
571
862
  url: string
572
- /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
573
- delta?: number
863
+ /** 打开方式,支持全屏full,半屏half;默认全屏full */
864
+ type?: string
574
865
  complete?: () => void
575
866
  success?: (params: null) => void
576
867
  fail?: (params: {
@@ -651,7 +942,14 @@ declare namespace ty {
651
942
  export function startPullDownRefresh(params?: {
652
943
  complete?: () => void
653
944
  success?: (params: null) => void
654
- fail?: (params: {}) => void
945
+ fail?: (params: {
946
+ errorMsg: string
947
+ errorCode: string | number
948
+ innerError: {
949
+ errorCode: string | number
950
+ errorMsg: string
951
+ }
952
+ }) => void
655
953
  }): void
656
954
 
657
955
  /**
@@ -660,7 +958,14 @@ declare namespace ty {
660
958
  export function stopPullDownRefresh(params?: {
661
959
  complete?: () => void
662
960
  success?: (params: null) => void
663
- fail?: (params: {}) => void
961
+ fail?: (params: {
962
+ errorMsg: string
963
+ errorCode: string | number
964
+ innerError: {
965
+ errorCode: string | number
966
+ errorMsg: string
967
+ }
968
+ }) => void
664
969
  }): void
665
970
 
666
971
  /**
@@ -669,7 +974,7 @@ declare namespace ty {
669
974
  export function onNativeEvent(listener: (params: NativeUploadData) => void): void
670
975
 
671
976
  /**
672
- * 原生上报的事件
977
+ * 取消监听:原生上报的事件
673
978
  */
674
979
  export function offNativeEvent(listener: (params: NativeUploadData) => void): void
675
980
 
@@ -711,6 +1016,11 @@ declare namespace ty {
711
1016
  title: string
712
1017
  }
713
1018
 
1019
+ export type OpenURLBean = {
1020
+ /** 要打开的url */
1021
+ url: string
1022
+ }
1023
+
714
1024
  export type NavigationBarColorAnimationInfo = {
715
1025
  /** 动画变化时间,单位 ms */
716
1026
  duration?: number
@@ -744,6 +1054,41 @@ declare namespace ty {
744
1054
 
745
1055
  export type Object = {}
746
1056
 
1057
+ export type NativeDisabledParam = {
1058
+ /** 禁用异层渲染手势分发 */
1059
+ nativeDisabled: boolean
1060
+ /** 需要禁止或启用手势分发的页面id */
1061
+ pageId: string
1062
+ }
1063
+
1064
+ export type NativeParams = {
1065
+ /** 原生组件类型 */
1066
+ type?: number
1067
+ /** 原生组件的ApiName */
1068
+ apiName: string
1069
+ /** 异层渲染原生视图id */
1070
+ id: string
1071
+ /** 小程序页面id */
1072
+ pageId: string
1073
+ /** 参数等 */
1074
+ params: Record<string, string>
1075
+ }
1076
+
1077
+ export type PermissionConfig = {
1078
+ /** 权限相关配置信息 */
1079
+ result: Record<string, any>
1080
+ }
1081
+
1082
+ export type AuthSetting = {
1083
+ /** 用户授权设置信息 */
1084
+ scope: Record<string, boolean>
1085
+ }
1086
+
1087
+ export type DebugModeSetting = {
1088
+ /** 调试模式开关 */
1089
+ isEnable: boolean
1090
+ }
1091
+
747
1092
  export type RedDotParams = {
748
1093
  /** tabBar 的哪一项,从左边算起 */
749
1094
  index: number
@@ -795,9 +1140,9 @@ declare namespace ty {
795
1140
  export type HighwayRequestResponse = {
796
1141
  /**
797
1142
  * 请求结果
798
- * ty_data_ 出参结构体, JSON序列化
1143
+ * thing_data_ 出参结构体, JSON序列化
799
1144
  */
800
- ty_json_?: {}
1145
+ thing_json_?: {}
801
1146
  /** 元数据 */
802
1147
  data: string
803
1148
  }
@@ -855,6 +1200,11 @@ declare namespace ty {
855
1200
  pageOrientation: string
856
1201
  }
857
1202
 
1203
+ export type CanOpenURLResultBean = {
1204
+ /** 是否支持打开对应的url */
1205
+ isCanOpen?: boolean
1206
+ }
1207
+
858
1208
  export type NavigationBarLoadingParams = {
859
1209
  /** 页面标题 */
860
1210
  title: string
@@ -872,6 +1222,11 @@ declare namespace ty {
872
1222
  export type RouteBean = {
873
1223
  /** 页面路径 */
874
1224
  url: string
1225
+ /** 打开方式,支持全屏full,半屏half;默认全屏full */
1226
+ type?: string
1227
+ }
1228
+
1229
+ export type BackRouteBean = {
875
1230
  /** 返回的页面数,如果 delta 大于现有页面数,则返回到首页 */
876
1231
  delta?: number
877
1232
  }
@@ -1,4 +1,4 @@
1
1
  /// <reference path="./BaseKit.d.ts" />
2
+ /// <reference path="./BizKit.d.ts" />
2
3
  /// <reference path="./DeviceKit.d.ts" />
3
4
  /// <reference path="./MiniKit.d.ts" />
4
- /// <reference path="./TYKit.d.ts" />
@@ -1,6 +1,7 @@
1
1
  /// <reference path="../@types/BaseKit.d.ts" />
2
2
  export declare const stopAccelerometer: typeof ty.stopAccelerometer;
3
3
  export declare const startAccelerometer: typeof ty.startAccelerometer;
4
+ export declare const getAudioFileDuration: typeof ty.getAudioFileDuration;
4
5
  export declare const authorize: typeof ty.authorize;
5
6
  export declare const authorizeStatus: typeof ty.authorizeStatus;
6
7
  export declare const navigateToMiniProgram: typeof ty.navigateToMiniProgram;
@@ -8,13 +9,15 @@ export declare const startCompass: typeof ty.startCompass;
8
9
  export declare const stopCompass: typeof ty.stopCompass;
9
10
  export declare const startDeviceMotionListening: typeof ty.startDeviceMotionListening;
10
11
  export declare const stopDeviceMotionListening: typeof ty.stopDeviceMotionListening;
11
- export declare const readFile: typeof ty.readFile;
12
- export declare const getTempDirectory: typeof ty.getTempDirectory;
13
12
  export declare const startGyroscope: typeof ty.startGyroscope;
14
13
  export declare const stopGyroscope: typeof ty.stopGyroscope;
15
14
  export declare const chooseImage: typeof ty.chooseImage;
15
+ export declare const chooseMedia: typeof ty.chooseMedia;
16
16
  export declare const chooseCropImage: typeof ty.chooseCropImage;
17
17
  export declare const previewImage: typeof ty.previewImage;
18
+ export declare const getImageInfo: typeof ty.getImageInfo;
19
+ export declare const getVideoInfo: typeof ty.getVideoInfo;
20
+ export declare const saveVideoToPhotosAlbum: typeof ty.saveVideoToPhotosAlbum;
18
21
  export declare const showToast: typeof ty.showToast;
19
22
  export declare const showModal: typeof ty.showModal;
20
23
  export declare const showLoading: typeof ty.showLoading;
@@ -24,8 +27,17 @@ export declare const hideLoading: typeof ty.hideLoading;
24
27
  export declare const makePhoneCall: typeof ty.makePhoneCall;
25
28
  export declare const setClipboardData: typeof ty.setClipboardData;
26
29
  export declare const getClipboardData: typeof ty.getClipboardData;
30
+ export declare const updateVolume: typeof ty.updateVolume;
31
+ export declare const getCurrentVolume: typeof ty.getCurrentVolume;
32
+ export declare const registerSystemVolumeChange: typeof ty.registerSystemVolumeChange;
33
+ export declare const unRegisterSystemVolumeChange: typeof ty.unRegisterSystemVolumeChange;
34
+ export declare const getSystemSetting: typeof ty.getSystemSetting;
35
+ export declare const getModileDeviceInfo: typeof ty.getDeviceInfo;
27
36
  export declare const getSystemInfo: typeof ty.getSystemInfo;
28
37
  export declare const getSystemInfoSync: typeof ty.getSystemInfoSync;
38
+ export declare const getWifiList: typeof ty.getWifiList;
39
+ export declare const getConnectedWifi: typeof ty.getConnectedWifi;
40
+ export declare const openSystemBluetoothSetting: typeof ty.openSystemBluetoothSetting;
29
41
  export declare const getNetworkType: typeof ty.getNetworkType;
30
42
  export declare const setScreenBrightness: typeof ty.setScreenBrightness;
31
43
  export declare const getScreenBrightness: typeof ty.getScreenBrightness;
@@ -41,6 +53,10 @@ export declare const removeStorage: typeof ty.removeStorage;
41
53
  export declare const removeStorageSync: typeof ty.removeStorageSync;
42
54
  export declare const clearStorage: typeof ty.clearStorage;
43
55
  export declare const clearStorageSync: typeof ty.clearStorageSync;
56
+ export declare const onSystemVolumeChangeEvent: typeof ty.onSystemVolumeChangeEvent;
57
+ export declare const offSystemVolumeChangeEvent: typeof ty.offSystemVolumeChangeEvent;
58
+ export declare const onGetWifiList: typeof ty.onGetWifiList;
59
+ export declare const offGetWifiList: typeof ty.offGetWifiList;
44
60
  export declare const onRecordingEvent: typeof ty.onRecordingEvent;
45
61
  export declare const offRecordingEvent: typeof ty.offRecordingEvent;
46
62
  export declare const onAccelerometerChange: typeof ty.onAccelerometerChange;
@@ -2,6 +2,7 @@
2
2
  import { factory } from './utils';
3
3
  export var stopAccelerometer = factory('stopAccelerometer');
4
4
  export var startAccelerometer = factory('startAccelerometer');
5
+ export var getAudioFileDuration = factory('getAudioFileDuration');
5
6
  export var authorize = factory('authorize');
6
7
  export var authorizeStatus = factory('authorizeStatus');
7
8
  export var navigateToMiniProgram = factory('navigateToMiniProgram');
@@ -9,13 +10,15 @@ export var startCompass = factory('startCompass');
9
10
  export var stopCompass = factory('stopCompass');
10
11
  export var startDeviceMotionListening = factory('startDeviceMotionListening');
11
12
  export var stopDeviceMotionListening = factory('stopDeviceMotionListening');
12
- export var readFile = factory('readFile');
13
- export var getTempDirectory = factory('getTempDirectory');
14
13
  export var startGyroscope = factory('startGyroscope');
15
14
  export var stopGyroscope = factory('stopGyroscope');
16
15
  export var chooseImage = factory('chooseImage');
16
+ export var chooseMedia = factory('chooseMedia');
17
17
  export var chooseCropImage = factory('chooseCropImage');
18
18
  export var previewImage = factory('previewImage');
19
+ export var getImageInfo = factory('getImageInfo');
20
+ export var getVideoInfo = factory('getVideoInfo');
21
+ export var saveVideoToPhotosAlbum = factory('saveVideoToPhotosAlbum');
19
22
  export var showToast = factory('showToast');
20
23
  export var showModal = factory('showModal');
21
24
  export var showLoading = factory('showLoading');
@@ -25,8 +28,17 @@ export var hideLoading = factory('hideLoading');
25
28
  export var makePhoneCall = factory('makePhoneCall');
26
29
  export var setClipboardData = factory('setClipboardData');
27
30
  export var getClipboardData = factory('getClipboardData');
31
+ export var updateVolume = factory('updateVolume');
32
+ export var getCurrentVolume = factory('getCurrentVolume');
33
+ export var registerSystemVolumeChange = factory('registerSystemVolumeChange');
34
+ export var unRegisterSystemVolumeChange = factory('unRegisterSystemVolumeChange');
35
+ export var getSystemSetting = factory('getSystemSetting');
36
+ export var getModileDeviceInfo = factory('getDeviceInfo');
28
37
  export var getSystemInfo = factory('getSystemInfo');
29
38
  export var getSystemInfoSync = factory('getSystemInfoSync');
39
+ export var getWifiList = factory('getWifiList');
40
+ export var getConnectedWifi = factory('getConnectedWifi');
41
+ export var openSystemBluetoothSetting = factory('openSystemBluetoothSetting');
30
42
  export var getNetworkType = factory('getNetworkType');
31
43
  export var setScreenBrightness = factory('setScreenBrightness');
32
44
  export var getScreenBrightness = factory('getScreenBrightness');
@@ -42,6 +54,10 @@ export var removeStorage = factory('removeStorage');
42
54
  export var removeStorageSync = factory('removeStorageSync');
43
55
  export var clearStorage = factory('clearStorage');
44
56
  export var clearStorageSync = factory('clearStorageSync');
57
+ export var onSystemVolumeChangeEvent = factory('onSystemVolumeChangeEvent');
58
+ export var offSystemVolumeChangeEvent = factory('offSystemVolumeChangeEvent');
59
+ export var onGetWifiList = factory('onGetWifiList');
60
+ export var offGetWifiList = factory('offGetWifiList');
45
61
  export var onRecordingEvent = factory('onRecordingEvent');
46
62
  export var offRecordingEvent = factory('offRecordingEvent');
47
63
  export var onAccelerometerChange = factory('onAccelerometerChange');
@@ -1,4 +1,4 @@
1
- /// <reference path="../@types/TYKit.d.ts" />
1
+ /// <reference path="../@types/BizKit.d.ts" />
2
2
  export declare const apiRequestByAtop: typeof ty.apiRequestByAtop;
3
3
  export declare const event: typeof ty.event;
4
4
  export declare const beginEvent: typeof ty.beginEvent;
@@ -24,6 +24,7 @@ export declare const goDeviceDetail: typeof ty.goDeviceDetail;
24
24
  export declare const goDeviceAlarm: typeof ty.goDeviceAlarm;
25
25
  export declare const share: typeof ty.share;
26
26
  export declare const getShareChannelList: typeof ty.getShareChannelList;
27
+ export declare const getUserInfo: typeof ty.getUserInfo;
27
28
  export declare const resizeImage: typeof ty.resizeImage;
28
29
  export declare const rotateImage: typeof ty.rotateImage;
29
30
  export declare const saveToAlbum: typeof ty.saveToAlbum;