@dcloudio/uni-app-x 0.7.58 → 0.7.59

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 (138) hide show
  1. package/package.json +6 -2
  2. package/types/index.d.ts +1 -0
  3. package/types/native/CSSStyleDeclaration.d.ts +31 -6
  4. package/types/native/DOMRect.d.ts +60 -10
  5. package/types/native/IUniElement.d.ts +459 -0
  6. package/types/native/UniElement.d.ts +3 -2
  7. package/types/native/UniPage.d.ts +2 -2
  8. package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
  9. package/types/native/UniWebViewElement.d.ts +3 -1
  10. package/types/native/global.d.ts +8 -0
  11. package/types/native/index.d.ts +1 -0
  12. package/types/uni/env/index.d.ts +5 -5
  13. package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
  14. package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
  15. package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
  16. package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
  17. package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
  18. package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
  19. package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
  20. package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
  21. package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
  22. package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
  23. package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
  24. package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
  25. package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
  26. package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
  27. package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
  28. package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
  29. package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
  30. package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
  31. package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
  32. package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
  33. package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
  34. package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
  35. package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
  36. package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
  37. package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
  38. package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
  39. package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
  40. package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
  41. package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
  42. package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
  43. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
  44. package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
  45. package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
  46. package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
  47. package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
  48. package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
  49. package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
  50. package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
  51. package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
  52. package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
  53. package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
  54. package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
  55. package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
  56. package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
  57. package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
  58. package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
  59. package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
  60. package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
  61. package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
  62. package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
  63. package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
  64. package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
  65. package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
  66. package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
  67. package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
  68. package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
  69. package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
  70. package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
  71. package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
  72. package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
  73. package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
  74. package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
  75. package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
  76. package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
  77. package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
  78. package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
  79. package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
  80. package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
  81. package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
  82. package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
  83. package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
  84. package/types/uni/uts-plugin-api/global.d.ts +3 -0
  85. package/types/uni/uts-plugin-api/index.d.ts +3 -0
  86. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
  87. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
  88. package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
  89. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
  90. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
  91. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
  92. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
  93. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
  94. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
  95. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
  96. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
  97. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
  98. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
  99. package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
  100. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
  101. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
  102. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
  103. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
  104. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
  105. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
  106. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
  107. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
  108. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
  109. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
  110. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
  111. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
  112. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
  113. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
  114. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
  115. package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
  116. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
  117. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
  118. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
  119. package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
  120. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
  121. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
  122. package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
  123. package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
  124. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
  125. package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
  126. package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
  127. package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
  128. package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
  129. package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
  130. package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
  131. package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
  132. package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
  133. package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
  134. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
  135. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
  136. package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
  137. package/types/uni-cloud/interface.d.ts +229 -0
  138. package/types/vite.d.ts +269 -0
