@dcloudio/uni-app-x 0.7.37 → 0.7.39

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 (126) hide show
  1. package/package.json +1 -1
  2. package/types/UniPage.d.ts +48 -9
  3. package/types/app.d.ts +8 -5
  4. package/types/native/AsyncApiResult.d.ts +1 -0
  5. package/types/native/CanvasRenderingContext2D.d.ts +1 -1
  6. package/types/native/IUniElement.d.ts +130 -35
  7. package/types/native/UniElement.d.ts +2 -1
  8. package/types/native/UniTextElement.d.ts +1 -0
  9. package/types/native/global.d.ts +16 -0
  10. package/types/page.d.ts +47 -5
  11. package/types/uni/env/index.d.ts +87 -73
  12. package/types/uni/global.d.ts +1 -0
  13. package/types/uni/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-global.d.ts +33 -0
  15. package/types/uni/uni-map-tencent-map.d.ts +52 -0
  16. package/types/uni/uts-plugin-api/global.d.ts +2 -1
  17. package/types/uni/uts-plugin-api/index.d.ts +2 -1
  18. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +0 -2
  19. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +0 -1
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +212 -219
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +73 -73
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +331 -205
  23. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +73 -73
  24. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +848 -208
  25. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/global.d.ts +5 -6
  26. package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-chooseLocation/utssdk/index.d.ts +3 -3
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +414 -0
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +2 -2
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/global.d.ts +4 -0
  30. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/index.d.ts +2 -0
  31. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1226 -1726
  32. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +1 -1
  33. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +102 -18
  34. package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +2 -2
  35. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1199 -1045
  36. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +294 -263
  37. package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +33 -28
  38. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +210 -0
  39. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +4828 -1750
  40. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +490 -448
  41. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +2138 -829
  42. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +4 -0
  43. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +2 -0
  44. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +664 -114
  45. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +891 -9
  46. package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +3 -3
  47. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +254 -114
  48. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +152 -12
  49. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +813 -57
  50. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +0 -2
  51. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +0 -45
  52. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +274 -148
  53. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +38 -3
  54. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +969 -969
  55. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +3161 -43
  56. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +316 -22
  57. package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +2 -2
  58. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +42 -0
  59. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +41 -41
  60. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +88 -88
  61. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +8 -0
  62. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +4 -0
  63. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +2765 -1193
  64. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +18 -18
  65. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3098 -1153
  66. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +13 -13
  67. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +42 -0
  68. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +10 -10
  69. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +621 -369
  70. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/global.d.ts +8 -0
  71. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/index.d.ts +4 -0
  72. package/types/uni/uts-plugin-api/lib/uni-payment-huawei/utssdk/interface.d.ts +1 -0
  73. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +540 -253
  74. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2602 -1131
  75. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +2 -2
  76. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +58 -58
  77. package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +77 -35
  78. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +42 -0
  79. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/global.d.ts +4 -0
  80. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/index.d.ts +2 -0
  81. package/types/uni/uts-plugin-api/lib/uni-shareWithSystem/utssdk/interface.d.ts +614 -15
  82. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +857 -437
  83. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +58 -16
  84. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/global.d.ts +8 -0
  85. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/index.d.ts +4 -0
  86. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +1057 -516
  87. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1656 -1488
  88. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1752 -786
  89. package/types/uni/uts-plugin-biz/global.d.ts +1 -0
  90. package/types/uni/uts-plugin-biz/index.d.ts +1 -0
  91. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +85 -1
  92. package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/interface.d.ts +46 -46
  93. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +72 -20
  94. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +126 -0
  95. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +4 -0
  96. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +2 -0
  97. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +98 -15
  98. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +677 -299
  99. package/types/uni/uts-plugin-extend/README.md +3 -0
  100. package/types/uni/uts-plugin-extend/global.d.ts +1 -0
  101. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/global.d.ts +7 -0
  102. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/index.d.ts +0 -0
  103. package/types/uni/uts-plugin-extend/lib/uni-__f__/utssdk/interface.d.ts +3 -0
  104. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +4 -4
  105. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +5 -5
  106. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +302 -302
  107. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +77 -77
  108. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +431 -11
  109. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  110. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +6 -6
  111. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +2 -2
  112. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +73 -73
  113. package/types/uni-cloud/interface.d.ts +91 -0
  114. package/uts-plugin.d.ts +3 -1
  115. package/types/uni/uts-plugin-extend/lib/uni-chooseLocation/utssdk/interface.d.ts +0 -151
  116. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/global.d.ts +0 -11
  117. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/index.d.ts +0 -4
  118. package/types/uni/uts-plugin-extend/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +0 -224
  119. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/global.d.ts +0 -53
  120. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/index.d.ts +0 -25
  121. package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +0 -487
  122. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/global.d.ts +0 -9
  123. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/index.d.ts +0 -1
  124. package/types/uni/uts-plugin-extend/lib/uni-theme/utssdk/interface.d.ts +0 -165
  125. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/global.d.ts +0 -0
  126. /package/types/uni/{uts-plugin-api → uts-plugin-biz}/lib/uni-crash/utssdk/index.d.ts +0 -0
