@dcloudio/uni-app-x 0.7.32 → 0.7.34

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 (30) hide show
  1. package/package.json +1 -1
  2. package/types/app.d.ts +182 -146
  3. package/types/native/CSSStyleDeclaration.d.ts +72 -0
  4. package/types/native/DOMRect.d.ts +180 -0
  5. package/types/native/DrawableContext.d.ts +471 -4
  6. package/types/native/SnapshotOptions.d.ts +0 -1
  7. package/types/native/UniEvent.d.ts +23 -1
  8. package/types/page.d.ts +99 -84
  9. package/types/uni/uts-plugin-api/global.d.ts +2 -0
  10. package/types/uni/uts-plugin-api/index.d.ts +2 -0
  11. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/global.d.ts +20 -0
  12. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/index.d.ts +9 -0
  13. package/types/uni/uts-plugin-api/lib/uni-crash/utssdk/interface.d.ts +48 -0
  14. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +6 -6
  15. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +20 -20
  16. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/global.d.ts +22 -0
  17. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/index.d.ts +10 -0
  18. package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent-uni1/utssdk/interface.d.ts +781 -0
  19. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +7 -5
  20. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +4 -4
  21. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +33 -33
  22. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/global.d.ts +2 -2
  23. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/index.d.ts +1 -1
  24. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +3 -4
  25. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +224 -5
  26. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/global.d.ts +14 -8
  27. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/index.d.ts +7 -4
  28. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +1788 -183
  29. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +686 -661
  30. package/types/uni-cloud/interface.d.ts +1 -1
