@dcloudio/uni-app-x 0.7.39 → 0.7.40

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 (104) hide show
  1. package/package.json +9 -7
  2. package/types/UniPage.d.ts +168 -22
  3. package/types/app.d.ts +31 -31
  4. package/types/native/CSSStyleDeclaration.d.ts +16 -2
  5. package/types/native/DOMRect.d.ts +430 -10
  6. package/types/native/DrawableContext.d.ts +1137 -45
  7. package/types/native/IUniElement.d.ts +1875 -93
  8. package/types/native/UniNativePage.d.ts +94 -0
  9. package/types/native/UniResizeObserver.d.ts +215 -5
  10. package/types/native/UniSafeArea.d.ts +185 -0
  11. package/types/native/UniVideoElement.d.ts +432 -0
  12. package/types/native/global.d.ts +7 -0
  13. package/types/native/index.d.ts +1 -0
  14. package/types/uni/uni-map-tencent-map.d.ts +12 -8
  15. package/types/uni/uts-plugin-api/global.d.ts +62 -61
  16. package/types/uni/uts-plugin-api/index.d.ts +62 -61
  17. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/global.d.ts +22 -0
  18. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/index.d.ts +10 -0
  19. package/types/uni/uts-plugin-api/lib/uni-actionSheet/utssdk/interface.d.ts +278 -0
  20. package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +1600 -59
  21. package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +64 -63
  22. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/global.d.ts +0 -2
  23. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/index.d.ts +0 -1
  24. package/types/uni/uts-plugin-api/lib/uni-authentication/utssdk/interface.d.ts +1150 -186
  25. package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +64 -63
  26. package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +550 -550
  27. package/types/uni/uts-plugin-api/lib/uni-chooseLocation/utssdk/interface.d.ts +69 -72
  28. package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +533 -135
  29. package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1508 -77
  30. package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +423 -63
  31. package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +284 -63
  32. package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +2 -9
  33. package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +1 -1
  34. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +62 -62
  35. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +31 -31
  36. package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +57 -57
  37. package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +312 -110
  38. package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +62 -62
  39. package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +472 -72
  40. package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +126 -78
  41. package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +317 -66
  42. package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +570 -63
  43. package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +570 -63
  44. package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +110 -66
  45. package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +595 -177
  46. package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +284 -63
  47. package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +45 -1
  48. package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +1387 -182
  49. package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +67 -67
  50. package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +318 -53
  51. package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +162 -63
  52. package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +241 -64
  53. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +6 -0
  54. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +3 -0
  55. package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +4089 -659
  56. package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +460 -252
  57. package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +2345 -213
  58. package/types/uni/uts-plugin-api/lib/uni-oauth/utssdk/interface.d.ts +1205 -149
  59. package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +339 -33
  60. package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +457 -53
  61. package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +328 -63
  62. package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +317 -66
  63. package/types/uni/uts-plugin-api/lib/uni-privacy/utssdk/interface.d.ts +120 -71
  64. package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +2157 -437
  65. package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +260 -126
  66. package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +467 -315
  67. package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +553 -53
  68. package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +1608 -630
  69. package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +2492 -504
  70. package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +176 -130
  71. package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +704 -58
  72. package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +1230 -454
  73. package/types/uni/uts-plugin-biz/global.d.ts +6 -5
  74. package/types/uni/uts-plugin-biz/index.d.ts +6 -5
  75. package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +406 -123
  76. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/global.d.ts +4 -0
  77. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/index.d.ts +2 -0
  78. package/types/uni/uts-plugin-biz/lib/uni-crash/utssdk/interface.d.ts +60 -47
  79. package/types/uni/uts-plugin-biz/lib/uni-map-tencent/utssdk/interface.d.ts +71 -71
  80. package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +3 -3
  81. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/global.d.ts +24 -0
  82. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/index.d.ts +11 -0
  83. package/types/uni/uts-plugin-biz/lib/uni-secure-network/utssdk/interface.d.ts +204 -0
  84. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/global.d.ts +42 -38
  85. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/index.d.ts +21 -19
  86. package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +502 -255
  87. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/global.d.ts +64 -0
  88. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/index.d.ts +31 -0
  89. package/types/uni/uts-plugin-biz/lib/uni-video/utssdk/interface.d.ts +900 -0
  90. package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +48 -48
  91. package/types/uni/uts-plugin-extend/global.d.ts +0 -4
  92. package/types/uni/uts-plugin-extend/index.d.ts +0 -4
  93. package/types/uni/uts-plugin-extend/lib/uni-accelerometer/utssdk/interface.d.ts +825 -273
  94. package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4399 -339
  95. package/types/uni/uts-plugin-extend/lib/uni-compass/utssdk/interface.d.ts +1000 -268
  96. package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +1 -1
  97. package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
  98. package/types/uni/uts-plugin-extend/lib/uni-localeChange/utssdk/interface.d.ts +1495 -384
  99. package/types/uni/uts-plugin-extend/lib/uni-memory/utssdk/interface.d.ts +222 -132
  100. package/types/uni/uts-plugin-extend/lib/uni-openLocation/utssdk/interface.d.ts +923 -67
  101. package/types/uni/uts-plugin-extend/lib/uni-preloadPage/utssdk/interface.d.ts +2 -2
  102. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/global.d.ts +0 -7
  103. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/index.d.ts +0 -1
  104. package/types/uni/uts-plugin-extend/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +0 -716