@@ -1,273 +1,560 @@
1
1
  export interface Uni {
2
- /**
3
- * 开启监听隐私协议状态改变
4
- * @uniPlatform
5
- * {
6
- * "app": {
7
- * "android": {
8
- * "osVer": "5.0",
9
- * "uniVer": "4.31",
10
- * "unixVer": "4.31"
11
- * },
12
- * "ios": {
13
- * "osVer": "12.0",
14
- * "uniVer": "4.31",
15
- * "unixVer": "4.31"
16
- * },
17
- * "harmony": {
18
- * "osVer": "x",
19
- * "uniVer": "x",
20
- * "unixVer": "x"
21
- * }
22
- * },
23
- * "web": {
24
- * "uniVer": "x",
25
- * "unixVer": "x"
26
- * }
27
- * }
28
- * @example
29
- ```typescript
30
- const id = uni.onPrivacyAuthorizationChange((res) => {
31
2
 
32
- })
33
- ```
34
- */
35
- onPrivacyAuthorizationChange(callback : OnPrivacyAuthorizationChangeCallback) : number
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
36
 
37
- /**
38
- * 取消监听隐私协议状态改变
39
- * @uniPlatform
40
- * {
41
- * "app": {
42
- * "android": {
43
- * "osVer": "5.0",
44
- * "uniVer": "4.31",
45
- * "unixVer": "4.31"
46
- * },
47
- * "ios": {
48
- * "osVer": "12.0",
49
- * "uniVer": "4.31",
50
- * "unixVer": "4.31"
51
- * },
52
- * "harmony": {
53
- * "osVer": "x",
54
- * "uniVer": "x",
55
- * "unixVer": "x"
56
- * }
57
- * },
58
- * "web": {
59
- * "uniVer": "x",
60
- * "unixVer": "x"
61
- * }
62
- * }
63
- * @example
64
- ```typescript
65
- uni.offPrivacyAuthorizationChange(id)
66
- ```
67
- */
68
- offPrivacyAuthorizationChange(id : number) : void
37
+ })
38
+ ```
39
+ */
40
+ onPrivacyAuthorizationChange(callback: OnPrivacyAuthorizationChangeCallback): number
69
41
 
70
- /**
71
- * 获取隐私协议状态
72
- * @uniPlatform
73
- * {
74
- * "app": {
75
- * "android": {
76
- * "osVer": "5.0",
77
- * "uniVer": "4.31",
78
- * "unixVer": "4.31"
79
- * },
80
- * "ios": {
81
- * "osVer": "12.0",
82
- * "uniVer": "4.31",
83
- * "unixVer": "4.31"
84
- * }
85
- * },
86
- * "web": {
87
- * "uniVer": "x",
88
- * "unixVer": "x"
89
- * }
90
- * }
91
- * @example
92
- ```typescript
93
- uni.getPrivacySetting({
94
- success: (res) => {
95
- console.log('success')
96
- },
97
- fail: (err) => {
98
- console.log(err)
99
- },
100
- complete: (res) => {
101
- console.log('complete')
102
- }
103
- })
104
- ```
105
- */
106
- getPrivacySetting(options : GetPrivacySettingOptions) : void
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
107
79
 
108
- /**
109
- * 重置隐私协议状态为未同意
110
- * @uniPlatform
111
- * {
112
- * "app": {
113
- * "android": {
114
- * "osVer": "5.0",
115
- * "uniVer": "4.31",
116
- * "unixVer": "4.31"
117
- * },
118
- * "ios": {
119
- * "osVer": "12.0",
120
- * "uniVer": "4.31",
121
- * "unixVer": "4.31"
122
- * }
123
- * },
124
- * "web": {
125
- * "uniVer": "x",
126
- * "unixVer": "x"
127
- * }
128
- * }
129
- * @example
130
- ```typescript
131
- uni.resetPrivacyAuthorization()
132
- ```
133
- */
134
- resetPrivacyAuthorization() : void
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
135
205
  }
136
206
 
137
- export type OnPrivacyAuthorizationChange = (callback : OnPrivacyAuthorizationChangeCallback) => number
207
+ export type OnPrivacyAuthorizationChange = (callback: OnPrivacyAuthorizationChangeCallback) => number
138
208
 
139
- export type OffPrivacyAuthorizationChange = (id : number) => void
209
+ export type OffPrivacyAuthorizationChange = (id: number) => void
140
210
 
141
- export type OnPrivacyAuthorizationChangeCallback = (res : PrivacyChangeResult) => void
211
+ export type OnPrivacyAuthorizationChangeCallback = (res: PrivacyChangeResult) => void
142
212
 
143
213
  export type PrivacyChangeResult = {
144
- /**
145
- * 是否需要用户授权隐私协议(用户之前同意过返回false,没同意过则返回true)
146
- * @uniPlatform
147
- * {
148
- * "app": {
149
- * "android": {
150
- * "osVer": "5.0",
151
- * "uniVer": "4.31",
152
- * "unixVer": "4.31"
153
- * },
154
- * "ios": {
155
- * "osVer": "12.0",
156
- * "uniVer": "4.31",
157
- * "unixVer": "4.31"
158
- * },
159
- * "harmony": {
160
- * "osVer": "x",
161
- * "uniVer": "x",
162
- * "unixVer": "x"
163
- * }
164
- * },
165
- * "web": {
166
- * "uniVer": "x",
167
- * "unixVer": "x"
168
- * }
169
- * }
170
- */
171
- needAuthorization : boolean
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
172
246
  }
173
247
 
174
- export type GetPrivacySetting = (options : GetPrivacySettingOptions) => void
248
+ export type GetPrivacySetting = (options: GetPrivacySettingOptions) => void
175
249
 
176
- export type GetPrivacySettingSuccessCallback = (result : GetPrivacySettingSuccessResult) => void;
177
- export type GetPrivacySettingFailCallback = (result : any) => void;
178
- export type GetPrivacySettingCompleteCallback = (result : any) => void;
250
+ export type GetPrivacySettingSuccessCallback = (result: GetPrivacySettingSuccessResult) => void;
251
+ export type GetPrivacySettingFailCallback = (result: any) => void;
252
+ export type GetPrivacySettingCompleteCallback = (result: any) => void;
179
253
  export type ResetPrivacyAuthorization = () => void
180
254
 
181
255
  export type GetPrivacySettingSuccessResult = {
182
- needAuthorization : boolean
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
183
330
  }
184
331
 
185
332
  export type GetPrivacySettingOptions = {
186
- /**
187
- * 接口调用成功的回调函数
188
- * @defaultValue null
189
- * @uniPlatform
190
- * {
191
- * "app": {
192
- * "android": {
193
- * "osVer": "5.0",
194
- * "uniVer": "4.31",
195
- * "unixVer": "4.31"
196
- * },
197
- * "ios": {
198
- * "osVer": "12.0",
199
- * "uniVer": "4.31",
200
- * "unixVer": "4.31"
201
- * },
202
- * "harmony": {
203
- * "osVer": "x",
204
- * "uniVer": "x",
205
- * "unixVer": "x"
206
- * }
207
- * },
208
- * "web": {
209
- * "uniVer": "x",
210
- * "unixVer": "x"
211
- * }
212
- * }
213
- */
214
- success ?: GetPrivacySettingSuccessCallback
215
- /**
216
- * 接口调用失败的回调函数
217
- * @defaultValue null
218
- * @uniPlatform
219
- * {    e
220
- * "app": {
221
- * "android": {
222
- * "osVer": "5.0",
223
- * "uniVer": "4.31",
224
- * "unixVer": "4.31"
225
- * },
226
- * "ios": {
227
- * "osVer": "12.0",
228
- * "uniVer": "4.31",
229
- * "unixVer": "4.31"
230
- * },
231
- * "harmony": {
232
- * "osVer": "x",
233
- * "uniVer": "x",
234
- * "unixVer": "x"
235
- * }
236
- * },
237
- * "web": {
238
- * "uniVer": "x",
239
- * "unixVer": "x"
240
- * }
241
- * }
242
- */
243
- fail ?: GetPrivacySettingFailCallback
244
- /**
245
- * 接口调用结束的回调函数(调用成功、失败都会执行)
246
- * @defaultValue null
247
- * @uniPlatform
248
- * {
249
- * "app": {
250
- * "android": {
251
- * "osVer": "5.0",
252
- * "uniVer": "4.31",
253
- * "unixVer": "4.31"
254
- * },
255
- * "ios": {
256
- * "osVer": "12.0",
257
- * "uniVer": "4.31",
258
- * "unixVer": "4.31"
259
- * },
260
- * "harmony": {
261
- * "osVer": "x",
262
- * "uniVer": "x",
263
- * "unixVer": "x"
264
- * }
265
- * },
266
- * "web": {
267
- * "uniVer": "x",
268
- * "unixVer": "x"
269
- * }
270
- * }
271
- */
272
- complete ?: GetPrivacySettingCompleteCallback
273
- }
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
+ }