@@ -7,33 +7,38 @@ export interface Uni {
7
7
  * @return {void}
8
8
  * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#getpushclientid
9
9
  * @uniPlatform {
10
- * "app": {
11
- * "android": {
12
- * "osVer": "4.4",
13
- * "uniVer": "√",
14
- * "unixVer": "3.98"
15
- * },
16
- * "ios": {
17
- * "osVer": "12.0",
18
- * "uniVer": "√",
19
- * "unixVer": "4.18"
20
- * }
21
- * },
22
- * "web": {
23
- * "uniVer": "x",
24
- * "unixVer": "4.27"
25
- * }
10
+ * "app": {
11
+ * "android": {
12
+ * "osVer": "4.4",
13
+ * "uniVer": "√",
14
+ * "unixVer": "3.98"
15
+ * },
16
+ * "ios": {
17
+ * "osVer": "12.0",
18
+ * "uniVer": "√",
19
+ * "unixVer": "4.18"
20
+ * },
21
+ * "harmony": {
22
+ * "osVer": "3.0",
23
+ * "uniVer": "4.31",
24
+ * "unixVer": "x"
25
+ * }
26
+ * },
27
+ * "web": {
28
+ * "uniVer": "x",
29
+ * "unixVer": "4.27"
30
+ * }
26
31
  * }
27
32
  * @example
28
- ```typescript
33
+ ```typescript
29
34
  uni.getPushClientId({
30
- complete: (res: any) => {
31
- console.log("getPushClientId complete => " + JSON.stringify(res));
32
- }
35
+ complete: (res: any) => {
36
+ console.log("getPushClientId complete => " + JSON.stringify(res));
37
+ }
33
38
  });
34
- ```
39
+ ```
35
40
  */
36
- getPushClientId(options : GetPushClientIdOptions) : void;
41
+ getPushClientId(options: GetPushClientIdOptions): void;
37
42
  /**
38
43
  * onPushMessage()
39
44
  * @description
@@ -42,31 +47,36 @@ export interface Uni {
42
47
  * @return {void}
43
48
  * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#onpushmessage
44
49
  * @uniPlatform {
45
- * "app": {
46
- * "android": {
47
- * "osVer": "4.4",
48
- * "uniVer": "√",
49
- * "unixVer": "3.98"
50
- * },
51
- * "ios": {
52
- * "osVer": "12.0",
53
- * "uniVer": "√",
54
- * "unixVer": "4.18"
55
- * }
56
- * },
57
- * "web": {
58
- * "uniVer": "x",
59
- * "unixVer": "4.27"
60
- * }
50
+ * "app": {
51
+ * "android": {
52
+ * "osVer": "4.4",
53
+ * "uniVer": "√",
54
+ * "unixVer": "3.98"
55
+ * },
56
+ * "ios": {
57
+ * "osVer": "12.0",
58
+ * "uniVer": "√",
59
+ * "unixVer": "4.18"
60
+ * },
61
+ * "harmony": {
62
+ * "osVer": "3.0",
63
+ * "uniVer": "4.31",
64
+ * "unixVer": "x"
65
+ * }
66
+ * },
67
+ * "web": {
68
+ * "uniVer": "x",
69
+ * "unixVer": "4.27"
70
+ * }
61
71
  * }
62
72
  * @example
63
73
  ```typescript
64
74
  uni.onPushMessage((res : OnPushMessageCallbackResult) => {
65
- console.log("onPushMessage => " + JSON.stringify(res))
75
+ console.log("onPushMessage => " + JSON.stringify(res))
66
76
  });
67
77
  ```
68
78
  */
69
- onPushMessage(callback : OnPushMessageCallback) : void;
79
+ onPushMessage(callback: OnPushMessageCallback): void;
70
80
  /**
71
81
  * offPushMessage()
72
82
  * @description
@@ -75,32 +85,37 @@ export interface Uni {
75
85
  * @return {void}
76
86
  * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#offpushmessage
77
87
  * @uniPlatform {
78
- * "app": {
79
- * "android": {
80
- * "osVer": "4.4",
81
- * "uniVer": "√",
82
- * "unixVer": "3.98"
83
- * },
84
- * "ios": {
85
- * "osVer": "12.0",
86
- * "uniVer": "√",
87
- * "unixVer": "4.18"
88
- * }
89
- * },
90
- * "web": {
91
- * "uniVer": "x",
92
- * "unixVer": "4.27"
93
- * }
88
+ * "app": {
89
+ * "android": {
90
+ * "osVer": "4.4",
91
+ * "uniVer": "√",
92
+ * "unixVer": "3.98"
93
+ * },
94
+ * "ios": {
95
+ * "osVer": "12.0",
96
+ * "uniVer": "√",
97
+ * "unixVer": "4.18"
98
+ * },
99
+ * "harmony": {
100
+ * "osVer": "3.0",
101
+ * "uniVer": "4.31",
102
+ * "unixVer": "x"
103
+ * }
104
+ * },
105
+ * "web": {
106
+ * "uniVer": "x",
107
+ * "unixVer": "4.27"
108
+ * }
94
109
  * }
95
110
  * @example
96
111
  ```typescript
97
112
  const cb = (res : OnPushMessageCallbackResult) => {
98
- console.log("onPushMessage => " + JSON.stringify(res))
113
+ console.log("onPushMessage => " + JSON.stringify(res))
99
114
  }
100
115
  uni.offPushMessage(cb);
101
116
  ```
102
117
  */
103
- offPushMessage(callback : OnPushMessageCallback) : void;
118
+ offPushMessage(callback: OnPushMessageCallback): void;
104
119
  /**
105
120
  * getChannelManager()
106
121
  * @description
@@ -109,41 +124,41 @@ export interface Uni {
109
124
  * @param {void}
110
125
  * @return {ChannelManager}
111
126
  * @uniPlatform {
112
- * "app": {
113
- * "android": {
114
- * "osVer": "4.4",
115
- * "uniVer": "3.98",
116
- * "unixVer": "3.98"
117
- * },
118
- * "ios": {
119
- * "osVer": "x",
120
- * "uniVer": "x",
121
- * "unixVer": "x"
122
- * }
123
- * },
124
- * "web": {
125
- * "uniVer": "x",
126
- * "unixVer": "x"
127
- * }
127
+ * "app": {
128
+ * "android": {
129
+ * "osVer": "4.4",
130
+ * "uniVer": "3.98",
131
+ * "unixVer": "3.98"
132
+ * },
133
+ * "ios": {
134
+ * "osVer": "x",
135
+ * "uniVer": "x",
136
+ * "unixVer": "x"
137
+ * }
138
+ * },
139
+ * "web": {
140
+ * "uniVer": "x",
141
+ * "unixVer": "x"
142
+ * }
128
143
  * }
129
144
  * @example
130
145
  ```typescript
131
146
  const channelManager = uni.getChannelManager();
132
147
  channelManager.setPushChannel({
133
- channelId: "test1",
134
- channelDesc: "test1 desc",
135
- soundName: "pushsound",
136
- enableLights: true,
137
- enableVibration: true,
138
- importance: 4,
139
- lockscreenVisibility: 1
148
+ channelId: "test1",
149
+ channelDesc: "test1 desc",
150
+ soundName: "pushsound",
151
+ enableLights: true,
152
+ enableVibration: true,
153
+ importance: 4,
154
+ lockscreenVisibility: 1
140
155
  })
141
156
  const channels = channelManager.getAllChannels() as string[]
142
157
  console.log("channels : " + channels);
143
158
  ```
144
159
  */
145
- getChannelManager() : ChannelManager;
146
-
160
+ getChannelManager(): ChannelManager;
161
+
147
162
  /**
148
163
  * getPushChannelManager()
149
164
  * @description
@@ -151,41 +166,41 @@ export interface Uni {
151
166
  * @param {void}
152
167
  * @return {PushChannelManager}
153
168
  * @uniPlatform {
154
- * "app": {
155
- * "android": {
156
- * "osVer": "4.4",
157
- * "uniVer": "4.25",
158
- * "unixVer": "4.25"
159
- * },
160
- * "ios": {
161
- * "osVer": "x",
162
- * "uniVer": "x",
163
- * "unixVer": "x"
164
- * }
165
- * },
166
- * "web": {
167
- * "uniVer": "x",
168
- * "unixVer": "x"
169
- * }
169
+ * "app": {
170
+ * "android": {
171
+ * "osVer": "4.4",
172
+ * "uniVer": "4.25",
173
+ * "unixVer": "4.25"
174
+ * },
175
+ * "ios": {
176
+ * "osVer": "x",
177
+ * "uniVer": "x",
178
+ * "unixVer": "x"
179
+ * }
180
+ * },
181
+ * "web": {
182
+ * "uniVer": "x",
183
+ * "unixVer": "x"
184
+ * }
170
185
  * }
171
186
  * @example
172
187
  ```typescript
173
188
  const channelManager = uni.getPushChannelManager();
174
189
  channelManager.setPushChannel({
175
- channelId: "test1",
176
- channelDesc: "test1 desc",
177
- soundName: "pushsound",
178
- enableLights: true,
179
- enableVibration: true,
180
- importance: 4,
181
- lockscreenVisibility: 1
190
+ channelId: "test1",
191
+ channelDesc: "test1 desc",
192
+ soundName: "pushsound",
193
+ enableLights: true,
194
+ enableVibration: true,
195
+ importance: 4,
196
+ lockscreenVisibility: 1
182
197
  })
183
198
  const channels = channelManager.getAllChannels() as string[]
184
199
  console.log("channels : " + channels);
185
200
  ```
186
201
  */
187
- getPushChannelManager() : PushChannelManager;
188
-
202
+ getPushChannelManager(): PushChannelManager;
203
+
189
204
  /**
190
205
  * createPushMessage()
191
206
  * @description
@@ -194,156 +209,166 @@ export interface Uni {
194
209
  * @return {void}
195
210
  * @tutorial http://uniapp.dcloud.io/api/plugins/push.html#createpushmessage
196
211
  * @uniPlatform {
197
- * "app": {
198
- * "android": {
199
- * "osVer": "4.4",
200
- * "uniVer": "√",
201
- * "unixVer": "3.98"
202
- * },
203
- * "ios": {
204
- * "osVer": "12.0",
205
- * "uniVer": "√",
206
- * "unixVer": "4.18"
207
- * }
208
- * },
209
- * "web": {
210
- * "uniVer": "x",
211
- * "unixVer": "x"
212
- * }
212
+ * "app": {
213
+ * "android": {
214
+ * "osVer": "4.4",
215
+ * "uniVer": "√",
216
+ * "unixVer": "3.98"
217
+ * },
218
+ * "ios": {
219
+ * "osVer": "12.0",
220
+ * "uniVer": "√",
221
+ * "unixVer": "4.18"
222
+ * },
223
+ * "harmony": {
224
+ * "osVer": "3.0",
225
+ * "uniVer": "4.31",
226
+ * "unixVer": "x"
227
+ * }
228
+ * },
229
+ * "web": {
230
+ * "uniVer": "x",
231
+ * "unixVer": "x"
232
+ * }
213
233
  * }
214
234
  * @example
215
235
  ```typescript
216
236
  uni.createPushMessage({
217
- title: "标题",
218
- content: "您有新的消息",
219
- cover:true,
220
- channelId: "test1",
221
- when:1697623177000,
222
- icon:"/static/icon.png",
223
- delay:5,
224
- payload:{
225
- pkey:"pvalue1"
226
- },
227
- channelId:"message",
228
- category : "IM",
229
- success(res : CreatePushMessageSuccess) {
230
- console.log("res: " + res);
231
- }
237
+ title: "标题",
238
+ content: "您有新的消息",
239
+ cover:true,
240
+ channelId: "test1",
241
+ when:1697623177000,
242
+ icon:"/static/icon.png",
243
+ delay:5,
244
+ payload:{
245
+ pkey:"pvalue1"
246
+ },
247
+ channelId:"message",
248
+ category : "IM",
249
+ success(res : CreatePushMessageSuccess) {
250
+ console.log("res: " + res);
251
+ }
232
252
  });
233
253
  ```
234
254
  */
235
- createPushMessage(options : CreatePushMessageOptions) : void;
236
-
237
- /**
238
- * setAppBadgeNumber()
239
- * @description 设置应用图标上显示的角标数字,注意:不同手机厂商的角标显示规则不同,有部分设备的rom版本不支持显示角标,另有部分rom需要在应用的通知管理里开启`桌面角标`配置,才可以设置角标成功。
240
- * @param num - 要显示的角标数字值,参数为0则表示清除角标数字。
241
- * @param options - 小米手机显示角标需要在系统消息中心显示一条通知,此参数用于设置通知的标题(title)和内容(content)。
242
- * @return {void}
243
- * @uniPlatform {
244
- * "app": {
245
- * "android": {
246
- * "osVer": "5.0",
247
- * "uniVer": "x",
248
- * "unixVer": "4.25"
249
- * },
250
- * "ios": {
251
- * "osVer": "12.0",
252
- * "uniVer": "x",
253
- * "unixVer": "4.25"
254
- * }
255
- * },
256
- * "web": {
257
- * "uniVer": "x",
258
- * "unixVer": "x"
259
- * }
260
- * }
261
- *
255
+ createPushMessage(options: CreatePushMessageOptions): void;
256
+
257
+ /**
258
+ * setAppBadgeNumber()
259
+ * @description 设置应用图标上显示的角标数字,注意:不同手机厂商的角标显示规则不同,有部分设备的rom版本不支持显示角标,另有部分rom需要在应用的通知管理里开启`桌面角标`配置,才可以设置角标成功。
260
+ * @param num - 要显示的角标数字值,参数为0则表示清除角标数字。
261
+ * @param options - 小米手机显示角标需要在系统消息中心显示一条通知,此参数用于设置通知的标题(title)和内容(content)。
262
+ * @return {void}
263
+ * @uniPlatform {
264
+ * "app": {
265
+ * "android": {
266
+ * "osVer": "5.0",
267
+ * "uniVer": "x",
268
+ * "unixVer": "4.25"
269
+ * },
270
+ * "ios": {
271
+ * "osVer": "12.0",
272
+ * "uniVer": "x",
273
+ * "unixVer": "4.25"
274
+ * },
275
+ * "harmony": {
276
+ * "osVer": "3.0",
277
+ * "uniVer": "4.31",
278
+ * "unixVer": "x"
279
+ * }
280
+ * },
281
+ * "web": {
282
+ * "uniVer": "x",
283
+ * "unixVer": "x"
284
+ * }
285
+ * }
286
+ *
262
287
  * @example
263
288
  ```typescript
264
- if (uni.getDeviceInfo().deviceBrand?.toLowerCase() == "xiaomi") {
265
- uni.setAppBadgeNumber(1, {
266
- title:"AppName",
267
- content: "您有1条未读消息"
268
- } as BadgeOptions)
269
- } else {
270
- uni.setAppBadgeNumber(5)
271
- }
289
+ if (uni.getDeviceInfo().deviceBrand?.toLowerCase() == "xiaomi") {
290
+ uni.setAppBadgeNumber(1, {
291
+ title:"AppName",
292
+ content: "您有1条未读消息"
293
+ } as BadgeOptions)
294
+ } else {
295
+ uni.setAppBadgeNumber(5)
296
+ }
272
297
  ```
273
298
  */
274
- setAppBadgeNumber(num : number, options ?: BadgeOptions | null) : void;
299
+ setAppBadgeNumber(num: number, options?: BadgeOptions | null): void;
275
300
  }
