@dcloudio/uni-app-x 0.7.60 → 0.7.61

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 (107) hide show
  1. package/package.json +2 -2
  2. package/types/app.d.ts +14 -7
  3. package/types/native/IUniElement.d.ts +1 -1
  4. package/types/native/UniCustomElement.d.ts +2 -2
  5. package/types/native/UniInputChangeEvent.d.ts +31 -0
  6. package/types/native/UniPage.d.ts +10 -2
  7. package/types/native/global.d.ts +12 -0
  8. package/types/native/index.d.ts +1 -0
  9. package/types/uni/uts-plugin-api/global.d.ts +1 -0
  10. package/types/uni/uts-plugin-api/index.d.ts +1 -0
  11. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +77 -433
  12. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +2 -0
  13. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +16 -0
  14. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +8 -0
  15. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +561 -131
  16. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +17 -34
  17. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +4 -8
  18. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +1 -2
  19. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +5 -0
  20. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -4
  21. package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +3 -1
  22. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +29 -58
  23. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +36 -72
  24. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +3 -1
  25. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +1 -1
  26. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +9 -7
  27. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +8 -7
  28. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
  29. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +84 -0
  30. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +47 -0
  31. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +1 -1
  32. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/global.d.ts +38 -0
  33. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/index.d.ts +19 -0
  34. package/types/uni/uts-plugin-api/lib/uni-location/utssdk/interface.d.ts +1783 -107
  35. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +13 -18
  36. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +68 -208
  37. package/types/uni/uts-plugin-api/lib/uni-modal/utssdk/interface.d.ts +2 -4
  38. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +105 -107
  39. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/global.d.ts +4 -0
  40. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/index.d.ts +2 -0
  41. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +359 -66
  42. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/global.d.ts +16 -0
  43. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/index.d.ts +8 -0
  44. package/types/uni/uts-plugin-api/lib/uni-oauth-weixin/utssdk/interface.d.ts +40 -0
  45. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +10 -15
  46. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +86 -94
  47. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +25 -26
  48. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +30 -60
  49. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +32 -64
  50. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +298 -4
  51. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +4 -0
  52. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +2 -0
  53. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +347 -10
  54. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +3 -1
  55. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +3 -1
  56. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +25 -33
  57. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +0 -2
  58. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +0 -1
  59. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +21 -33
  60. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1 -0
  61. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +23 -46
  62. package/types/uni/uts-plugin-biz/global.d.ts +11 -0
  63. package/types/uni/uts-plugin-biz/index.d.ts +11 -0
  64. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +60 -3
  65. package/types/uni/uts-plugin-biz/lib/uni-facialVerify/utssdk/interface.d.ts +6 -0
  66. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/global.d.ts +52 -0
  67. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/index.d.ts +25 -0
  68. package/types/uni/uts-plugin-biz/lib/uni-live-player/utssdk/interface.d.ts +445 -0
  69. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/global.d.ts +48 -0
  70. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/index.d.ts +23 -0
  71. package/types/uni/uts-plugin-biz/lib/uni-live-pusher/utssdk/interface.d.ts +138 -0
  72. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +28 -12
  73. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/global.d.ts +8 -0
  74. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/index.d.ts +4 -0
  75. package/types/uni/uts-plugin-biz/lib/uni-push-fcm/utssdk/interface.d.ts +0 -0
  76. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/global.d.ts +8 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/index.d.ts +4 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-push-gp/utssdk/interface.d.ts +0 -0
  79. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/global.d.ts +8 -0
  80. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/index.d.ts +4 -0
  81. package/types/uni/uts-plugin-biz/lib/uni-push-hms/utssdk/interface.d.ts +0 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/global.d.ts +8 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/index.d.ts +4 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-push-honor/utssdk/interface.d.ts +0 -0
  85. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/global.d.ts +8 -0
  86. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/index.d.ts +4 -0
  87. package/types/uni/uts-plugin-biz/lib/uni-push-mainland/utssdk/interface.d.ts +0 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/global.d.ts +8 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/index.d.ts +4 -0
  90. package/types/uni/uts-plugin-biz/lib/uni-push-meizu/utssdk/interface.d.ts +0 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/global.d.ts +8 -0
  92. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/index.d.ts +4 -0
  93. package/types/uni/uts-plugin-biz/lib/uni-push-oppo/utssdk/interface.d.ts +0 -0
  94. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/global.d.ts +18 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/index.d.ts +9 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-push-vivo/utssdk/interface.d.ts +45 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/global.d.ts +8 -0
  98. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/index.d.ts +4 -0
  99. package/types/uni/uts-plugin-biz/lib/uni-push-xiaomi/utssdk/interface.d.ts +0 -0
  100. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +7 -2
  101. package/types/uni/uts-plugin-component/lib/uni-canvas/utssdk/interface.d.ts +37 -44
  102. package/types/uni/uts-plugin-extend/global.d.ts +0 -2
  103. package/types/uni/uts-plugin-extend/index.d.ts +0 -2
  104. package/types/vue/LifeCycle.d.ts +723 -1
  105. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/global.d.ts +0 -14
  106. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/index.d.ts +0 -1
  107. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +0 -1670