@@ -0,0 +1,560 @@
1
+ export interface Uni {
2
+
3
+ /**
4
+ * 开启监听隐私协议状态改变
5
+ * @uniPlatform
6
+ {
7
+ "app": {
8
+ "android": {
9
+ "osVer": "5.0",
10
+ "uniVer": "4.31",
11
+ "uniUtsPlugin": "4.31",
12
+ "unixVer": "4.31",
13
+ "unixUtsPlugin": "4.31"
14
+ },
15
+ "ios": {
16
+ "osVer": "12.0",
17
+ "uniVer": "4.31",
18
+ "uniUtsPlugin": "4.31",
19
+ "unixVer": "4.31",
20
+ "unixUtsPlugin": "4.31"
21
+ },
22
+ "harmony": {
23
+ "osVer": "x",
24
+ "uniVer": "x",
25
+ "unixVer": "x"
26
+ }
27
+ },
28
+ "web": {
29
+ "uniVer": "x",
30
+ "unixVer": "x"
31
+ }
32
+ }
33
+ * @example
34
+ ```typescript
35
+ const id = uni.onPrivacyAuthorizationChange((res) => {
36
+
37
+ })
38
+ ```
39
+ */
40
+ onPrivacyAuthorizationChange(callback: OnPrivacyAuthorizationChangeCallback): number
41
+
42
+ /**
43
+ * 取消监听隐私协议状态改变
44
+ * @param {number} id 开启监听隐私协议状态改变返回的id
45
+ * @uniPlatform
46
+ {
47
+ "app": {
48
+ "android": {
49
+ "osVer": "5.0",
50
+ "uniVer": "4.31",
51
+ "uniUtsPlugin": "4.31",
52
+ "unixVer": "4.31",
53
+ "unixUtsPlugin": "4.31"
54
+ },
55
+ "ios": {
56
+ "osVer": "12.0",
57
+ "uniVer": "4.31",
58
+ "uniUtsPlugin": "4.31",
59
+ "unixVer": "4.31",
60
+ "unixUtsPlugin": "4.31"
61
+ },
62
+ "harmony": {
63
+ "osVer": "x",
64
+ "uniVer": "x",
65
+ "unixVer": "x"
66
+ }
67
+ },
68
+ "web": {
69
+ "uniVer": "x",
70
+ "unixVer": "x"
71
+ }
72
+ }
73
+ * @example
74
+ ```typescript
75
+ uni.offPrivacyAuthorizationChange(id)
76
+ ```
77
+ */
78
+ offPrivacyAuthorizationChange(id: number): void
79
+
80
+ /**
81
+ * 获取隐私协议状态
82
+ * @uniPlatform
83
+ {
84
+ "app": {
85
+ "android": {
86
+ "osVer": "5.0",
87
+ "uniVer": "4.31",
88
+ "uniUtsPlugin": "4.31",
89
+ "unixVer": "4.31",
90
+ "unixUtsPlugin": "4.31"
91
+ },
92
+ "ios": {
93
+ "osVer": "12.0",
94
+ "uniVer": "4.31",
95
+ "uniUtsPlugin": "4.31",
96
+ "unixVer": "4.31",
97
+ "unixUtsPlugin": "4.31"
98
+ },
99
+ "harmony": {
100
+ "osVer": "x",
101
+ "uniVer": "x",
102
+ "unixVer": "x"
103
+ }
104
+ },
105
+ "mp": {
106
+ "weixin": {
107
+ "hostVer": "√",
108
+ "uniVer": "√",
109
+ "unixVer": "4.41"
110
+ },
111
+ "alipay": {
112
+ "hostVer": "√",
113
+ "uniVer": "√",
114
+ "unixVer": "x"
115
+ },
116
+ "baidu": {
117
+ "hostVer": "√",
118
+ "uniVer": "√",
119
+ "unixVer": "x"
120
+ },
121
+ "toutiao": {
122
+ "hostVer": "√",
123
+ "uniVer": "√",
124
+ "unixVer": "x"
125
+ },
126
+ "lark": {
127
+ "hostVer": "√",
128
+ "uniVer": "√",
129
+ "unixVer": "x"
130
+ },
131
+ "qq": {
132
+ "hostVer": "√",
133
+ "uniVer": "√",
134
+ "unixVer": "x"
135
+ },
136
+ "kuaishou": {
137
+ "hostVer": "√",
138
+ "uniVer": "√",
139
+ "unixVer": "x"
140
+ },
141
+ "jd": {
142
+ "hostVer": "√",
143
+ "uniVer": "√",
144
+ "unixVer": "x"
145
+ }
146
+ },
147
+ "web": {
148
+ "uniVer": "x",
149
+ "unixVer": "x"
150
+ }
151
+ }
152
+ * @example
153
+ ```typescript
154
+ uni.getPrivacySetting({
155
+ success: (res) => {
156
+ console.log('success')
157
+ },
158
+ fail: (err) => {
159
+ console.log(err)
160
+ },
161
+ complete: (res) => {
162
+ console.log('complete')
163
+ }
164
+ })
165
+ ```
166
+ */
167
+ getPrivacySetting(options: GetPrivacySettingOptions): void
168
+
169
+ /**
170
+ * 重置隐私协议状态为未同意
171
+ * @uniPlatform
172
+ {
173
+ "app": {
174
+ "android": {
175
+ "osVer": "5.0",
176
+ "uniVer": "4.31",
177
+ "uniUtsPlugin": "4.31",
178
+ "unixVer": "4.31",
179
+ "unixUtsPlugin": "4.31"
180
+ },
181
+ "ios": {
182
+ "osVer": "12.0",
183
+ "uniVer": "4.31",
184
+ "uniUtsPlugin": "4.31",
185
+ "unixVer": "4.31",
186
+ "unixUtsPlugin": "4.31"
187
+ },
188
+ "harmony": {
189
+ "osVer": "x",
190
+ "uniVer": "x",
191
+ "unixVer": "x"
192
+ }
193
+ },
194
+ "web": {
195
+ "uniVer": "x",
196
+ "unixVer": "x"
197
+ }
198
+ }
199
+ * @example
200
+ ```typescript
201
+ uni.resetPrivacyAuthorization()
202
+ ```
203
+ */
204
+ resetPrivacyAuthorization(): void
205
+ }
206
+
207
+ export type OnPrivacyAuthorizationChange = (callback: OnPrivacyAuthorizationChangeCallback) => number
208
+
209
+ export type OffPrivacyAuthorizationChange = (id: number) => void
210
+
211
+ export type OnPrivacyAuthorizationChangeCallback = (res: PrivacyChangeResult) => void
212
+
213
+ export type PrivacyChangeResult = {
214
+ /**
215
+ * 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
216
+ * @uniPlatform
217
+ {
218
+ "app": {
219
+ "android": {
220
+ "osVer": "5.0",
221
+ "uniVer": "4.31",
222
+ "uniUtsPlugin": "4.31",
223
+ "unixVer": "4.31",
224
+ "unixUtsPlugin": "4.31"
225
+ },
226
+ "ios": {
227
+ "osVer": "12.0",
228
+ "uniVer": "4.31",
229
+ "uniUtsPlugin": "4.31",
230
+ "unixVer": "4.31",
231
+ "unixUtsPlugin": "4.31"
232
+ },
233
+ "harmony": {
234
+ "osVer": "x",
235
+ "uniVer": "x",
236
+ "unixVer": "x"
237
+ }
238
+ },
239
+ "web": {
240
+ "uniVer": "x",
241
+ "unixVer": "x"
242
+ }
243
+ }
244
+ */
245
+ needAuthorization: boolean
246
+ }
247
+
248
+ export type GetPrivacySetting = (options: GetPrivacySettingOptions) => void
249
+
250
+ export type GetPrivacySettingSuccessCallback = (result: GetPrivacySettingSuccessResult) => void;
251
+ export type GetPrivacySettingFailCallback = (result: any) => void;
252
+ export type GetPrivacySettingCompleteCallback = (result: any) => void;
253
+ export type ResetPrivacyAuthorization = () => void
254
+
255
+ export type GetPrivacySettingSuccessResult = {
256
+ /**
257
+ * 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
258
+ * @uniPlatform
259
+ {
260
+ "app": {
261
+ "android": {
262
+ "osVer": "5.0",
263
+ "uniVer": "4.31",
264
+ "uniUtsPlugin": "4.31",
265
+ "unixVer": "4.31",
266
+ "unixUtsPlugin": "4.31"
267
+ },
268
+ "ios": {
269
+ "osVer": "12.0",
270
+ "uniVer": "4.31",
271
+ "uniUtsPlugin": "4.31",
272
+ "unixVer": "4.31",
273
+ "unixUtsPlugin": "4.31"
274
+ },
275
+ "harmony": {
276
+ "osVer": "x",
277
+ "uniVer": "x",
278
+ "unixVer": "x"
279
+ }
280
+ },
281
+ "mp": {
282
+ "weixin": {
283
+ "hostVer": "√",
284
+ "uniVer": "√",
285
+ "unixVer": "4.41"
286
+ },
287
+ "alipay": {
288
+ "hostVer": "√",
289
+ "uniVer": "√",
290
+ "unixVer": "x"
291
+ },
292
+ "baidu": {
293
+ "hostVer": "√",
294
+ "uniVer": "√",
295
+ "unixVer": "x"
296
+ },
297
+ "toutiao": {
298
+ "hostVer": "√",
299
+ "uniVer": "√",
300
+ "unixVer": "x"
301
+ },
302
+ "lark": {
303
+ "hostVer": "√",
304
+ "uniVer": "√",
305
+ "unixVer": "x"
306
+ },
307
+ "qq": {
308
+ "hostVer": "√",
309
+ "uniVer": "√",
310
+ "unixVer": "x"
311
+ },
312
+ "kuaishou": {
313
+ "hostVer": "√",
314
+ "uniVer": "√",
315
+ "unixVer": "x"
316
+ },
317
+ "jd": {
318
+ "hostVer": "√",
319
+ "uniVer": "√",
320
+ "unixVer": "x"
321
+ }
322
+ },
323
+ "web": {
324
+ "uniVer": "x",
325
+ "unixVer": "x"
326
+ }
327
+ }
328
+ */
329
+ needAuthorization: boolean
330
+ }
331
+
332
+ export type GetPrivacySettingOptions = {
333
+ /**
334
+ * 接口调用成功的回调函数
335
+ * @defaultValue null
336
+ * @uniPlatform
337
+ {
338
+ "app": {
339
+ "android": {
340
+ "osVer": "5.0",
341
+ "uniVer": "4.31",
342
+ "uniUtsPlugin": "4.31",
343
+ "unixVer": "4.31",
344
+ "unixUtsPlugin": "4.31"
345
+ },
346
+ "ios": {
347
+ "osVer": "12.0",
348
+ "uniVer": "4.31",
349
+ "uniUtsPlugin": "4.31",
350
+ "unixVer": "4.31",
351
+ "unixUtsPlugin": "4.31"
352
+ },
353
+ "harmony": {
354
+ "osVer": "x",
355
+ "uniVer": "x",
356
+ "unixVer": "x"
357
+ }
358
+ },
359
+ "mp": {
360
+ "weixin": {
361
+ "hostVer": "√",
362
+ "uniVer": "√",
363
+ "unixVer": "4.41"
364
+ },
365
+ "alipay": {
366
+ "hostVer": "√",
367
+ "uniVer": "√",
368
+ "unixVer": "x"
369
+ },
370
+ "baidu": {
371
+ "hostVer": "√",
372
+ "uniVer": "√",
373
+ "unixVer": "x"
374
+ },
375
+ "toutiao": {
376
+ "hostVer": "√",
377
+ "uniVer": "√",
378
+ "unixVer": "x"
379
+ },
380
+ "lark": {
381
+ "hostVer": "√",
382
+ "uniVer": "√",
383
+ "unixVer": "x"
384
+ },
385
+ "qq": {
386
+ "hostVer": "√",
387
+ "uniVer": "√",
388
+ "unixVer": "x"
389
+ },
390
+ "kuaishou": {
391
+ "hostVer": "√",
392
+ "uniVer": "√",
393
+ "unixVer": "x"
394
+ },
395
+ "jd": {
396
+ "hostVer": "√",
397
+ "uniVer": "√",
398
+ "unixVer": "x"
399
+ }
400
+ },
401
+ "web": {
402
+ "uniVer": "x",
403
+ "unixVer": "x"
404
+ }
405
+ }
406
+ */
407
+ success?: GetPrivacySettingSuccessCallback
408
+
409
+ /**
410
+ * 接口调用失败的回调函数
411
+ * @defaultValue null
412
+ * @uniPlatform
413
+ {
414
+ "app": {
415
+ "android": {
416
+ "osVer": "5.0",
417
+ "uniVer": "4.31",
418
+ "uniUtsPlugin": "4.31",
419
+ "unixVer": "4.31",
420
+ "unixUtsPlugin": "4.31"
421
+ },
422
+ "ios": {
423
+ "osVer": "12.0",
424
+ "uniVer": "4.31",
425
+ "uniUtsPlugin": "4.31",
426
+ "unixVer": "4.31",
427
+ "unixUtsPlugin": "4.31"
428
+ },
429
+ "harmony": {
430
+ "osVer": "x",
431
+ "uniVer": "x",
432
+ "unixVer": "x"
433
+ }
434
+ },
435
+ "mp": {
436
+ "weixin": {
437
+ "hostVer": "√",
438
+ "uniVer": "√",
439
+ "unixVer": "4.41"
440
+ },
441
+ "alipay": {
442
+ "hostVer": "√",
443
+ "uniVer": "√",
444
+ "unixVer": "x"
445
+ },
446
+ "baidu": {
447
+ "hostVer": "√",
448
+ "uniVer": "√",
449
+ "unixVer": "x"
450
+ },
451
+ "toutiao": {
452
+ "hostVer": "√",
453
+ "uniVer": "√",
454
+ "unixVer": "x"
455
+ },
456
+ "lark": {
457
+ "hostVer": "√",
458
+ "uniVer": "√",
459
+ "unixVer": "x"
460
+ },
461
+ "qq": {
462
+ "hostVer": "√",
463
+ "uniVer": "√",
464
+ "unixVer": "x"
465
+ },
466
+ "kuaishou": {
467
+ "hostVer": "√",
468
+ "uniVer": "√",
469
+ "unixVer": "x"
470
+ },
471
+ "jd": {
472
+ "hostVer": "√",
473
+ "uniVer": "√",
474
+ "unixVer": "x"
475
+ }
476
+ },
477
+ "web": {
478
+ "uniVer": "x",
479
+ "unixVer": "x"
480
+ }
481
+ }
482
+ */
483
+ fail?: GetPrivacySettingFailCallback
484
+
485
+ /**
486
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
487
+ * @defaultValue null
488
+ * @uniPlatform
489
+ {
490
+ "app": {
491
+ "android": {
492
+ "osVer": "5.0",
493
+ "uniVer": "4.31",
494
+ "uniUtsPlugin": "4.31",
495
+ "unixVer": "4.31",
496
+ "unixUtsPlugin": "4.31"
497
+ },
498
+ "ios": {
499
+ "osVer": "12.0",
500
+ "uniVer": "4.31",
501
+ "uniUtsPlugin": "4.31",
502
+ "unixVer": "4.31",
503
+ "unixUtsPlugin": "4.31"
504
+ },
505
+ "harmony": {
506
+ "osVer": "x",
507
+ "uniVer": "x",
508
+ "unixVer": "x"
509
+ }
510
+ },
511
+ "mp": {
512
+ "weixin": {
513
+ "hostVer": "√",
514
+ "uniVer": "√",
515
+ "unixVer": "4.41"
516
+ },
517
+ "alipay": {
518
+ "hostVer": "√",
519
+ "uniVer": "√",
520
+ "unixVer": "x"
521
+ },
522
+ "baidu": {
523
+ "hostVer": "√",
524
+ "uniVer": "√",
525
+ "unixVer": "x"
526
+ },
527
+ "toutiao": {
528
+ "hostVer": "√",
529
+ "uniVer": "√",
530
+ "unixVer": "x"
531
+ },
532
+ "lark": {
533
+ "hostVer": "√",
534
+ "uniVer": "√",
535
+ "unixVer": "x"
536
+ },
537
+ "qq": {
538
+ "hostVer": "√",
539
+ "uniVer": "√",
540
+ "unixVer": "x"
541
+ },
542
+ "kuaishou": {
543
+ "hostVer": "√",
544
+ "uniVer": "√",
545
+ "unixVer": "x"
546
+ },
547
+ "jd": {
548
+ "hostVer": "√",
549
+ "uniVer": "√",
550
+ "unixVer": "x"
551
+ }
552
+ },
553
+ "web": {
554
+ "uniVer": "x",
555
+ "unixVer": "x"
556
+ }
557
+ }
558
+ */
559
+ complete?: GetPrivacySettingCompleteCallback
560
+ }