276
301
 
277
- export type GetPushClientId = (options : GetPushClientIdOptions) => void;
302
+ export type GetPushClientId = (options: GetPushClientIdOptions) => void;
278
303
  export type GetPushClientIdSuccess = {
279
- /**
280
- * 个推客户端推送id,对应uni-id-device表的push_clientid
281
- *
282
- * @uniPlatform {
283
- * "app": {
284
- * "android": {
285
- * "osVer": "4.4",
286
- * "uniVer": "√",
287
- * "unixVer": "3.98"
288
- * },
289
- * "ios": {
290
- * "osVer": "12.0",
291
- * "uniVer": "√",
292
- * "unixVer": "4.18"
293
- * }
294
- * },
295
- * "web": {
296
- * "uniVer": "x",
297
- * "unixVer": "4.27"
298
- * }
299
- * }
300
- */
301
- cid : string,
302
- /**
303
- * 错误描述
304
- *
305
- * @uniPlatform {
306
- * "app": {
307
- * "android": {
308
- * "osVer": "4.4",
309
- * "uniVer": "√",
310
- * "unixVer": "3.98"
311
- * },
312
- * "ios": {
313
- * "osVer": "12.0",
314
- * "uniVer": "√",
315
- * "unixVer": "4.18"
316
- * }
317
- * },
318
- * "web": {
319
- * "uniVer": "x",
320
- * "unixVer": "4.27"
321
- * }
322
- * }
323
- */
324
- errMsg : string
304
+ /**
305
+ * 个推客户端推送id,对应uni-id-device表的push_clientid
306
+ *
307
+ * @uniPlatform {
308
+ * "app": {
309
+ * "android": {
310
+ * "osVer": "4.4",
311
+ * "uniVer": "√",
312
+ * "unixVer": "3.98"
313
+ * },
314
+ * "ios": {
315
+ * "osVer": "12.0",
316
+ * "uniVer": "√",
317
+ * "unixVer": "4.18"
318
+ * }
319
+ * },
320
+ * "web": {
321
+ * "uniVer": "x",
322
+ * "unixVer": "4.27"
323
+ * }
324
+ * }
325
+ */
326
+ cid: string,
327
+ /**
328
+ * 错误描述
329
+ *
330
+ * @uniPlatform {
331
+ * "app": {
332
+ * "android": {
333
+ * "osVer": "4.4",
334
+ * "uniVer": "√",
335
+ * "unixVer": "3.98"
336
+ * },
337
+ * "ios": {
338
+ * "osVer": "12.0",
339
+ * "uniVer": "√",
340
+ * "unixVer": "4.18"
341
+ * }
342
+ * },
343
+ * "web": {
344
+ * "uniVer": "x",
345
+ * "unixVer": "4.27"
346
+ * }
347
+ * }
348
+ */
349
+ errMsg: string
325
350
  };