@@ -1,20 +1,19 @@
1
- /**
2
- * uni.openDocument成功回调参数
3
- */
4
- export type OpenDocumentSuccess = {}
5
-
6
- export type OpenDocumentFail = IOpenDocumentError;
7
-
8
- export type OpenDocumentErrorCode =
9
- /**
1
+ /**
2
+ * uni.openDocument成功回调参数
3
+ */
4
+ export type OpenDocumentSuccess = {}
5
+
6
+ export type OpenDocumentFail = IOpenDocumentError;
7
+
8
+ export type OpenDocumentErrorCode =
9
+ /**
10
10
  * 路径无效
11
11
  * @uniPlatform {
12
12
  * "app": {
13
13
  * "android": {
14
14
  * "osVer": "5.0",
15
15
  * "uniVer": "x",
16
- * "unixVer": "4.71",
17
- * "unixUtsPlugin": "4.71"
16
+ * "unixVer": "4.71"
18
17
  * },
19
18
  * "ios": {
20
19
  * "osVer": "12.0",
@@ -74,18 +73,17 @@ export type OpenDocumentErrorCode =
74
73
  * "unixVer": "x"
75
74
  * }
76
75
  * }
77
- * }
78
- */
79
- 1300601 |
80
- /**
76
+ * }
77
+ */
78
+ 1300601 |
79
+ /**
81
80
  * 文件不存在
82
81
  * @uniPlatform {
83
82
  * "app": {
84
83
  * "android": {
85
84
  * "osVer": "5.0",
86
85
  * "uniVer": "x",
87
- * "unixVer": "4.71",
88
- * "unixUtsPlugin": "4.71"
86
+ * "unixVer": "4.71"
89
87
  * },
90
88
  * "ios": {
91
89
  * "osVer": "12.0",
@@ -145,18 +143,17 @@ export type OpenDocumentErrorCode =
145
143
  * "unixVer": "x"
146
144
  * }
147
145
  * }
148
- * }
149
- */
150
- 1300602 |
151
- /**
146
+ * }
147
+ */
148
+ 1300602 |
149
+ /**
152
150
  * 不支持该文件类型
153
151
  * @uniPlatform {
154
152
  * "app": {
155
153
  * "android": {
156
154
  * "osVer": "5.0",
157
155
  * "uniVer": "x",
158
- * "unixVer": "4.71",
159
- * "unixUtsPlugin": "4.71"
156
+ * "unixVer": "4.71"
160
157
  * },
161
158
  * "ios": {
162
159
  * "osVer": "12.0",
@@ -216,8 +213,8 @@ export type OpenDocumentErrorCode =
216
213
  * "unixVer": "x"
217
214
  * }
218
215
  * }
219
- * }
220
- */
216
+ * }
217
+ */
221
218
  1300603 |