@@ -218,6 +218,363 @@ export type OnLaunchOptions = {
218
218
  * }
219
219
  */
220
220
  appLink: string | null
221
+ /**
222
+ * 需要基础库: `2.20.0`
223
+ *
224
+ * API 类别
225
+ *
226
+ * 可选值:
227
+ * - 'default': 默认类别;
228
+ * - 'nativeFunctionalized': 原生功能化,视频号直播商品、商品橱窗等场景打开的小程序;
229
+ * - 'browseOnly': 仅浏览,朋友圈快照页等场景打开的小程序;
230
+ * - 'embedded': 内嵌,通过打开半屏小程序能力打开的小程序;
231
+ *
232
+ * @uniPlatform {
233
+ * "mp": {
234
+ * "weixin": {
235
+ * "hostVer": "2.20.0",
236
+ * "uniVer": "√",
237
+ * "unixVer": "4.41"
238
+ * },
239
+ * "alipay": {
240
+ * "hostVer": "-",
241
+ * "uniVer": "-",
242
+ * "unixVer": "-"
243
+ * },
244
+ * "baidu": {
245
+ * "hostVer": "-",
246
+ * "uniVer": "-",
247
+ * "unixVer": "-"
248
+ * },
249
+ * "toutiao": {
250
+ * "hostVer": "-",
251
+ * "uniVer": "-",
252
+ * "unixVer": "-"
253
+ * },
254
+ * "lark": {
255
+ * "hostVer": "-",
256
+ * "uniVer": "-",
257
+ * "unixVer": "-"
258
+ * },
259
+ * "qq": {
260
+ * "hostVer": "-",
261
+ * "uniVer": "-",
262
+ * "unixVer": "-"
263
+ * },
264
+ * "kuaishou": {
265
+ * "hostVer": "-",
266
+ * "uniVer": "-",
267
+ * "unixVer": "-"
268
+ * },
269
+ * "jd": {
270
+ * "hostVer": "-",
271
+ * "uniVer": "-",
272
+ * "unixVer": "-"
273
+ * }
274
+ * }
275
+ * }
276
+ */
277
+ apiCategory?: "default" | "nativeFunctionalized" | "browseOnly" | "embedded" | null;
278
+ /**
279
+ * 打开的文件信息数组,只有从聊天素材场景打开(scene为1173)才会携带该参数
280
+ *
281
+ * @uniPlatform {
282
+ * "mp": {
283
+ * "weixin": {
284
+ * "hostVer": "√",
285
+ * "uniVer": "√",
286
+ * "unixVer": "4.41"
287
+ * },
288
+ * "alipay": {
289
+ * "hostVer": "-",
290
+ * "uniVer": "-",
291
+ * "unixVer": "-"
292
+ * },
293
+ * "baidu": {
294
+ * "hostVer": "-",
295
+ * "uniVer": "-",
296
+ * "unixVer": "-"
297
+ * },
298
+ * "toutiao": {
299
+ * "hostVer": "-",
300
+ * "uniVer": "-",
301
+ * "unixVer": "-"
302
+ * },
303
+ * "lark": {
304
+ * "hostVer": "-",
305
+ * "uniVer": "-",
306
+ * "unixVer": "-"
307
+ * },
308
+ * "qq": {
309
+ * "hostVer": "-",
310
+ * "uniVer": "-",
311
+ * "unixVer": "-"
312
+ * },
313
+ * "kuaishou": {
314
+ * "hostVer": "-",
315
+ * "uniVer": "-",
316
+ * "unixVer": "-"
317
+ * },
318
+ * "jd": {
319
+ * "hostVer": "-",
320
+ * "uniVer": "-",
321
+ * "unixVer": "-"
322
+ * }
323
+ * }
324
+ * }
325
+ */
326
+ forwardMaterials?: any | null;
327
+ /**
328
+ * 启动小程序的 query 参数
329
+ *
330
+ * @uniPlatform {
331
+ * "mp": {
332
+ * "weixin": {
333
+ * "hostVer": "√",
334
+ * "uniVer": "√",
335
+ * "unixVer": "4.41"
336
+ * },
337
+ * "alipay": {
338
+ * "hostVer": "-",
339
+ * "uniVer": "-",
340
+ * "unixVer": "-"
341
+ * },
342
+ * "baidu": {
343
+ * "hostVer": "-",
344
+ * "uniVer": "-",
345
+ * "unixVer": "-"
346
+ * },
347
+ * "toutiao": {
348
+ * "hostVer": "-",
349
+ * "uniVer": "-",
350
+ * "unixVer": "-"
351
+ * },
352
+ * "lark": {
353
+ * "hostVer": "-",
354
+ * "uniVer": "-",
355
+ * "unixVer": "-"
356
+ * },
357
+ * "qq": {
358
+ * "hostVer": "-",
359
+ * "uniVer": "-",
360
+ * "unixVer": "-"
361
+ * },
362
+ * "kuaishou": {
363
+ * "hostVer": "-",
364
+ * "uniVer": "-",
365
+ * "unixVer": "-"
366
+ * },
367
+ * "jd": {
368
+ * "hostVer": "-",
369
+ * "uniVer": "-",
370
+ * "unixVer": "-"
371
+ * }
372
+ * }
373
+ * }
374
+ */
375
+ query?: Record<string, string> | null;
376
+ /**
377
+ * 来源信息。从另一个小程序、公众号或 App 进入小程序时返回。否则返回 `{}`。(参见后文注意)
378
+ *
379
+ * @uniPlatform {
380
+ * "mp": {
381
+ * "weixin": {
382
+ * "hostVer": "√",
383
+ * "uniVer": "√",
384
+ * "unixVer": "4.41"
385
+ * },
386
+ * "alipay": {
387
+ * "hostVer": "-",
388
+ * "uniVer": "-",
389
+ * "unixVer": "-"
390
+ * },
391
+ * "baidu": {
392
+ * "hostVer": "-",
393
+ * "uniVer": "-",
394
+ * "unixVer": "-"
395
+ * },
396
+ * "toutiao": {
397
+ * "hostVer": "-",
398
+ * "uniVer": "-",
399
+ * "unixVer": "-"
400
+ * },
401
+ * "lark": {
402
+ * "hostVer": "-",
403
+ * "uniVer": "-",
404
+ * "unixVer": "-"
405
+ * },
406
+ * "qq": {
407
+ * "hostVer": "-",
408
+ * "uniVer": "-",
409
+ * "unixVer": "-"
410
+ * },
411
+ * "kuaishou": {
412
+ * "hostVer": "-",
413
+ * "uniVer": "-",
414
+ * "unixVer": "-"
415
+ * },
416
+ * "jd": {
417
+ * "hostVer": "-",
418
+ * "uniVer": "-",
419
+ * "unixVer": "-"
420
+ * }
421
+ * }
422
+ * }
423
+ */
424
+ referrerInfo?: OnLaunchOptionsReferrerInfo | null;
425
+ /**
426
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/scene.html
427
+ *
428
+ * @uniPlatform {
429
+ * "mp": {
430
+ * "weixin": {
431
+ * "hostVer": "√",
432
+ * "uniVer": "√",
433
+ * "unixVer": "4.41"
434
+ * },
435
+ * "alipay": {
436
+ * "hostVer": "-",
437
+ * "uniVer": "-",
438
+ * "unixVer": "-"
439
+ * },
440
+ * "baidu": {
441
+ * "hostVer": "-",
442
+ * "uniVer": "-",
443
+ * "unixVer": "-"
444
+ * },
445
+ * "toutiao": {
446
+ * "hostVer": "-",
447
+ * "uniVer": "-",
448
+ * "unixVer": "-"
449
+ * },
450
+ * "lark": {
451
+ * "hostVer": "-",
452
+ * "uniVer": "-",
453
+ * "unixVer": "-"
454
+ * },
455
+ * "qq": {
456
+ * "hostVer": "-",
457
+ * "uniVer": "-",
458
+ * "unixVer": "-"
459
+ * },
460
+ * "kuaishou": {
461
+ * "hostVer": "-",
462
+ * "uniVer": "-",
463
+ * "unixVer": "-"
464
+ * },
465
+ * "jd": {
466
+ * "hostVer": "-",
467
+ * "uniVer": "-",
468
+ * "unixVer": "-"
469
+ * }
470
+ * }
471
+ * }
472
+ */
473
+ scene?: number | null;
474
+ /**
475
+ * 从微信群聊/单聊打开小程序时,chatType 表示具体微信群聊/单聊类型
476
+ *
477
+ * 可选值:
478
+ * - 1: 微信联系人单聊;
479
+ * - 2: 企业微信联系人单聊;
480
+ * - 3: 普通微信群聊;
481
+ * - 4: 企业微信互通群聊;
482
+ *
483
+ * @uniPlatform {
484
+ * "mp": {
485
+ * "weixin": {
486
+ * "hostVer": "√",
487
+ * "uniVer": "√",
488
+ * "unixVer": "4.41"
489
+ * },
490
+ * "alipay": {
491
+ * "hostVer": "-",
492
+ * "uniVer": "-",
493
+ * "unixVer": "-"
494
+ * },
495
+ * "baidu": {
496
+ * "hostVer": "-",
497
+ * "uniVer": "-",
498
+ * "unixVer": "-"
499
+ * },
500
+ * "toutiao": {
501
+ * "hostVer": "-",
502
+ * "uniVer": "-",
503
+ * "unixVer": "-"
504
+ * },
505
+ * "lark": {
506
+ * "hostVer": "-",
507
+ * "uniVer": "-",
508
+ * "unixVer": "-"
509
+ * },
510
+ * "qq": {
511
+ * "hostVer": "-",
512
+ * "uniVer": "-",
513
+ * "unixVer": "-"
514
+ * },
515
+ * "kuaishou": {
516
+ * "hostVer": "-",
517
+ * "uniVer": "-",
518
+ * "unixVer": "-"
519
+ * },
520
+ * "jd": {
521
+ * "hostVer": "-",
522
+ * "uniVer": "-",
523
+ * "unixVer": "-"
524
+ * }
525
+ * }
526
+ * }
527
+ */
528
+ chatType?: 1 | 2 | 3 | 4 | null;
529
+ /**
530
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#获取更多转发信息
531
+ *
532
+ * @uniPlatform {
533
+ * "mp": {
534
+ * "weixin": {
535
+ * "hostVer": "√",
536
+ * "uniVer": "√",
537
+ * "unixVer": "4.41"
538
+ * },
539
+ * "alipay": {
540
+ * "hostVer": "-",
541
+ * "uniVer": "-",
542
+ * "unixVer": "-"
543
+ * },
544
+ * "baidu": {
545
+ * "hostVer": "-",
546
+ * "uniVer": "-",
547
+ * "unixVer": "-"
548
+ * },
549
+ * "toutiao": {
550
+ * "hostVer": "-",
551
+ * "uniVer": "-",
552
+ * "unixVer": "-"
553
+ * },
554
+ * "lark": {
555
+ * "hostVer": "-",
556
+ * "uniVer": "-",
557
+ * "unixVer": "-"
558
+ * },
559
+ * "qq": {
560
+ * "hostVer": "-",
561
+ * "uniVer": "-",
562
+ * "unixVer": "-"
563
+ * },
564
+ * "kuaishou": {
565
+ * "hostVer": "-",
566
+ * "uniVer": "-",
567
+ * "unixVer": "-"
568
+ * },
569
+ * "jd": {
570
+ * "hostVer": "-",
571
+ * "uniVer": "-",
572
+ * "unixVer": "-"
573
+ * }
574
+ * }
575
+ * }
576
+ */
577
+ shareTicket?: string | null;
221
578
  }
