@dcloudio/uni-app-x 0.7.121 → 0.7.122
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.
- package/README.md +87 -0
- package/package.json +1 -1
- package/types/dom2-internal/UniCommon.d.ts +7 -2
- package/types/dom2-internal/UniNativeDefines.d.ts +7 -2
- package/types/uni/uts-plugin-api/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +323 -1294
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/global.d.ts +16 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-compass/utssdk/index.d.ts +9 -3
- package/types/uni/uts-plugin-api/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openLocation/utssdk/interface.d.ts +418 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +83 -124
- package/types/uni/uts-plugin-api/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-biz/global.d.ts +9 -0
- package/types/uni/uts-plugin-biz/index.d.ts +9 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/global.d.ts +59 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/index.d.ts +29 -0
- package/types/uni/uts-plugin-biz/lib/uni-authentication/utssdk/interface.d.ts +371 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-biz/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-biz/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-biz/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/global.d.ts +57 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/index.d.ts +28 -0
- package/types/uni/uts-plugin-biz/lib/uni-screenBrightness/utssdk/interface.d.ts +1172 -0
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-biz/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-component/global.d.ts +8 -1
- package/types/uni/uts-plugin-component/index.d.ts +8 -1
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-accelerometer/utssdk/interface.d.ts +359 -0
- package/types/uni/uts-plugin-component/lib/uni-authentication/utssdk/interface.d.ts +1342 -371
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-calendar/utssdk/interface.d.ts +944 -0
- package/types/uni/uts-plugin-component/lib/uni-canvas-dom2/utssdk/interface.d.ts +2 -1
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-compass/utssdk/interface.d.ts +353 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-editor/utssdk/interface.d.ts +144 -110
- package/types/uni/uts-plugin-component/lib/uni-editor-global/utssdk/interface.d.ts +13 -4
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/global.d.ts +35 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-component/lib/uni-gyroscope/utssdk/interface.d.ts +362 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/global.d.ts +21 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-component/lib/uni-memorywarning/utssdk/interface.d.ts +20 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/global.d.ts +23 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-component/lib/uni-openLocation/utssdk/interface.d.ts +420 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/global.d.ts +49 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/index.d.ts +24 -0
- package/types/uni/uts-plugin-component/lib/uni-phoneContact/utssdk/interface.d.ts +349 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-component/lib/uni-privacy/utssdk/interface.d.ts +132 -75
- package/types/uni/uts-plugin-component/lib/uni-screenBrightness/utssdk/interface.d.ts +3 -3
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/global.d.ts +27 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-component/lib/uni-vibrate/utssdk/interface.d.ts +88 -0
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/global.d.ts +0 -12
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/index.d.ts +0 -1
- package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +0 -917
- package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +0 -1095
- package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +0 -253
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
export interface Uni {
|
|
2
|
+
/**
|
|
3
|
+
* 手机通讯录联系人和联系方式的增加
|
|
4
|
+
*
|
|
5
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/contact.html#addphonecontact
|
|
6
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/contact.html#addphonecontact
|
|
7
|
+
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/contact.html#addphonecontact
|
|
8
|
+
*
|
|
9
|
+
* @uniPlatform {
|
|
10
|
+
* "app": {
|
|
11
|
+
* "android": {
|
|
12
|
+
* "osVer": "5.0",
|
|
13
|
+
* "uniVer": "√",
|
|
14
|
+
* "unixVer": "5.08"
|
|
15
|
+
* },
|
|
16
|
+
* "ios": {
|
|
17
|
+
* "osVer": "12.0",
|
|
18
|
+
* "uniVer": "√",
|
|
19
|
+
* "unixVer": "5.08"
|
|
20
|
+
* },
|
|
21
|
+
* "harmony": {
|
|
22
|
+
* "osVer": "5.0.0",
|
|
23
|
+
* "uniVer": "4.25",
|
|
24
|
+
* "unixVer": "4.61",
|
|
25
|
+
* "unixvVer": "5.0"
|
|
26
|
+
* }
|
|
27
|
+
* },
|
|
28
|
+
* "web": {
|
|
29
|
+
* "uniVer": "x",
|
|
30
|
+
* "unixVer": "x"
|
|
31
|
+
* },
|
|
32
|
+
* "mp":{
|
|
33
|
+
* "weixin": {
|
|
34
|
+
* "hostVer": "√",
|
|
35
|
+
* "uniVer": "√",
|
|
36
|
+
* "unixVer": "4.41"
|
|
37
|
+
* },
|
|
38
|
+
* "alipay": {
|
|
39
|
+
* "hostVer": "√",
|
|
40
|
+
* "uniVer": "√",
|
|
41
|
+
* "unixVer": "x"
|
|
42
|
+
* },
|
|
43
|
+
* "baidu": {
|
|
44
|
+
* "hostVer": "√",
|
|
45
|
+
* "uniVer": "√",
|
|
46
|
+
* "unixVer": "x"
|
|
47
|
+
* },
|
|
48
|
+
* "toutiao": {
|
|
49
|
+
* "hostVer": "x",
|
|
50
|
+
* "uniVer": "x",
|
|
51
|
+
* "unixVer": "x"
|
|
52
|
+
* },
|
|
53
|
+
* "lark": {
|
|
54
|
+
* "hostVer": "x",
|
|
55
|
+
* "uniVer": "x",
|
|
56
|
+
* "unixVer": "x"
|
|
57
|
+
* },
|
|
58
|
+
* "qq": {
|
|
59
|
+
* "hostVer": "x",
|
|
60
|
+
* "uniVer": "x",
|
|
61
|
+
* "unixVer": "x"
|
|
62
|
+
* },
|
|
63
|
+
* "kuaishou": {
|
|
64
|
+
* "hostVer": "√",
|
|
65
|
+
* "uniVer": "√",
|
|
66
|
+
* "unixVer": "x"
|
|
67
|
+
* },
|
|
68
|
+
* "jd": {
|
|
69
|
+
* "hostVer": "x",
|
|
70
|
+
* "uniVer": "x",
|
|
71
|
+
* "unixVer": "x"
|
|
72
|
+
* }
|
|
73
|
+
* }
|
|
74
|
+
* }
|
|
75
|
+
*/
|
|
76
|
+
addPhoneContact(options: AddPhoneContactOptions): void;
|
|
77
|
+
/**
|
|
78
|
+
* 拉起手机通讯录,选择联系人
|
|
79
|
+
*
|
|
80
|
+
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/contact.html#choosecontact
|
|
81
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/contact.html#choosecontact
|
|
82
|
+
* @tutorial_mp_weixin https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.chooseContact.html
|
|
83
|
+
*
|
|
84
|
+
* @uniPlatform {
|
|
85
|
+
* "app": {
|
|
86
|
+
* "android": {
|
|
87
|
+
* "osVer": "5.0",
|
|
88
|
+
* "uniVer": "√",
|
|
89
|
+
* "unixVer": "5.08"
|
|
90
|
+
* },
|
|
91
|
+
* "ios": {
|
|
92
|
+
* "osVer": "12.0",
|
|
93
|
+
* "uniVer": "√",
|
|
94
|
+
* "unixVer": "5.08"
|
|
95
|
+
* },
|
|
96
|
+
* "harmony": {
|
|
97
|
+
* "osVer": "5.0.0",
|
|
98
|
+
* "uniVer": "4.25",
|
|
99
|
+
* "unixVer": "4.61",
|
|
100
|
+
* "unixvVer": "5.0"
|
|
101
|
+
* }
|
|
102
|
+
* },
|
|
103
|
+
* "web": {
|
|
104
|
+
* "uniVer": "x",
|
|
105
|
+
* "unixVer": "x"
|
|
106
|
+
* },
|
|
107
|
+
* "mp":{
|
|
108
|
+
* "weixin": {
|
|
109
|
+
* "hostVer": "2.8.0",
|
|
110
|
+
* "uniVer": "√",
|
|
111
|
+
* "unixVer": "4.41"
|
|
112
|
+
* },
|
|
113
|
+
* "alipay": {
|
|
114
|
+
* "hostVer": "√",
|
|
115
|
+
* "uniVer": "√",
|
|
116
|
+
* "unixVer": "x"
|
|
117
|
+
* },
|
|
118
|
+
* "baidu": {
|
|
119
|
+
* "hostVer": "√",
|
|
120
|
+
* "uniVer": "√",
|
|
121
|
+
* "unixVer": "x"
|
|
122
|
+
* },
|
|
123
|
+
* "toutiao": {
|
|
124
|
+
* "hostVer": "x",
|
|
125
|
+
* "uniVer": "x",
|
|
126
|
+
* "unixVer": "x"
|
|
127
|
+
* },
|
|
128
|
+
* "lark": {
|
|
129
|
+
* "hostVer": "x",
|
|
130
|
+
* "uniVer": "x",
|
|
131
|
+
* "unixVer": "x"
|
|
132
|
+
* },
|
|
133
|
+
* "qq": {
|
|
134
|
+
* "hostVer": "x",
|
|
135
|
+
* "uniVer": "x",
|
|
136
|
+
* "unixVer": "x"
|
|
137
|
+
* },
|
|
138
|
+
* "kuaishou": {
|
|
139
|
+
* "hostVer": "√",
|
|
140
|
+
* "uniVer": "√",
|
|
141
|
+
* "unixVer": "x"
|
|
142
|
+
* },
|
|
143
|
+
* "jd": {
|
|
144
|
+
* "hostVer": "x",
|
|
145
|
+
* "uniVer": "x",
|
|
146
|
+
* "unixVer": "x"
|
|
147
|
+
* }
|
|
148
|
+
* }
|
|
149
|
+
* }
|
|
150
|
+
*/
|
|
151
|
+
chooseContact(options: ChooseContactOptions): void;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type AddPhoneContact = (options: AddPhoneContactOptions) => void;
|
|
155
|
+
export type AddPhoneContactSuccess = {};
|
|
156
|
+
export type AddPhoneContactSuccessCallback = (result: AddPhoneContactSuccess) => void;
|
|
157
|
+
export type AddPhoneContactErrorCode = 601 | 602 | 603;
|
|
158
|
+
export interface IAddPhoneContactFail extends IUniError {
|
|
159
|
+
errCode: AddPhoneContactErrorCode
|
|
160
|
+
}
|
|
161
|
+
export type AddPhoneContactFail = UniError;
|
|
162
|
+
export type AddPhoneContactFailCallback = (result: AddPhoneContactFail) => void;
|
|
163
|
+
export type AddPhoneContactComplete = any;
|
|
164
|
+
export type AddPhoneContactCompleteCallback = (result: AddPhoneContactComplete) => void;
|
|
165
|
+
export type AddPhoneContactOptions = {
|
|
166
|
+
/**
|
|
167
|
+
* 头像本地文件路径
|
|
168
|
+
*/
|
|
169
|
+
photoFilePath?: string | null,
|
|
170
|
+
/**
|
|
171
|
+
* 昵称
|
|
172
|
+
*/
|
|
173
|
+
nickName?: string | null,
|
|
174
|
+
/**
|
|
175
|
+
* 姓氏
|
|
176
|
+
*/
|
|
177
|
+
lastName?: string | null,
|
|
178
|
+
/**
|
|
179
|
+
* 中间名
|
|
180
|
+
*/
|
|
181
|
+
middleName?: string | null,
|
|
182
|
+
/**
|
|
183
|
+
* 名字
|
|
184
|
+
*/
|
|
185
|
+
firstName?: string | null,
|
|
186
|
+
/**
|
|
187
|
+
* 备注
|
|
188
|
+
*/
|
|
189
|
+
remark?: string | null,
|
|
190
|
+
/**
|
|
191
|
+
* 手机号
|
|
192
|
+
*/
|
|
193
|
+
mobilePhoneNumber?: string | null,
|
|
194
|
+
/**
|
|
195
|
+
* 即时消息账号
|
|
196
|
+
*/
|
|
197
|
+
weChatNumber?: string | null,
|
|
198
|
+
/**
|
|
199
|
+
* 联系地址国家
|
|
200
|
+
*/
|
|
201
|
+
addressCountry?: string | null,
|
|
202
|
+
/**
|
|
203
|
+
* 联系地址省份
|
|
204
|
+
*/
|
|
205
|
+
addressState?: string | null,
|
|
206
|
+
/**
|
|
207
|
+
* 联系地址城市
|
|
208
|
+
*/
|
|
209
|
+
addressCity?: string | null,
|
|
210
|
+
/**
|
|
211
|
+
* 联系地址街道
|
|
212
|
+
*/
|
|
213
|
+
addressStreet?: string | null,
|
|
214
|
+
/**
|
|
215
|
+
* 联系地址邮政编码
|
|
216
|
+
*/
|
|
217
|
+
addressPostalCode?: string | null,
|
|
218
|
+
/**
|
|
219
|
+
* 公司
|
|
220
|
+
*/
|
|
221
|
+
organization?: string | null,
|
|
222
|
+
/**
|
|
223
|
+
* 职位
|
|
224
|
+
*/
|
|
225
|
+
title?: string | null,
|
|
226
|
+
/**
|
|
227
|
+
* 工作传真
|
|
228
|
+
*/
|
|
229
|
+
workFaxNumber?: string | null,
|
|
230
|
+
/**
|
|
231
|
+
* 工作电话
|
|
232
|
+
*/
|
|
233
|
+
workPhoneNumber?: string | null,
|
|
234
|
+
/**
|
|
235
|
+
* 公司电话
|
|
236
|
+
*/
|
|
237
|
+
hostNumber?: string | null,
|
|
238
|
+
/**
|
|
239
|
+
* 电子邮件
|
|
240
|
+
*/
|
|
241
|
+
email?: string | null,
|
|
242
|
+
/**
|
|
243
|
+
* 网站
|
|
244
|
+
*/
|
|
245
|
+
url?: string | null,
|
|
246
|
+
/**
|
|
247
|
+
* 工作地址国家
|
|
248
|
+
*/
|
|
249
|
+
workAddressCountry?: string | null,
|
|
250
|
+
/**
|
|
251
|
+
* 工作地址省份
|
|
252
|
+
*/
|
|
253
|
+
workAddressState?: string | null,
|
|
254
|
+
/**
|
|
255
|
+
* 工作地址城市
|
|
256
|
+
*/
|
|
257
|
+
workAddressCity?: string | null,
|
|
258
|
+
/**
|
|
259
|
+
* 工作地址街道
|
|
260
|
+
*/
|
|
261
|
+
workAddressStreet?: string | null,
|
|
262
|
+
/**
|
|
263
|
+
* 工作地址邮政编码
|
|
264
|
+
*/
|
|
265
|
+
workAddressPostalCode?: string | null,
|
|
266
|
+
/**
|
|
267
|
+
* 住宅传真
|
|
268
|
+
*/
|
|
269
|
+
homeFaxNumber?: string | null,
|
|
270
|
+
/**
|
|
271
|
+
* 住宅电话
|
|
272
|
+
*/
|
|
273
|
+
homePhoneNumber?: string | null,
|
|
274
|
+
/**
|
|
275
|
+
* 住宅地址国家
|
|
276
|
+
*/
|
|
277
|
+
homeAddressCountry?: string | null,
|
|
278
|
+
/**
|
|
279
|
+
* 住宅地址省份
|
|
280
|
+
*/
|
|
281
|
+
homeAddressState?: string | null,
|
|
282
|
+
/**
|
|
283
|
+
* 住宅地址城市
|
|
284
|
+
*/
|
|
285
|
+
homeAddressCity?: string | null,
|
|
286
|
+
/**
|
|
287
|
+
* 住宅地址街道
|
|
288
|
+
*/
|
|
289
|
+
homeAddressStreet?: string | null,
|
|
290
|
+
/**
|
|
291
|
+
* 住宅地址邮政编码
|
|
292
|
+
*/
|
|
293
|
+
homeAddressPostalCode?: string | null,
|
|
294
|
+
/**
|
|
295
|
+
* 接口调用成功的回调函数
|
|
296
|
+
*/
|
|
297
|
+
success?: AddPhoneContactSuccessCallback | null,
|
|
298
|
+
/**
|
|
299
|
+
* 接口调用失败的回调函数
|
|
300
|
+
*/
|
|
301
|
+
fail?: AddPhoneContactFailCallback | null,
|
|
302
|
+
/**
|
|
303
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
304
|
+
*/
|
|
305
|
+
complete?: AddPhoneContactCompleteCallback | null
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
export type ChooseContact = (options: ChooseContactOptions) => void;
|
|
309
|
+
export type ChooseContactSuccess = {
|
|
310
|
+
/**
|
|
311
|
+
* 联系人姓名
|
|
312
|
+
*/
|
|
313
|
+
displayName: string
|
|
314
|
+
/**
|
|
315
|
+
* 当前选中的手机号
|
|
316
|
+
*/
|
|
317
|
+
phoneNumber: string
|
|
318
|
+
/**
|
|
319
|
+
* 联系人的所有手机号
|
|
320
|
+
*/
|
|
321
|
+
phoneNumberList: Array<string>
|
|
322
|
+
/**
|
|
323
|
+
* 接口调用结果
|
|
324
|
+
*/
|
|
325
|
+
errMsg: string
|
|
326
|
+
};
|
|
327
|
+
export type ChooseContactSuccessCallback = (result: ChooseContactSuccess) => void;
|
|
328
|
+
export type ChooseContactErrorCode = 601 | 602 | 603;
|
|
329
|
+
export interface IChooseContactFail extends IUniError {
|
|
330
|
+
errCode: ChooseContactErrorCode
|
|
331
|
+
}
|
|
332
|
+
export type ChooseContactFail = UniError;
|
|
333
|
+
export type ChooseContactFailCallback = (result: ChooseContactFail) => void;
|
|
334
|
+
export type ChooseContactComplete = ChooseContactSuccess | ChooseContactFail;
|
|
335
|
+
export type ChooseContactCompleteCallback = (result: ChooseContactComplete) => void;
|
|
336
|
+
export type ChooseContactOptions = {
|
|
337
|
+
/**
|
|
338
|
+
* 接口调用成功的回调函数
|
|
339
|
+
*/
|
|
340
|
+
success?: ChooseContactSuccessCallback | null,
|
|
341
|
+
/**
|
|
342
|
+
* 接口调用失败的回调函数
|
|
343
|
+
*/
|
|
344
|
+
fail?: ChooseContactFailCallback | null,
|
|
345
|
+
/**
|
|
346
|
+
* 接口调用结束的回调函数(调用成功、失败都会执行)
|
|
347
|
+
*/
|
|
348
|
+
complete?: ChooseContactCompleteCallback | null
|
|
349
|
+
};
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
GetPrivacySettingFailCallback as GetPrivacySettingFailCallbackOrigin,
|
|
10
10
|
GetPrivacySettingCompleteCallback as GetPrivacySettingCompleteCallbackOrigin,
|
|
11
11
|
ResetPrivacyAuthorization as ResetPrivacyAuthorizationOrigin,
|
|
12
|
+
AgreePrivacyAuthorization as AgreePrivacyAuthorizationOrigin,
|
|
12
13
|
GetPrivacySettingSuccessResult as GetPrivacySettingSuccessResultOrigin,
|
|
13
14
|
GetPrivacySettingOptions as GetPrivacySettingOptionsOrigin,
|
|
14
15
|
Uni as UniOrigin
|
|
@@ -24,6 +25,7 @@
|
|
|
24
25
|
type GetPrivacySettingFailCallback = GetPrivacySettingFailCallbackOrigin
|
|
25
26
|
type GetPrivacySettingCompleteCallback = GetPrivacySettingCompleteCallbackOrigin
|
|
26
27
|
type ResetPrivacyAuthorization = ResetPrivacyAuthorizationOrigin
|
|
28
|
+
type AgreePrivacyAuthorization = AgreePrivacyAuthorizationOrigin
|
|
27
29
|
type GetPrivacySettingSuccessResult = GetPrivacySettingSuccessResultOrigin
|
|
28
30
|
type GetPrivacySettingOptions = GetPrivacySettingOptionsOrigin
|
|
29
31
|
interface Uni extends UniOrigin { }
|
|
@@ -85,76 +85,75 @@ export interface Uni {
|
|
|
85
85
|
* 获取隐私协议状态
|
|
86
86
|
* @tutorial https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#getprivacysetting
|
|
87
87
|
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/privacy.html#getprivacysetting
|
|
88
|
-
* @uniPlatform
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
88
|
+
* @uniPlatform {
|
|
89
|
+
* "app": {
|
|
90
|
+
* "android": {
|
|
91
|
+
* "osVer": "5.0",
|
|
92
|
+
* "uniVer": "4.31",
|
|
93
|
+
* "uniUtsPlugin": "4.31",
|
|
94
|
+
* "unixVer": "4.31"
|
|
95
|
+
* },
|
|
96
|
+
* "ios": {
|
|
97
|
+
* "osVer": "12.0",
|
|
98
|
+
* "uniVer": "4.31",
|
|
99
|
+
* "uniUtsPlugin": "4.31",
|
|
100
|
+
* "unixVer": "4.31",
|
|
101
|
+
* "unixUtsPlugin": "4.31"
|
|
102
|
+
* },
|
|
103
|
+
* "harmony": {
|
|
104
|
+
* "osVer": "5.0",
|
|
105
|
+
* "uniVer": "x",
|
|
106
|
+
* "unixVer": "4.61",
|
|
107
|
+
* "unixVaporVer": "5.0"
|
|
108
|
+
* }
|
|
109
|
+
* },
|
|
110
|
+
* "mp": {
|
|
111
|
+
* "weixin": {
|
|
112
|
+
* "hostVer": "2.32.3",
|
|
113
|
+
* "uniVer": "√",
|
|
114
|
+
* "unixVer": "4.41"
|
|
115
|
+
* },
|
|
116
|
+
* "alipay": {
|
|
117
|
+
* "hostVer": "√",
|
|
118
|
+
* "uniVer": "√",
|
|
119
|
+
* "unixVer": "x"
|
|
120
|
+
* },
|
|
121
|
+
* "baidu": {
|
|
122
|
+
* "hostVer": "√",
|
|
123
|
+
* "uniVer": "√",
|
|
124
|
+
* "unixVer": "x"
|
|
125
|
+
* },
|
|
126
|
+
* "toutiao": {
|
|
127
|
+
* "hostVer": "√",
|
|
128
|
+
* "uniVer": "√",
|
|
129
|
+
* "unixVer": "x"
|
|
130
|
+
* },
|
|
131
|
+
* "lark": {
|
|
132
|
+
* "hostVer": "√",
|
|
133
|
+
* "uniVer": "√",
|
|
134
|
+
* "unixVer": "x"
|
|
135
|
+
* },
|
|
136
|
+
* "qq": {
|
|
137
|
+
* "hostVer": "√",
|
|
138
|
+
* "uniVer": "√",
|
|
139
|
+
* "unixVer": "x"
|
|
140
|
+
* },
|
|
141
|
+
* "kuaishou": {
|
|
142
|
+
* "hostVer": "√",
|
|
143
|
+
* "uniVer": "√",
|
|
144
|
+
* "unixVer": "x"
|
|
145
|
+
* },
|
|
146
|
+
* "jd": {
|
|
147
|
+
* "hostVer": "√",
|
|
148
|
+
* "uniVer": "√",
|
|
149
|
+
* "unixVer": "x"
|
|
150
|
+
* }
|
|
151
|
+
* },
|
|
152
|
+
* "web": {
|
|
153
|
+
* "uniVer": "x",
|
|
154
|
+
* "unixVer": "x"
|
|
155
|
+
* }
|
|
156
|
+
* }
|
|
158
157
|
* @example
|
|
159
158
|
```typescript
|
|
160
159
|
uni.getPrivacySetting({
|
|
@@ -168,8 +167,9 @@ export interface Uni {
|
|
|
168
167
|
console.log('complete')
|
|
169
168
|
}
|
|
170
169
|
})
|
|
171
|
-
```
|
|
172
|
-
|
|
170
|
+
```
|
|
171
|
+
* @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/open-api/privacy/wx.getPrivacySetting.html
|
|
172
|
+
*/
|
|
173
173
|
getPrivacySetting(options: GetPrivacySettingOptions): void
|
|
174
174
|
|
|
175
175
|
/**
|
|
@@ -209,7 +209,14 @@ export interface Uni {
|
|
|
209
209
|
uni.resetPrivacyAuthorization()
|
|
210
210
|
```
|
|
211
211
|
*/
|
|
212
|
-
resetPrivacyAuthorization(): void
|
|
212
|
+
resetPrivacyAuthorization(): void
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* 设置隐私协议状态为同意
|
|
216
|
+
* @internal
|
|
217
|
+
*
|
|
218
|
+
*/
|
|
219
|
+
agreePrivacyAuthorization(): void
|
|
213
220
|
}
|
|
214
221
|
|
|
215
222
|
export type OnPrivacyAuthorizationChange = (callback: OnPrivacyAuthorizationChangeCallback) => number
|
|
@@ -258,7 +265,8 @@ export type GetPrivacySetting = (options: GetPrivacySettingOptions) => void
|
|
|
258
265
|
export type GetPrivacySettingSuccessCallback = (result: GetPrivacySettingSuccessResult) => void;
|
|
259
266
|
export type GetPrivacySettingFailCallback = (result: any) => void;
|
|
260
267
|
export type GetPrivacySettingCompleteCallback = (result: any) => void;
|
|
261
|
-
export type ResetPrivacyAuthorization = () => void
|
|
268
|
+
export type ResetPrivacyAuthorization = () => void;
|
|
269
|
+
export type AgreePrivacyAuthorization = () => void;
|
|
262
270
|
|
|
263
271
|
export type GetPrivacySettingSuccessResult = {
|
|
264
272
|
/**
|
|
@@ -334,7 +342,56 @@ export type GetPrivacySettingSuccessResult = {
|
|
|
334
342
|
}
|
|
335
343
|
}
|
|
336
344
|
*/
|
|
337
|
-
needAuthorization: boolean
|
|
345
|
+
needAuthorization: boolean
|
|
346
|
+
/**
|
|
347
|
+
* 隐私授权协议的名称
|
|
348
|
+
*
|
|
349
|
+
* @uniPlatform {
|
|
350
|
+
* "mp": {
|
|
351
|
+
* "weixin": {
|
|
352
|
+
* "hostVer": "√",
|
|
353
|
+
* "uniVer": "√",
|
|
354
|
+
* "unixVer": "4.41"
|
|
355
|
+
* },
|
|
356
|
+
* "alipay": {
|
|
357
|
+
* "hostVer": "-",
|
|
358
|
+
* "uniVer": "-",
|
|
359
|
+
* "unixVer": "-"
|
|
360
|
+
* },
|
|
361
|
+
* "baidu": {
|
|
362
|
+
* "hostVer": "-",
|
|
363
|
+
* "uniVer": "-",
|
|
364
|
+
* "unixVer": "-"
|
|
365
|
+
* },
|
|
366
|
+
* "toutiao": {
|
|
367
|
+
* "hostVer": "-",
|
|
368
|
+
* "uniVer": "-",
|
|
369
|
+
* "unixVer": "-"
|
|
370
|
+
* },
|
|
371
|
+
* "lark": {
|
|
372
|
+
* "hostVer": "-",
|
|
373
|
+
* "uniVer": "-",
|
|
374
|
+
* "unixVer": "-"
|
|
375
|
+
* },
|
|
376
|
+
* "qq": {
|
|
377
|
+
* "hostVer": "-",
|
|
378
|
+
* "uniVer": "-",
|
|
379
|
+
* "unixVer": "-"
|
|
380
|
+
* },
|
|
381
|
+
* "kuaishou": {
|
|
382
|
+
* "hostVer": "-",
|
|
383
|
+
* "uniVer": "-",
|
|
384
|
+
* "unixVer": "-"
|
|
385
|
+
* },
|
|
386
|
+
* "jd": {
|
|
387
|
+
* "hostVer": "-",
|
|
388
|
+
* "uniVer": "-",
|
|
389
|
+
* "unixVer": "-"
|
|
390
|
+
* }
|
|
391
|
+
* }
|
|
392
|
+
* }
|
|
393
|
+
*/
|
|
394
|
+
privacyContractName?: string | null;
|
|
338
395
|
}
|
|
339
396
|
|
|
340
397
|
export type GetPrivacySettingOptions = {
|
|
@@ -2,7 +2,7 @@ export interface Uni {
|
|
|
2
2
|
/**
|
|
3
3
|
* 设置屏幕亮度。
|
|
4
4
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
5
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
5
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
6
6
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
7
7
|
*
|
|
8
8
|
* @uniPlatform {
|
|
@@ -77,7 +77,7 @@ export interface Uni {
|
|
|
77
77
|
/**
|
|
78
78
|
* 获取屏幕亮度。
|
|
79
79
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
80
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
80
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
81
81
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
82
82
|
*
|
|
83
83
|
* @uniPlatform {
|
|
@@ -152,7 +152,7 @@ export interface Uni {
|
|
|
152
152
|
/**
|
|
153
153
|
* 设置是否保持常亮状态。仅在当前应用生效,离开应用后设置失效。
|
|
154
154
|
* @tutorial https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
155
|
-
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/
|
|
155
|
+
* @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/brightness.html
|
|
156
156
|
* @tutorial_uni_app https://uniapp.dcloud.net.cn/api/system/brightness.html
|
|
157
157
|
*
|
|
158
158
|
* @uniPlatform {
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// 本文件为自动构建生成
|
|
2
|
+
import {
|
|
3
|
+
VibrateShortType as VibrateShortTypeOrigin,
|
|
4
|
+
VibrateShortSuccess as VibrateShortSuccessOrigin,
|
|
5
|
+
VibrateLongSuccess as VibrateLongSuccessOrigin,
|
|
6
|
+
VibrateErrorCode as VibrateErrorCodeOrigin,
|
|
7
|
+
VibrateFail as VibrateFailOrigin,
|
|
8
|
+
VibrateShortOptions as VibrateShortOptionsOrigin,
|
|
9
|
+
VibrateLongOptions as VibrateLongOptionsOrigin,
|
|
10
|
+
VibrateShort as VibrateShortOrigin,
|
|
11
|
+
VibrateLong as VibrateLongOrigin,
|
|
12
|
+
Uni as UniOrigin
|
|
13
|
+
} from './interface'
|
|
14
|
+
|
|
15
|
+
declare global {
|
|
16
|
+
type VibrateShortType = VibrateShortTypeOrigin
|
|
17
|
+
type VibrateShortSuccess = VibrateShortSuccessOrigin
|
|
18
|
+
type VibrateLongSuccess = VibrateLongSuccessOrigin
|
|
19
|
+
type VibrateErrorCode = VibrateErrorCodeOrigin
|
|
20
|
+
type VibrateFail = VibrateFailOrigin
|
|
21
|
+
type VibrateShortOptions = VibrateShortOptionsOrigin
|
|
22
|
+
type VibrateLongOptions = VibrateLongOptionsOrigin
|
|
23
|
+
type VibrateShort = VibrateShortOrigin
|
|
24
|
+
type VibrateLong = VibrateLongOrigin
|
|
25
|
+
interface Uni extends UniOrigin { }
|
|
26
|
+
}
|
|
27
|
+
|