326
- export type GetPushClientIdSuccessCallback = (result : GetPushClientIdSuccess) => void;
351
+ export type GetPushClientIdSuccessCallback = (result: GetPushClientIdSuccess) => void;
327
352
  export type GetPushClientIdFail = UniError;
328
- export type GetPushClientIdFailCallback = (result : GetPushClientIdFail) => void;
353
+ export type GetPushClientIdFailCallback = (result: GetPushClientIdFail) => void;
329
354
  export type GetPushClientIdComplete = any;
330
- export type GetPushClientIdCompleteCallback = (result : GetPushClientIdComplete) => void;
355
+ export type GetPushClientIdCompleteCallback = (result: GetPushClientIdComplete) => void;
331
356
  export type GetPushClientIdOptions = {
332
- /**
333
- * 接口调用成功的回调函数
334
- * @defaultValue null
335
- */
336
- success ?: GetPushClientIdSuccessCallback | null,
337
- /**
338
- * 接口调用失败的回调函数
339
- * @defaultValue null
340
- */
341
- fail ?: GetPushClientIdFailCallback | null,
342
- /**
343
- * 接口调用结束的回调函数(调用成功、失败都会执行)
344
- * @defaultValue null
345
- */
346
- complete ?: GetPushClientIdCompleteCallback | null
357
+ /**
358
+ * 接口调用成功的回调函数
359
+ * @defaultValue null
360
+ */
361
+ success?: GetPushClientIdSuccessCallback | null,
362
+ /**
363
+ * 接口调用失败的回调函数
364
+ * @defaultValue null
365
+ */
366
+ fail?: GetPushClientIdFailCallback | null,
367
+ /**
368
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
369
+ * @defaultValue null
370
+ */
371
+ complete?: GetPushClientIdCompleteCallback | null
347
372
  };
348
373
  /**
349
374
  * 事件类型
@@ -352,410 +377,410 @@ export type GetPushClientIdOptions = {
352
377
  */
353
378
  export type OnPushMessageType = "click" | "receive";
354
379
 