222
219
  /**
223
220
  * 其他未知错误
@@ -226,8 +223,7 @@ export type OpenDocumentErrorCode =
226
223
  * "android": {
227
224
  * "osVer": "5.0",
228
225
  * "uniVer": "x",
229
- * "unixVer": "4.71",
230
- * "unixUtsPlugin": "4.71"
226
+ * "unixVer": "4.71"
231
227
  * },
232
228
  * "ios": {
233
229
  * "osVer": "12.0",
@@ -289,8 +285,8 @@ export type OpenDocumentErrorCode =
289
285
  * }
290
286
  * }
291
287
  */
292
- 1300604 ;
293
-
288
+ 1300604 ;
289
+
294
290
  export interface IOpenDocumentError extends IUniError {
295
291
  /**
296
292
  * 错误码
@@ -299,8 +295,7 @@ export interface IOpenDocumentError extends IUniError {
299
295
  * "android": {
300
296
  * "osVer": "5.0",
301
297
  * "uniVer": "x",
302
- * "unixVer": "4.71",
303
- * "unixUtsPlugin": "4.71"
298
+ * "unixVer": "4.71"
304
299
  * },
305
300
  * "ios": {
306
301
  * "osVer": "12.0",
@@ -361,11 +356,11 @@ export interface IOpenDocumentError extends IUniError {
361
356
  * }
362
357
  * }
363
358
  * }
364
- */
365
- errCode : OpenDocumentErrorCode;
366
- }
367
-
368
- /**
359
+ */
360
+ errCode : OpenDocumentErrorCode;
361
+ }
362
+
363
+ /**
369
364
  * uni.openDocument成功回调函数定义
370
365
  * @uniPlatform {
371
366
  * "mp": {
@@ -411,9 +406,9 @@ export interface IOpenDocumentError extends IUniError {
411
406
  * }
412
407
  * }
413
408
  * }
414
- */
415
- export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
416
- /**
409
+ */
410
+ export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
411
+ /**
417
412
  * uni.openDocument失败回调函数定义
418
413
  * @uniPlatform {
419
414
  * "mp": {
@@ -459,9 +454,9 @@ export type OpenDocumentSuccessCallback = (res : OpenDocumentSuccess) => void
459
454
  * }
460
455
  * }
461
456
  * }
462
- */
463
- export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
464
- /**
457
+ */
458
+ export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
459
+ /**
465
460
  * uni.openDocument完成回调函数定义
466
461
  * @uniPlatform {
467
462
  * "mp": {
@@ -507,24 +502,23 @@ export type OpenDocumentFailCallback = (res : OpenDocumentFail) => void
507
502
  * }
508
503
  * }
509
504
  * }
510
- */
511
- export type OpenDocumentCompleteCallback = (res : any) => void
512
-
513
- export type OpenDocumentSupportedTypes = string
514
-
515
- /**
516
- * uni.openDocument参数定义
517
- */
518
- export type OpenDocumentOptions = {
519
- /**
505
+ */
506
+ export type OpenDocumentCompleteCallback = (res : any) => void
507
+
508
+ export type OpenDocumentSupportedTypes = string
509
+
510
+ /**
511
+ * uni.openDocument参数定义
512
+ */
513
+ export type OpenDocumentOptions = {
514
+ /**
520
515
  * 文件路径,仅支持本地路径
521
516
  * @uniPlatform {
522
517
  * "app": {
523
518
  * "android": {
524
519
  * "osVer": "5.0",
525
520
  * "uniVer": "x",
526
- * "unixVer": "4.71",
527
- * "unixUtsPlugin": "4.71"
521
+ * "unixVer": "4.71"
528
522
  * },
529
523
  * "ios": {
530
524
  * "osVer": "12.0",
@@ -584,18 +578,17 @@ export type OpenDocumentOptions = {
584
578
  * "unixVer": "x"
585
579
  * }
586
580
  * }
587
- * }
588
- */
589
- filePath : string,
590
- /**
581
+ * }
582
+ */
583
+ filePath : string,
584
+ /**
591
585
  * 文件类型,指定文件类型打开文件,微信小程序仅支持类型:doc, xls, ppt, pdf, docx, xlsx, pptx,App端由系统打开,原则上可以打开任意文件;
592
586
  * @uniPlatform {
593
587
  * "app": {
594
588
  * "android": {
595
589
  * "osVer": "5.0",
596
590
  * "uniVer": "x",
597
- * "unixVer": "4.71",
598
- * "unixUtsPlugin": "4.71"
591
+ * "unixVer": "4.71"
599
592
  * },
600
593
  * "ios": {
601
594
  * "osVer": "12.0",
@@ -655,18 +648,17 @@ export type OpenDocumentOptions = {
655
648
  * "unixVer": "x"
656
649
  * }
657
650
  * }
658
- * }
659
- */
660
- fileType ?: OpenDocumentSupportedTypes | null,
661
- /**
651
+ * }
652
+ */
653
+ fileType ?: OpenDocumentSupportedTypes | null,
654
+ /**
662
655
  * 接口调用成功的回调函数
663
656
  * @uniPlatform {
664
657
  * "app": {
665
658
  * "android": {
666
659
  * "osVer": "5.0",
667
660
  * "uniVer": "x",
668
- * "unixVer": "4.71",
669
- * "unixUtsPlugin": "4.71"
661
+ * "unixVer": "4.71"
670
662
  * },
671
663
  * "ios": {
672
664
  * "osVer": "12.0",
@@ -726,18 +718,17 @@ export type OpenDocumentOptions = {
726
718
  * "unixVer": "x"
727
719
  * }
728
720
  * }
729
- * }
730
- */
731
- success ?: OpenDocumentSuccessCallback | null,
732
- /**
721
+ * }
722
+ */
723
+ success ?: OpenDocumentSuccessCallback | null,
724
+ /**
733
725
  * 接口调用失败的回调函数
734
726
  * @uniPlatform {
735
727
  * "app": {
736
728
  * "android": {
737
729
  * "osVer": "5.0",
738
730
  * "uniVer": "x",
739
- * "unixVer": "4.71",
740
- * "unixUtsPlugin": "4.71"
731
+ * "unixVer": "4.71"
741
732
  * },
742
733
  * "ios": {
743
734
  * "osVer": "12.0",
@@ -797,18 +788,17 @@ export type OpenDocumentOptions = {
797
788
  * "unixVer": "x"
798
789
  * }
799
790
  * }
800
- * }
801
- */
802
- fail ?: OpenDocumentFailCallback | null,
803
- /**
791
+ * }
792
+ */
793
+ fail ?: OpenDocumentFailCallback | null,
794
+ /**
804
795
  * 接口调用结束的回调函数(调用成功、失败都会执行)
805
796
  * @uniPlatform {
806
797
  * "app": {
807
798
  * "android": {
808
799
  * "osVer": "5.0",
809
800
  * "uniVer": "x",
810
- * "unixVer": "4.71",
811
- * "unixUtsPlugin": "4.71"
801
+ * "unixVer": "4.71"
812
802
  * },
813
803
  * "ios": {
814
804
  * "osVer": "12.0",
@@ -868,8 +858,8 @@ export type OpenDocumentOptions = {
868
858
  * "unixVer": "x"
869
859
  * }
870
860
  * }
871
- * }
872
- */
861
+ * }
862
+ */
873
863
  complete ?: OpenDocumentCompleteCallback | null
874
864
  /**
875
865
  * 需要基础库: `2.11.0`
@@ -922,19 +912,21 @@ export type OpenDocumentOptions = {
922
912
  * }
923
913
  */
924
914
  showMenu?: boolean | null;
925
- }
926
-
927
-
928
- export interface Uni {
929
- /**
930
- * 打开文档
915
+ }
916
+
917
+
918
+ export interface Uni {
919
+ /**
920
+ * 打开文档
921
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/open-document.html
922
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/open-document.html
923
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/file/file.html#opendocument
931
924
  * @uniPlatform {
932
925
  * "app": {
933
926
  * "android": {
934
927
  * "osVer": "5.0",
935
928
  * "uniVer": "x",
936
- * "unixVer": "4.71",
937
- * "unixUtsPlugin": "4.71"
929
+ * "unixVer": "4.71"
938
930
  * },
939
931
  * "ios": {
940
932
  * "osVer": "12.0",
@@ -994,11 +986,11 @@ export interface Uni {
994
986
  * "unixVer": "x"
995
987
  * }
996
988
  * }
997
- * }
989
+ * }
998
990
  * @uniVueVersion 2,3 //支持的vue版本
999
991
  * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html
1000
- */
1001
- openDocument(options ?: OpenDocumentOptions | null) : void;
1002
- }
1003
-
1004
- export type OpenDocument = (options ?: OpenDocumentOptions | null) => void;
992
+ */
993
+ openDocument(options ?: OpenDocumentOptions | null) : void;
994
+ }
995
+
996
+ export type OpenDocument = (options ?: OpenDocumentOptions | null) => void;
@@ -2,15 +2,16 @@ export interface Uni {
2
2
 
3
3
  /**
4
4
  * 开启监听隐私协议状态改变
5
- * @uniPlatform
5
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#onprivacyauthorizationchange
6
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#onprivacyauthorizationchange
7
+ * @uniPlatform
6
8
  {
7
9
  "app": {
8
10
  "android": {
9
11
  "osVer": "5.0",
10
12
  "uniVer": "4.31",
11
13
  "uniUtsPlugin": "4.31",
12
- "unixVer": "4.31",
13
- "unixUtsPlugin": "4.31"
14
+ "unixVer": "4.31"
14
15
  },
15
16
  "ios": {
16
17
  "osVer": "12.0",
@@ -41,16 +42,17 @@ export interface Uni {
41
42
 
42
43
  /**
43
44
  * 取消监听隐私协议状态改变
45
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#offprivacyauthorizationchange
46
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#offprivacyauthorizationchange
44
47
  * @param {number} id 开启监听隐私协议状态改变返回的id
45
- * @uniPlatform
48
+ * @uniPlatform
46
49
  {
47
50
  "app": {
48
51
  "android": {
49
52
  "osVer": "5.0",
50
53
  "uniVer": "4.31",
51
54
  "uniUtsPlugin": "4.31",
52
- "unixVer": "4.31",
53
- "unixUtsPlugin": "4.31"
55
+ "unixVer": "4.31"
54
56
  },
55
57
  "ios": {
56
58
  "osVer": "12.0",
@@ -79,14 +81,15 @@ export interface Uni {
79
81
 
80
82
  /**
81
83
  * 获取隐私协议状态
84
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#getprivacysetting
85
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#getprivacysetting
82
86
  * @uniPlatform {
83
87
  * "app": {
84
88
  * "android": {
85
89
  * "osVer": "5.0",
86
90
  * "uniVer": "4.31",
87
91
  * "uniUtsPlugin": "4.31",
88
- * "unixVer": "4.31",
89
- * "unixUtsPlugin": "4.31"
92
+ * "unixVer": "4.31"
90
93
  * },
91
94
  * "ios": {
92
95
  * "osVer": "12.0",
@@ -168,15 +171,16 @@ export interface Uni {
168
171
 
169
172
  /**
170
173
  * 重置隐私协议状态为未同意
171
- * @uniPlatform
174
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#resetprivacyauthorization
175
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#resetprivacyauthorization
176
+ * @uniPlatform
172
177
  {
173
178
  "app": {
174
179
  "android": {
175
180
  "osVer": "5.0",
176
181
  "uniVer": "4.31",
177
182
  "uniUtsPlugin": "4.31",
178
- "unixVer": "4.31",
179
- "unixUtsPlugin": "4.31"
183
+ "unixVer": "4.31"
180
184
  },
181
185
  "ios": {
182
186
  "osVer": "12.0",
@@ -213,15 +217,14 @@ export type OnPrivacyAuthorizationChangeCallback = (res: PrivacyChangeResult) =>
213
217
  export type PrivacyChangeResult = {
214
218
  /**
215
219
  * 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
216
- * @uniPlatform
220
+ * @uniPlatform
217
221
  {
218
222
  "app": {
219
223
  "android": {
220
224
  "osVer": "5.0",
221
225
  "uniVer": "4.31",
222
226
  "uniUtsPlugin": "4.31",
223
- "unixVer": "4.31",
224
- "unixUtsPlugin": "4.31"
227
+ "unixVer": "4.31"
225
228
  },
226
229
  "ios": {
227
230
  "osVer": "12.0",
@@ -255,15 +258,14 @@ export type ResetPrivacyAuthorization = () => void
255
258
  export type GetPrivacySettingSuccessResult = {
256
259
  /**
257
260
  * 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
258
- * @uniPlatform
261
+ * @uniPlatform
259
262
  {
260
263
  "app": {
261
264
  "android": {
262
265
  "osVer": "5.0",
263
266
  "uniVer": "4.31",
264
267
  "uniUtsPlugin": "4.31",
265
- "unixVer": "4.31",
266
- "unixUtsPlugin": "4.31"
268
+ "unixVer": "4.31"
267
269
  },
268
270
  "ios": {
269
271
  "osVer": "12.0",
@@ -382,15 +384,14 @@ export type GetPrivacySettingOptions = {
382
384
  /**
383
385
  * 接口调用成功的回调函数
384
386
  * @defaultValue null
385
- * @uniPlatform
387
+ * @uniPlatform
386
388
  {
387
389
  "app": {
388
390
  "android": {
389
391
  "osVer": "5.0",
390
392
  "uniVer": "4.31",
391
393
  "uniUtsPlugin": "4.31",
392
- "unixVer": "4.31",
393
- "unixUtsPlugin": "4.31"
394
+ "unixVer": "4.31"
394
395
  },
395
396
  "ios": {
396
397
  "osVer": "12.0",
@@ -458,15 +459,14 @@ export type GetPrivacySettingOptions = {
458
459
  /**
459
460
  * 接口调用失败的回调函数
460
461
  * @defaultValue null
461
- * @uniPlatform
462
+ * @uniPlatform
462
463
  {
463
464
  "app": {
464
465
  "android": {
465
466
  "osVer": "5.0",
466
467
  "uniVer": "4.31",
467
468
  "uniUtsPlugin": "4.31",
468
- "unixVer": "4.31",
469
- "unixUtsPlugin": "4.31"
469
+ "unixVer": "4.31"
470
470
  },
471
471
  "ios": {
472
472
  "osVer": "12.0",
@@ -534,15 +534,14 @@ export type GetPrivacySettingOptions = {
534
534
  /**
535
535
  * 接口调用结束的回调函数(调用成功、失败都会执行)
536
536
  * @defaultValue null
537
- * @uniPlatform
537
+ * @uniPlatform
538
538
  {
539
539
  "app": {
540
540
  "android": {
541
541
  "osVer": "5.0",
542
542
  "uniVer": "4.31",
543
543
  "uniUtsPlugin": "4.31",
544
- "unixVer": "4.31",
545
- "unixUtsPlugin": "4.31"
544
+ "unixVer": "4.31"
546
545
  },
547
546
  "ios": {
548
547
  "osVer": "12.0",