222
579
 
223
580
  export type GetLaunchOptionsSync = () => OnLaunchOptions
@@ -230,70 +587,220 @@ export interface Uni {
230
587
  * @tutorial-uni-app-x https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
231
588
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-launch-options-sync.html
232
589
  * @uniPlatform {
233
- * "app": {
234
- * "android": {
235
- * "osVer": "5.0",
236
- * "uniVer": "√",
237
- * "unixVer": "3.91"
238
- * },
239
- * "ios": {
240
- * "osVer": "12.0",
241
- * "uniVer": "√",
242
- * "unixVer": "4.11"
243
- * },
244
- * "harmony": {
245
- * "osVer": "3,0",
246
- * "uniVer": "4.31",
247
- * "unixVer": "x"
248
- * }
249
- * },
250
- * "mp": {
251
- * "weixin": {
252
- * "hostVer": "",
253
- * "uniVer": "√",
254
- * "unixVer": "4.41"
255
- * },
256
- * "alipay": {
257
- * "hostVer": "√",
258
- * "uniVer": "√",
259
- * "unixVer": "x"
260
- * },
261
- * "baidu": {
262
- * "hostVer": "√",
263
- * "uniVer": "√",
264
- * "unixVer": "x"
265
- * },
266
- * "toutiao": {
267
- * "hostVer": "√",
268
- * "uniVer": "√",
269
- * "unixVer": "x"
270
- * },
271
- * "lark": {
272
- * "hostVer": "√",
273
- * "uniVer": "√",
274
- * "unixVer": "x"
275
- * },
276
- * "qq": {
277
- * "hostVer": "√",
278
- * "uniVer": "√",
279
- * "unixVer": "x"
280
- * },
281
- * "kuaishou": {
282
- * "hostVer": "√",
283
- * "uniVer": "√",
284
- * "unixVer": "x"
285
- * },
286
- * "jd": {
287
- * "hostVer": "√",
288
- * "uniVer": "√",
289
- * "unixVer": "x"
290
- * }
291
- * },
292
- * "web": {
293
- * "uniVer": "√",
294
- * "unixVer": "4.0"
295
- * }
590
+ * "app": {
591
+ * "android": {
592
+ * "osVer": "5.0",
593
+ * "uniVer": "√",
594
+ * "unixVer": "3.91"
595
+ * },
596
+ * "ios": {
597
+ * "osVer": "12.0",
598
+ * "uniVer": "√",
599
+ * "unixVer": "4.11"
600
+ * },
601
+ * "harmony": {
602
+ * "osVer": "3,0",
603
+ * "uniVer": "4.31",
604
+ * "unixVer": "x"
605
+ * }
606
+ * },
607
+ * "mp": {
608
+ * "weixin": {
609
+ * "hostVer": "2.1.2",
610
+ * "uniVer": "√",
611
+ * "unixVer": "4.41"
612
+ * },
613
+ * "alipay": {
614
+ * "hostVer": "√",
615
+ * "uniVer": "√",
616
+ * "unixVer": "x"
617
+ * },
618
+ * "baidu": {
619
+ * "hostVer": "√",
620
+ * "uniVer": "√",
621
+ * "unixVer": "x"
622
+ * },
623
+ * "toutiao": {
624
+ * "hostVer": "√",
625
+ * "uniVer": "√",
626
+ * "unixVer": "x"
627
+ * },
628
+ * "lark": {
629
+ * "hostVer": "√",
630
+ * "uniVer": "√",
631
+ * "unixVer": "x"
632
+ * },
633
+ * "qq": {
634
+ * "hostVer": "√",
635
+ * "uniVer": "√",
636
+ * "unixVer": "x"
637
+ * },
638
+ * "kuaishou": {
639
+ * "hostVer": "√",
640
+ * "uniVer": "√",
641
+ * "unixVer": "x"
642
+ * },
643
+ * "jd": {
644
+ * "hostVer": "√",
645
+ * "uniVer": "√",
646
+ * "unixVer": "x"
647
+ * }
648
+ * },
649
+ * "web": {
650
+ * "uniVer": "√",
651
+ * "unixVer": "4.0"
652
+ * }
296
653
  * }
654
+ * @tutorial_weixin https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html
297
655
  */
298
656
  getLaunchOptionsSync(): OnLaunchOptions
299
657
  }