355
- export type OnPushMessageCallbackResult= {
356
- /**
357
- * 事件类型
358
- * @type{OnPushMessageType}
359
- *
360
- * @uniPlatform {
361
- * "app": {
362
- * "android": {
363
- * "osVer": "4.4",
364
- * "uniVer": "√",
365
- * "unixVer": "3.98"
366
- * },
367
- * "ios": {
368
- * "osVer": "12.0",
369
- * "uniVer": "√",
370
- * "unixVer": "4.18"
371
- * }
372
- * },
373
- * "web": {
374
- * "uniVer": "x",
375
- * "unixVer": "4.27"
376
- * }
377
- * }
378
- */
379
- type : OnPushMessageType,
380
- /**
381
- * 消息内容
382
- *
383
- * @uniPlatform {
384
- * "app": {
385
- * "android": {
386
- * "osVer": "4.4",
387
- * "uniVer": "√",
388
- * "unixVer": "3.98"
389
- * },
390
- * "ios": {
391
- * "osVer": "12.0",
392
- * "uniVer": "√",
393
- * "unixVer": "4.18"
394
- * }
395
- * },
396
- * "web": {
397
- * "uniVer": "x",
398
- * "unixVer": "4.27"
399
- * }
400
- * }
401
- */
402
- data : UTSJSONObject
380
+ export type OnPushMessageCallbackResult = {
381
+ /**
382
+ * 事件类型
383
+ * @type{OnPushMessageType}
384
+ *
385
+ * @uniPlatform {
386
+ * "app": {
387
+ * "android": {
388
+ * "osVer": "4.4",
389
+ * "uniVer": "√",
390
+ * "unixVer": "3.98"
391
+ * },
392
+ * "ios": {
393
+ * "osVer": "12.0",
394
+ * "uniVer": "√",
395
+ * "unixVer": "4.18"
396
+ * }
397
+ * },
398
+ * "web": {
399
+ * "uniVer": "x",
400
+ * "unixVer": "4.27"
401
+ * }
402
+ * }
403
+ */
404
+ type: OnPushMessageType,
405
+ /**
406
+ * 消息内容
407
+ *
408
+ * @uniPlatform {
409
+ * "app": {
410
+ * "android": {
411
+ * "osVer": "4.4",
412
+ * "uniVer": "√",
413
+ * "unixVer": "3.98"
414
+ * },
415
+ * "ios": {
416
+ * "osVer": "12.0",
417
+ * "uniVer": "√",
418
+ * "unixVer": "4.18"
419
+ * }
420
+ * },
421
+ * "web": {
422
+ * "uniVer": "x",
423
+ * "unixVer": "4.27"
424
+ * }
425
+ * }
426
+ */
427
+ data: UTSJSONObject
403
428
  };
404
429
 
405
- export type OnPushMessageCallback = (result : OnPushMessageCallbackResult) => void;
406
- export type OnPushMessage = (callback : OnPushMessageCallback) => void;
407
- export type OffPushMessage = (callback : OnPushMessageCallback) => void;
430
+ export type OnPushMessageCallback = (result: OnPushMessageCallbackResult) => void;
431
+ export type OnPushMessage = (callback: OnPushMessageCallback) => void;
432
+ export type OffPushMessage = (callback: OnPushMessageCallback) => void;
408
433
 
409
434
 
410
435
  export type GetChannelManager = () => ChannelManager;
411
436
  export type SetPushChannelOptions = {
412
- /**
413
- * 添加的声音文件,注意raw目录下必须要有 ,不传此字段将使用默认铃音。
414
- * @defaultValue null
415
- */
416
- soundName? : string | null,
417
- /**
418
- * 通知渠道id
419
- */
420
- channelId : string,
421
- /**
422
- * 通知渠道描述
423
- */
424
- channelDesc : string,
425
- /**
426
- * 呼吸灯闪烁
427
- * @defaultValue false
428
- */
429
- enableLights? : boolean | null,
430
- /**
431
- * 震动
432
- * @defaultValue false
433
- */
434
- enableVibration? : boolean | null,
435
- /**
436
- * 通知的重要性级别,可选范围IMPORTANCE_LOW:2、IMPORTANCE_DEFAULT:3、IMPORTANCE_HIGH:4 。
437
- * @defaultValue 3
438
- */
439
- importance? : number | null,
440
- /**
441
- * 锁屏可见性,可选范围VISIBILITY_PRIVATE:0、VISIBILITY_PUBLIC:1、VISIBILITY_SECRET:-1、VISIBILITY_NO_OVERRIDE:-1000。
442
- * @defaultValue -1000
443
- */
444
- lockscreenVisibility? : number | null
437
+ /**
438
+ * 添加的声音文件,注意raw目录下必须要有 ,不传此字段将使用默认铃音。
439
+ * @defaultValue null
440
+ */
441
+ soundName?: string | null,
442
+ /**
443
+ * 通知渠道id
444
+ */
445
+ channelId: string,
446
+ /**
447
+ * 通知渠道描述
448
+ */
449
+ channelDesc: string,
450
+ /**
451
+ * 呼吸灯闪烁
452
+ * @defaultValue false
453
+ */
454
+ enableLights?: boolean | null,
455
+ /**
456
+ * 震动
457
+ * @defaultValue false
458
+ */
459
+ enableVibration?: boolean | null,
460
+ /**
461
+ * 通知的重要性级别,可选范围IMPORTANCE_LOW:2、IMPORTANCE_DEFAULT:3、IMPORTANCE_HIGH:4 。
462
+ * @defaultValue 3
463
+ */
464
+ importance?: number | null,
465
+ /**
466
+ * 锁屏可见性,可选范围VISIBILITY_PRIVATE:0、VISIBILITY_PUBLIC:1、VISIBILITY_SECRET:-1、VISIBILITY_NO_OVERRIDE:-1000。
467
+ * @defaultValue -1000
468
+ */
469
+ lockscreenVisibility?: number | null
445
470
  }
446
471
 
447
472
  export interface ChannelManager {
448
- /**
449
- * 设置推送渠道
450
- *
451
- * @uniPlatform {
452
- * "app": {
453
- * "android": {
454
- * "osVer": "4.4",
455
- * "uniVer": "√",
456
- * "unixVer": "3.98"
457
- * },
458
- * "ios": {
459
- * "osVer": "x",
460
- * "uniVer": "x",
461
- * "unixVer": "x"
462
- * }
463
- * },
464
- * "web": {
465
- * "uniVer": "x",
466
- * "unixVer": "x"
467
- * }
468
- * }
469
- */
470
- setPushChannel(options : SetPushChannelOptions) : void;
471
- /**
472
- * 获取当前应用注册的所有的通知渠道。
473
- *
474
- * @uniPlatform {
475
- * "app": {
476
- * "android": {
477
- * "osVer": "4.4",
478
- * "uniVer": "√",
479
- * "unixVer": "3.98"
480
- * },
481
- * "ios": {
482
- * "osVer": "x",
483
- * "uniVer": "x",
484
- * "unixVer": "x"
485
- * }
486
- * },
487
- * "web": {
488
- * "uniVer": "x",
489
- * "unixVer": "x"
490
- * }
491
- * }
492
- */
493
- getAllChannels() : Array<string>;
473
+ /**
474
+ * 设置推送渠道
475
+ *
476
+ * @uniPlatform {
477
+ * "app": {
478
+ * "android": {
479
+ * "osVer": "4.4",
480
+ * "uniVer": "√",
481
+ * "unixVer": "3.98"
482
+ * },
483
+ * "ios": {
484
+ * "osVer": "x",
485
+ * "uniVer": "x",
486
+ * "unixVer": "x"
487
+ * }
488
+ * },
489
+ * "web": {
490
+ * "uniVer": "x",
491
+ * "unixVer": "x"
492
+ * }
493
+ * }
494
+ */
495
+ setPushChannel(options: SetPushChannelOptions): void;
496
+ /**
497
+ * 获取当前应用注册的所有的通知渠道。
498
+ *
499
+ * @uniPlatform {
500
+ * "app": {
501
+ * "android": {
502
+ * "osVer": "4.4",
503
+ * "uniVer": "√",
504
+ * "unixVer": "3.98"
505
+ * },
506
+ * "ios": {
507
+ * "osVer": "x",
508
+ * "uniVer": "x",
509
+ * "unixVer": "x"
510
+ * }
511
+ * },
512
+ * "web": {
513
+ * "uniVer": "x",
514
+ * "unixVer": "x"
515
+ * }
516
+ * }
517
+ */
518
+ getAllChannels(): Array<string>;
494
519
  }
495
520
 
496
521
  export type PushChannelManager = ChannelManager
497
522
 
498
523
 
499
- export type CreatePushMessage = (options : CreatePushMessageOptions) => void;
524
+ export type CreatePushMessage = (options: CreatePushMessageOptions) => void;
500
525
  export type CreatePushMessageSuccess = {};
501
- export type CreatePushMessageSuccessCallback = (result : CreatePushMessageSuccess) => void;
526
+ export type CreatePushMessageSuccessCallback = (result: CreatePushMessageSuccess) => void;
502
527
  export type CreatePushMessageFail = UniError;
503
- export type CreatePushMessageFailCallback = (result : CreatePushMessageFail) => void;
528
+ export type CreatePushMessageFailCallback = (result: CreatePushMessageFail) => void;
504
529
  export type CreatePushMessageComplete = any;
505
- export type CreatePushMessageCompleteCallback = (result : CreatePushMessageComplete) => void;
530
+ export type CreatePushMessageCompleteCallback = (result: CreatePushMessageComplete) => void;
506
531
  export type CreatePushMessageOptions = {
507
- /**
508
- * 是否覆盖上一次提示的消息
509
- * @type boolean
510
- * @defaultValue false
511
- * @uniPlatform {
512
- * "app": {
513
- * "android": {
514
- * "osVer": "4.4",
515
- * "uniVer": "√",
516
- * "unixVer": "3.98"
517
- * },
518
- * "ios": {
519
- * "osVer": "12.0",
520
- * "uniVer": "√",
521
- * "unixVer": "4.18"
522
- * }
523
- * },
524
- * "web": {
525
- * "uniVer": "x",
526
- * "unixVer": "x"
527
- * }
528
- * }
529
- */
530
- cover? : boolean | null,
531
- /**
532
- * 提示消息延迟显示的时间,单位为s
533
- * @defaultValue 0
534
- * @uniPlatform {
535
- * "app": {
536
- * "android": {
537
- * "osVer": "4.4",
538
- * "uniVer": "√",
539
- * "unixVer": "3.98"
540
- * },
541
- * "ios": {
542
- * "osVer": "12.0",
543
- * "uniVer": "√",
544
- * "unixVer": "4.18"
545
- * }
546
- * },
547
- * "web": {
548
- * "uniVer": "x",
549
- * "unixVer": "x"
550
- * }
551
- * }
552
- */
553
- delay? : number | null,
554
- /**
555
- * 推送消息的图标
556
- * @defaultValue null
557
- * @uniPlatform {
558
- * "app": {
559
- * "android": {
560
- * "osVer": "4.4",
561
- * "uniVer": "√",
562
- * "unixVer": "3.98"
563
- * },
564
- * "ios": {
565
- * "osVer": "12.0",
566
- * "uniVer": "x",
567
- * "unixVer": "x"
568
- * }
569
- * },
570
- * "web": {
571
- * "uniVer": "x",
572
- * "unixVer": "x"
573
- * }
574
- * }
575
- */
576
- icon? : string | null,
577
- /**
578
- * 推送消息的提示音
579
- * - system: 使用系统通知提示音(默认值)
580
- * - none: 不使用提示音
581
- * @type 'system' | 'none'
582
- * @defaultValue "system"
583
- * @uniPlatform {
584
- * "app": {
585
- * "android": {
586
- * "osVer": "4.4",
587
- * "uniVer": "√",
588
- * "unixVer": "3.98"
589
- * },
590
- * "ios": {
591
- * "osVer": "12.0",
592
- * "uniVer": "√",
593
- * "unixVer": "4.18"
594
- * }
595
- * },
596
- * "web": {
597
- * "uniVer": "x",
598
- * "unixVer": "x"
599
- * }
600
- * }
601
- */
602
- sound? : string | null,
603
- /**
604
- * 推送消息的标题
605
- * @defaultValue App的名称
606
- * @uniPlatform {
607
- * "app": {
608
- * "android": {
609
- * "osVer": "4.4",
610
- * "uniVer": "√",
611
- * "unixVer": "3.98"
612
- * },
613
- * "ios": {
614
- * "osVer": "12.0",
615
- * "uniVer": "√",
616
- * "unixVer": "4.18"
617
- * }
618
- * },
619
- * "web": {
620
- * "uniVer": "x",
621
- * "unixVer": "x"
622
- * }
623
- * }
624
- */
625
- title? : string | null,
626
- /**
627
- * 消息显示的内容,在系统通知中心中显示的文本内容
628
- *
629
- * @uniPlatform {
630
- * "app": {
631
- * "android": {
632
- * "osVer": "4.4",
633
- * "uniVer": "√",
634
- * "unixVer": "3.98"
635
- * },
636
- * "ios": {
637
- * "osVer": "12.0",
638
- * "uniVer": "√",
639
- * "unixVer": "4.18"
640
- * }
641
- * },
642
- * "web": {
643
- * "uniVer": "x",
644
- * "unixVer": "x"
645
- * }
646
- * }
647
- */
648
- content : string,
649
- /**
650
- * 消息承载的数据,可根据业务逻辑自定义数据格式,在点击通知消息时`onPushMessage`回调中会返回此字段的数据。
651
- * @defaultValue null
652
- * @uniPlatform {
653
- * "app": {
654
- * "android": {
655
- * "osVer": "4.4",
656
- * "uniVer": "√",
657
- * "unixVer": "3.98"
658
- * },
659
- * "ios": {
660
- * "osVer": "12.0",
661
- * "uniVer": "√",
662
- * "unixVer": "4.18"
663
- * }
664
- * },
665
- * "web": {
666
- * "uniVer": "x",
667
- * "unixVer": "x"
668
- * }
669
- * }
670
- */
671
- payload? : any | null,
672
- /**
673
- * 消息上显示的提示时间,需要传入时间戳。
674
- * @defaultValue 当前时间
675
- *
676
- * @uniPlatform {
677
- * "app": {
678
- * "android": {
679
- * "osVer": "4.4",
680
- * "uniVer": "√",
681
- * "unixVer": "3.98"
682
- * },
683
- * "ios": {
684
- * "osVer": "x",
685
- * "uniVer": "x",
686
- * "unixVer": "x"
687
- * }
688
- * },
689
- * "web": {
690
- * "uniVer": "x",
691
- * "unixVer": "x"
692
- * }
693
- * }
694
- */
695
- when? : number | null,
696
- /**
697
- * 渠道id,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
698
- * 创建通知渠道请使用`getPushChannelManager`获取PushChannelManager对象,调用`setPushChannel`方法配置渠道。
699
- * @defaultValue "DcloudChannelID"
700
- * @uniPlatform {
701
- * "app": {
702
- * "android": {
703
- * "osVer": "4.4",
704
- * "uniVer": "√",
705
- * "unixVer": "3.98"
706
- * },
707
- * "ios": {
708
- * "osVer": "x",
709
- * "uniVer": "x",
710
- * "unixVer": "x"
711
- * }
712
- * },
713
- * "web": {
714
- * "uniVer": "x",
715
- * "unixVer": "x"
716
- * }
717
- * }
718
- */
719
- channelId? : string | null,
720
- /**
721
- * 通知类别,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
722
- * 标识通知的类别,应用场景为对于离线推送厂商配置的支持,比如[华为消息分类](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/message-classification-0000001149358835#section5101818813)
723
- * @defaultValue null
724
- * @uniPlatform {
725
- * "app": {
726
- * "android": {
727
- * "osVer": "4.4",
728
- * "uniVer": "√",
729
- * "unixVer": "3.98"
730
- * },
731
- * "ios": {
732
- * "osVer": "x",
733
- * "uniVer": "x",
734
- * "unixVer": "x"
735
- * }
736
- * },
737
- * "web": {
738
- * "uniVer": "x",
739
- * "unixVer": "x"
740
- * }
741
- * }
742
- */
743
- category? : string | null,
744
- /**
745
- * 接口调用成功的回调函数
746
- * @defaultValue null
747
- */
748
- success ?: CreatePushMessageSuccessCallback | null,
749
- /**
750
- * 接口调用失败的回调函数
751
- * @defaultValue null
752
- */
753
- fail ?: CreatePushMessageFailCallback | null,
754
- /**
755
- * 接口调用结束的回调函数(调用成功、失败都会执行)
756
- * @defaultValue null
757
- */
758
- complete ?: CreatePushMessageCompleteCallback | null
532
+ /**
533
+ * 是否覆盖上一次提示的消息
534
+ * @type boolean
535
+ * @defaultValue false
536
+ * @uniPlatform {
537
+ * "app": {
538
+ * "android": {
539
+ * "osVer": "4.4",
540
+ * "uniVer": "√",
541
+ * "unixVer": "3.98"
542
+ * },
543
+ * "ios": {
544
+ * "osVer": "12.0",
545
+ * "uniVer": "√",
546
+ * "unixVer": "4.18"
547
+ * }
548
+ * },
549
+ * "web": {
550
+ * "uniVer": "x",
551
+ * "unixVer": "x"
552
+ * }
553
+ * }
554
+ */
555
+ cover?: boolean | null,
556
+ /**
557
+ * 提示消息延迟显示的时间,单位为s
558
+ * @defaultValue 0
559
+ * @uniPlatform {
560
+ * "app": {
561
+ * "android": {
562
+ * "osVer": "4.4",
563
+ * "uniVer": "√",
564
+ * "unixVer": "3.98"
565
+ * },
566
+ * "ios": {
567
+ * "osVer": "12.0",
568
+ * "uniVer": "√",
569
+ * "unixVer": "4.18"
570
+ * }
571
+ * },
572
+ * "web": {
573
+ * "uniVer": "x",
574
+ * "unixVer": "x"
575
+ * }
576
+ * }
577
+ */
578
+ delay?: number | null,
579
+ /**
580
+ * 推送消息的图标
581
+ * @defaultValue null
582
+ * @uniPlatform {
583
+ * "app": {
584
+ * "android": {
585
+ * "osVer": "4.4",
586
+ * "uniVer": "√",
587
+ * "unixVer": "3.98"
588
+ * },
589
+ * "ios": {
590
+ * "osVer": "12.0",
591
+ * "uniVer": "x",
592
+ * "unixVer": "x"
593
+ * }
594
+ * },
595
+ * "web": {
596
+ * "uniVer": "x",
597
+ * "unixVer": "x"
598
+ * }
599
+ * }
600
+ */
601
+ icon?: string | null,
602
+ /**
603
+ * 推送消息的提示音
604
+ * - system: 使用系统通知提示音(默认值)
605
+ * - none: 不使用提示音
606
+ * @type 'system' | 'none'
607
+ * @defaultValue "system"
608
+ * @uniPlatform {
609
+ * "app": {
610
+ * "android": {
611
+ * "osVer": "4.4",
612
+ * "uniVer": "√",
613
+ * "unixVer": "3.98"
614
+ * },
615
+ * "ios": {
616
+ * "osVer": "12.0",
617
+ * "uniVer": "√",
618
+ * "unixVer": "4.18"
619
+ * }
620
+ * },
621
+ * "web": {
622
+ * "uniVer": "x",
623
+ * "unixVer": "x"
624
+ * }
625
+ * }
626
+ */
627
+ sound?: string | null,
628
+ /**
629
+ * 推送消息的标题
630
+ * @defaultValue App的名称
631
+ * @uniPlatform {
632
+ * "app": {
633
+ * "android": {
634
+ * "osVer": "4.4",
635
+ * "uniVer": "√",
636
+ * "unixVer": "3.98"
637
+ * },
638
+ * "ios": {
639
+ * "osVer": "12.0",
640
+ * "uniVer": "√",
641
+ * "unixVer": "4.18"
642
+ * }
643
+ * },
644
+ * "web": {
645
+ * "uniVer": "x",
646
+ * "unixVer": "x"
647
+ * }
648
+ * }
649
+ */
650
+ title?: string | null,
651
+ /**
652
+ * 消息显示的内容,在系统通知中心中显示的文本内容。鸿蒙系统中,此字段为必填字段。
653
+ *
654
+ * @uniPlatform {
655
+ * "app": {
656
+ * "android": {
657
+ * "osVer": "4.4",
658
+ * "uniVer": "√",
659
+ * "unixVer": "3.98"
660
+ * },
661
+ * "ios": {
662
+ * "osVer": "12.0",
663
+ * "uniVer": "√",
664
+ * "unixVer": "4.18"
665
+ * }
666
+ * },
667
+ * "web": {
668
+ * "uniVer": "x",
669
+ * "unixVer": "x"
670
+ * }
671
+ * }
672
+ */
673
+ content: string,
674
+ /**
675
+ * 消息承载的数据,可根据业务逻辑自定义数据格式,在点击通知消息时`onPushMessage`回调中会返回此字段的数据。
676
+ * @defaultValue null
677
+ * @uniPlatform {
678
+ * "app": {
679
+ * "android": {
680
+ * "osVer": "4.4",
681
+ * "uniVer": "√",
682
+ * "unixVer": "3.98"
683
+ * },
684
+ * "ios": {
685
+ * "osVer": "12.0",
686
+ * "uniVer": "√",
687
+ * "unixVer": "4.18"
688
+ * }
689
+ * },
690
+ * "web": {
691
+ * "uniVer": "x",
692
+ * "unixVer": "x"
693
+ * }
694
+ * }
695
+ */
696
+ payload?: any | null,
697
+ /**
698
+ * 消息上显示的提示时间,需要传入时间戳。
699
+ * @defaultValue 当前时间
700
+ *
701
+ * @uniPlatform {
702
+ * "app": {
703
+ * "android": {
704
+ * "osVer": "4.4",
705
+ * "uniVer": "√",
706
+ * "unixVer": "3.98"
707
+ * },
708
+ * "ios": {
709
+ * "osVer": "x",
710
+ * "uniVer": "x",
711
+ * "unixVer": "x"
712
+ * }
713
+ * },
714
+ * "web": {
715
+ * "uniVer": "x",
716
+ * "unixVer": "x"
717
+ * }
718
+ * }
719
+ */
720
+ when?: number | null,
721
+ /**
722
+ * 渠道id,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
723
+ * 创建通知渠道请使用`getPushChannelManager`获取PushChannelManager对象,调用`setPushChannel`方法配置渠道。
724
+ * @defaultValue "DcloudChannelID"
725
+ * @uniPlatform {
726
+ * "app": {
727
+ * "android": {
728
+ * "osVer": "4.4",
729
+ * "uniVer": "√",
730
+ * "unixVer": "3.98"
731
+ * },
732
+ * "ios": {
733
+ * "osVer": "x",
734
+ * "uniVer": "x",
735
+ * "unixVer": "x"
736
+ * }
737
+ * },
738
+ * "web": {
739
+ * "uniVer": "x",
740
+ * "unixVer": "x"
741
+ * }
742
+ * }
743
+ */
744
+ channelId?: string | null,
745
+ /**
746
+ * 通知类别,Android特有字段,[通知渠道介绍](https://developer.android.com/develop/ui/views/notifications/channels?hl=zh-cn),
747
+ * 标识通知的类别,应用场景为对于离线推送厂商配置的支持,比如[华为消息分类](https://developer.huawei.com/consumer/cn/doc/HMSCore-Guides/message-classification-0000001149358835#section5101818813)
748
+ * @defaultValue null
749
+ * @uniPlatform {
750
+ * "app": {
751
+ * "android": {
752
+ * "osVer": "4.4",
753
+ * "uniVer": "√",
754
+ * "unixVer": "3.98"
755
+ * },
756
+ * "ios": {
757
+ * "osVer": "x",
758
+ * "uniVer": "x",
759
+ * "unixVer": "x"
760
+ * }
761
+ * },
762
+ * "web": {
763
+ * "uniVer": "x",
764
+ * "unixVer": "x"
765
+ * }
766
+ * }
767
+ */
768
+ category?: string | null,
769
+ /**
770
+ * 接口调用成功的回调函数
771
+ * @defaultValue null
772
+ */
773
+ success?: CreatePushMessageSuccessCallback | null,
774
+ /**
775
+ * 接口调用失败的回调函数
776
+ * @defaultValue null
777
+ */
778
+ fail?: CreatePushMessageFailCallback | null,
779
+ /**
780
+ * 接口调用结束的回调函数(调用成功、失败都会执行)
781
+ * @defaultValue null
782
+ */
783
+ complete?: CreatePushMessageCompleteCallback | null
759
784
  };
760
785
 
761
786
 
@@ -764,46 +789,46 @@ export type BadgeOptions = {
764
789
  * 消息的标题
765
790
  * @defaultValue 应用的名称
766
791
  * @uniPlatform {
767
- * "app": {
768
- * "android": {
769
- * "osVer": "4.4",
770
- * "uniVer": "x",
771
- * "unixVer": "4.25"
772
- * },
773
- * "ios": {
774
- * "osVer": "12.0",
775
- * "uniVer": "x",
776
- * "unixVer": "4.25"
777
- * }
778
- * },
779
- * "web": {
780
- * "uniVer": "x",
781
- * "unixVer": "x"
782
- * }
792
+ * "app": {
793
+ * "android": {
794
+ * "osVer": "4.4",
795
+ * "uniVer": "x",
796
+ * "unixVer": "4.25"
797
+ * },
798
+ * "ios": {
799
+ * "osVer": "12.0",
800
+ * "uniVer": "x",
801
+ * "unixVer": "4.25"
802
+ * }
803
+ * },
804
+ * "web": {
805
+ * "uniVer": "x",
806
+ * "unixVer": "x"
807
+ * }
783
808
  * }
784
809
  */
785
- title ?: string | null,
810
+ title?: string | null,
786
811
  /**
787
812
  * 消息的内容
788
813
  * @defaultValue '您有x条未读消息',其中x为设置的角标数字值。
789
814
  * @uniPlatform {
790
- * "app": {
791
- * "android": {
792
- * "osVer": "4.4",
793
- * "uniVer": "x",
794
- * "unixVer": "4.25"
795
- * },
796
- * "ios": {
797
- * "osVer": "12.0",
798
- * "uniVer": "x",
799
- * "unixVer": "4.25"
800
- * }
801
- * },
802
- * "web": {
803
- * "uniVer": "x",
804
- * "unixVer": "x"
805
- * }
815
+ * "app": {
816
+ * "android": {
817
+ * "osVer": "4.4",
818
+ * "uniVer": "x",
819
+ * "unixVer": "4.25"
820
+ * },
821
+ * "ios": {
822
+ * "osVer": "12.0",
823
+ * "uniVer": "x",
824
+ * "unixVer": "4.25"
825
+ * }
826
+ * },
827
+ * "web": {
828
+ * "uniVer": "x",
829
+ * "unixVer": "x"
830
+ * }
806
831
  * }
807
832
  */
808
- content ?: string | null
809
- }
833
+ content?: string | null
834
+ }