658
+
659
+ /**
660
+ * 来源信息。从另一个小程序、公众号或 App 进入小程序时返回。否则返回 `{}`。(参见后文注意)
661
+ *
662
+ * @uniPlatform {
663
+ * "mp": {
664
+ * "weixin": {
665
+ * "hostVer": "√",
666
+ * "uniVer": "√",
667
+ * "unixVer": "4.41"
668
+ * },
669
+ * "alipay": {
670
+ * "hostVer": "-",
671
+ * "uniVer": "-",
672
+ * "unixVer": "-"
673
+ * },
674
+ * "baidu": {
675
+ * "hostVer": "-",
676
+ * "uniVer": "-",
677
+ * "unixVer": "-"
678
+ * },
679
+ * "toutiao": {
680
+ * "hostVer": "-",
681
+ * "uniVer": "-",
682
+ * "unixVer": "-"
683
+ * },
684
+ * "lark": {
685
+ * "hostVer": "-",
686
+ * "uniVer": "-",
687
+ * "unixVer": "-"
688
+ * },
689
+ * "qq": {
690
+ * "hostVer": "-",
691
+ * "uniVer": "-",
692
+ * "unixVer": "-"
693
+ * },
694
+ * "kuaishou": {
695
+ * "hostVer": "-",
696
+ * "uniVer": "-",
697
+ * "unixVer": "-"
698
+ * },
699
+ * "jd": {
700
+ * "hostVer": "-",
701
+ * "uniVer": "-",
702
+ * "unixVer": "-"
703
+ * }
704
+ * }
705
+ * }
706
+ */
707
+ export type OnLaunchOptionsReferrerInfo = {
708
+ /**
709
+ * 来源小程序、公众号或 App 的 appId
710
+ *
711
+ * @uniPlatform {
712
+ * "mp": {
713
+ * "weixin": {
714
+ * "hostVer": "√",
715
+ * "uniVer": "√",
716
+ * "unixVer": "4.41"
717
+ * },
718
+ * "alipay": {
719
+ * "hostVer": "-",
720
+ * "uniVer": "-",
721
+ * "unixVer": "-"
722
+ * },
723
+ * "baidu": {
724
+ * "hostVer": "-",
725
+ * "uniVer": "-",
726
+ * "unixVer": "-"
727
+ * },
728
+ * "toutiao": {
729
+ * "hostVer": "-",
730
+ * "uniVer": "-",
731
+ * "unixVer": "-"
732
+ * },
733
+ * "lark": {
734
+ * "hostVer": "-",
735
+ * "uniVer": "-",
736
+ * "unixVer": "-"
737
+ * },
738
+ * "qq": {
739
+ * "hostVer": "-",
740
+ * "uniVer": "-",
741
+ * "unixVer": "-"
742
+ * },
743
+ * "kuaishou": {
744
+ * "hostVer": "-",
745
+ * "uniVer": "-",
746
+ * "unixVer": "-"
747
+ * },
748
+ * "jd": {
749
+ * "hostVer": "-",
750
+ * "uniVer": "-",
751
+ * "unixVer": "-"
752
+ * }
753
+ * }
754
+ * }
755
+ */
756
+ appId?: string | null;
757
+ /**
758
+ * 来源小程序传过来的数据,scene=1037或1038时支持
759
+ *
760
+ * @uniPlatform {
761
+ * "mp": {
762
+ * "weixin": {
763
+ * "hostVer": "√",
764
+ * "uniVer": "√",
765
+ * "unixVer": "4.41"
766
+ * },
767
+ * "alipay": {
768
+ * "hostVer": "-",
769
+ * "uniVer": "-",
770
+ * "unixVer": "-"
771
+ * },
772
+ * "baidu": {
773
+ * "hostVer": "-",
774
+ * "uniVer": "-",
775
+ * "unixVer": "-"
776
+ * },
777
+ * "toutiao": {
778
+ * "hostVer": "-",
779
+ * "uniVer": "-",
780
+ * "unixVer": "-"
781
+ * },
782
+ * "lark": {
783
+ * "hostVer": "-",
784
+ * "uniVer": "-",
785
+ * "unixVer": "-"
786
+ * },
787
+ * "qq": {
788
+ * "hostVer": "-",
789
+ * "uniVer": "-",
790
+ * "unixVer": "-"
791
+ * },
792
+ * "kuaishou": {
793
+ * "hostVer": "-",
794
+ * "uniVer": "-",
795
+ * "unixVer": "-"
796
+ * },
797
+ * "jd": {
798
+ * "hostVer": "-",
799
+ * "uniVer": "-",
800
+ * "unixVer": "-"
801
+ * }
802
+ * }
803
+ * }
804
+ */
805
+ extraData?: any | null
806
+ };