@ray-js/api 1.7.83-beta.0 → 1.7.84

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.
@@ -1,14 +1,14 @@
1
1
  /**
2
2
  * MiniKit
3
3
  *
4
- * @version 3.35.3
4
+ * @version 3.36.1
5
5
  */
6
6
  declare namespace ty {
7
7
  /**
8
8
  * 获取客户端预拉取的数据,此接口不会等待,有数据会立即返回,没有数据会返回空
9
9
  * @public
10
10
  * @since MiniKit 3.20.2
11
- * @example Demo
11
+ * @example
12
12
  * ```tsx
13
13
  * // fetchApiKeys are the "key" names configured under preFetch in the miniapp app.json
14
14
  * // (not atop api names). Data is only returned if it was prefetched & cached at cold start.
@@ -67,7 +67,7 @@ declare namespace ty {
67
67
  * 此接口提供给基础库使用,业务方需要使用onBackgroundFetchData事件来获取预拉取的数据,调用时有数据会立即返回,没有数据会等待
68
68
  * @public
69
69
  * @since MiniKit 3.20.2
70
- * @example Demo
70
+ * @example
71
71
  * ```tsx
72
72
  * // apiKey is the "key" name configured under preFetch in the miniapp app.json.
73
73
  * ty.registerBackgroundFetchData({
@@ -141,7 +141,7 @@ declare namespace ty {
141
141
  * 特殊方法:是否异层渲染响应
142
142
  * @public
143
143
  * @since MiniKit 2.3.0
144
- * @example Demo
144
+ * @example
145
145
  * ```tsx
146
146
  * ty.nativeDisabled({
147
147
  * nativeDisabled: true,
@@ -191,7 +191,7 @@ declare namespace ty {
191
191
  * 通用方法:用于基础库给原生异层渲染组件发送消息
192
192
  * @public
193
193
  * @since MiniKit 2.3.0
194
- * @example Demo
194
+ * @example
195
195
  * ```tsx
196
196
  * ty.nativeInovke({
197
197
  * type: 0,
@@ -260,7 +260,7 @@ declare namespace ty {
260
260
  * 获取权限的配置信息
261
261
  * @public
262
262
  * @since MiniKit 2.6.0
263
- * @example Demo
263
+ * @example
264
264
  * ```tsx
265
265
  * ty.getPermissionConfig({
266
266
  * success: data => {
@@ -304,7 +304,7 @@ declare namespace ty {
304
304
  * 获取权限的配置信息
305
305
  * @public
306
306
  * @since MiniKit 2.6.0
307
- * @example Demo
307
+ * @example
308
308
  * ```tsx
309
309
  * ty.getPermissionConfig({
310
310
  * success: data => {
@@ -329,7 +329,7 @@ declare namespace ty {
329
329
  * 调起客户端小程序设置界面,返回用户设置的操作结果。
330
330
  * @public
331
331
  * @since MiniKit 2.6.0
332
- * @example Demo
332
+ * @example
333
333
  * ```tsx
334
334
  * ty.openSetting({
335
335
  * success: data => {
@@ -375,7 +375,7 @@ declare namespace ty {
375
375
  * false: 关闭vconsole
376
376
  * @public
377
377
  * @since MiniKit 2.6.0
378
- * @example Demo
378
+ * @example
379
379
  * ```tsx
380
380
  * ty.changeDebugMode({
381
381
  * isEnable: true,
@@ -419,7 +419,7 @@ declare namespace ty {
419
419
  * 打开帮助中心,默认:面板小程序会跳转到面板帮助中心,普通小程序会跳转到App帮助中心
420
420
  * @public
421
421
  * @since MiniKit 2.6.0
422
- * @example Demo
422
+ * @example
423
423
  * ```tsx
424
424
  * ty.openHelpCenter({
425
425
  * success: data => {
@@ -457,7 +457,7 @@ declare namespace ty {
457
457
  * 显示 tabBar 某一项的右上角的红点
458
458
  * @public
459
459
  * @since MiniKit 1.0.0
460
- * @example Demo
460
+ * @example
461
461
  * ```tsx
462
462
  * ty.showTabBarRedDot({
463
463
  * index: 0,
@@ -497,7 +497,7 @@ declare namespace ty {
497
497
  * 显示 tabBar
498
498
  * @public
499
499
  * @since MiniKit 1.0.0
500
- * @example Demo
500
+ * @example
501
501
  * ```tsx
502
502
  * ty.showTabBar({
503
503
  * animation: true,
@@ -537,7 +537,7 @@ declare namespace ty {
537
537
  * 动态设置 tabBar 的整体样式
538
538
  * @public
539
539
  * @since MiniKit 1.0.0
540
- * @example Demo
540
+ * @example
541
541
  * ```tsx
542
542
  * ty.setTabBarStyle({
543
543
  * color: "#999999",
@@ -595,7 +595,7 @@ declare namespace ty {
595
595
  * 动态设置 tabBar 某一项的内容
596
596
  * @public
597
597
  * @since MiniKit 1.0.0
598
- * @example Demo
598
+ * @example
599
599
  * ```tsx
600
600
  * ty.setTabBarItem({
601
601
  * index: 0,
@@ -653,7 +653,7 @@ declare namespace ty {
653
653
  * 为 tabBar 某一项的右上角添加文本
654
654
  * @public
655
655
  * @since MiniKit 1.0.0
656
- * @example Demo
656
+ * @example
657
657
  * ```tsx
658
658
  * ty.setTabBarBadge({
659
659
  * index: 0,
@@ -699,7 +699,7 @@ declare namespace ty {
699
699
  * 移除 tabBar 某一项右上角的文本
700
700
  * @public
701
701
  * @since MiniKit 1.0.0
702
- * @example Demo
702
+ * @example
703
703
  * ```tsx
704
704
  * ty.removeTabBarBadge({
705
705
  * index: 0,
@@ -739,7 +739,7 @@ declare namespace ty {
739
739
  * 隐藏 tabBar 某一项的右上角的红点
740
740
  * @public
741
741
  * @since MiniKit 1.0.0
742
- * @example Demo
742
+ * @example
743
743
  * ```tsx
744
744
  * ty.hideTabBarRedDot({
745
745
  * index: 0,
@@ -779,7 +779,7 @@ declare namespace ty {
779
779
  * 隐藏 tabBar
780
780
  * @public
781
781
  * @since MiniKit 1.0.0
782
- * @example Demo
782
+ * @example
783
783
  * ```tsx
784
784
  * ty.hideTabBar({
785
785
  * animation: true,
@@ -819,7 +819,7 @@ declare namespace ty {
819
819
  * 发起highway请求
820
820
  * @public
821
821
  * @since MiniKit 2.3.6
822
- * @example Demo
822
+ * @example
823
823
  * ```tsx
824
824
  * // Highway RESTful request: api is a "/v1.0/..." url, method is GET/POST,
825
825
  * // data depends on the specific highway api. (Real usage from @ray-js/ray miniapps.)
@@ -895,7 +895,7 @@ declare namespace ty {
895
895
  * 返回到上一个小程序。只有在当前小程序是被其他小程序打开时可以调用成功
896
896
  * @public
897
897
  * @since MiniKit 1.0.0
898
- * @example Demo
898
+ * @example
899
899
  * ```tsx
900
900
  * ty.navigateBackMiniProgram({
901
901
  * extraData: { from: "ttt-demo" },
@@ -935,7 +935,7 @@ declare namespace ty {
935
935
  * 退出当前小程序
936
936
  * @public
937
937
  * @since MiniKit 1.0.0
938
- * @example Demo
938
+ * @example
939
939
  * ```tsx
940
940
  * ty.exitMiniProgram({
941
941
  * success: data => {
@@ -973,7 +973,7 @@ declare namespace ty {
973
973
  * 获取小程序启动时的参数。与App.onLaunch的回调参数一致。
974
974
  * @public
975
975
  * @since MiniKit 1.0.0
976
- * @example Demo
976
+ * @example
977
977
  * ```tsx
978
978
  * ty.getLaunchOptions({
979
979
  * success: data => {
@@ -1024,6 +1024,11 @@ declare namespace ty {
1024
1024
  * @since MiniKit 3.21.0
1025
1025
  */
1026
1026
  extraQuery?: Record<string, any>
1027
+ /**
1028
+ * 渲染类型:native 表示 Lynx 自渲染;空/其它表示 Web
1029
+ * @since MiniKit 1.0.0
1030
+ */
1031
+ renderer?: string
1027
1032
  }) => void
1028
1033
  /** 接口调用失败的回调函数 */
1029
1034
  fail?: (params: {
@@ -1045,7 +1050,7 @@ declare namespace ty {
1045
1050
  * 获取小程序启动时的参数。与App.onLaunch的回调参数一致。
1046
1051
  * @public
1047
1052
  * @since MiniKit 1.0.0
1048
- * @example Demo
1053
+ * @example
1049
1054
  * ```tsx
1050
1055
  * ty.getLaunchOptions({
1051
1056
  * success: data => {
@@ -1092,13 +1097,18 @@ declare namespace ty {
1092
1097
  * @since MiniKit 3.21.0
1093
1098
  */
1094
1099
  extraQuery?: Record<string, any>
1100
+ /**
1101
+ * 渲染类型:native 表示 Lynx 自渲染;空/其它表示 Web
1102
+ * @since MiniKit 3.36.1
1103
+ */
1104
+ renderer?: string
1095
1105
  }
1096
1106
 
1097
1107
  /**
1098
1108
  * 获取本次小程序启动时的参数。如果当前是冷启动,则返回值与App.onLaunch的回调参数一致;如果当前是热启动,则返回值与App.onShow 一致。
1099
1109
  * @public
1100
1110
  * @since MiniKit 1.0.0
1101
- * @example Demo
1111
+ * @example
1102
1112
  * ```tsx
1103
1113
  * ty.getEnterOptions({
1104
1114
  * success: data => {
@@ -1149,6 +1159,11 @@ declare namespace ty {
1149
1159
  * @since MiniKit 3.21.0
1150
1160
  */
1151
1161
  extraQuery?: Record<string, any>
1162
+ /**
1163
+ * 渲染类型:native 表示 Lynx 自渲染;空/其它表示 Web
1164
+ * @since MiniKit 1.0.0
1165
+ */
1166
+ renderer?: string
1152
1167
  }) => void
1153
1168
  /** 接口调用失败的回调函数 */
1154
1169
  fail?: (params: {
@@ -1170,7 +1185,7 @@ declare namespace ty {
1170
1185
  * 获取本次小程序启动时的参数。如果当前是冷启动,则返回值与App.onLaunch的回调参数一致;如果当前是热启动,则返回值与App.onShow 一致。
1171
1186
  * @public
1172
1187
  * @since MiniKit 1.0.0
1173
- * @example Demo
1188
+ * @example
1174
1189
  * ```tsx
1175
1190
  * ty.getEnterOptions({
1176
1191
  * success: data => {
@@ -1217,13 +1232,18 @@ declare namespace ty {
1217
1232
  * @since MiniKit 3.21.0
1218
1233
  */
1219
1234
  extraQuery?: Record<string, any>
1235
+ /**
1236
+ * 渲染类型:native 表示 Lynx 自渲染;空/其它表示 Web
1237
+ * @since MiniKit 3.36.1
1238
+ */
1239
+ renderer?: string
1220
1240
  }
1221
1241
 
1222
1242
  /**
1223
1243
  * 设置小程序看板页标题,小程序名称,面板名称等
1224
1244
  * @public
1225
1245
  * @since MiniKit 2.0.6
1226
- * @example Demo
1246
+ * @example
1227
1247
  * ```tsx
1228
1248
  * ty.setBoardTitle({
1229
1249
  * title: "TTT Demo Board",
@@ -1263,7 +1283,7 @@ declare namespace ty {
1263
1283
  * 设置小程序看板页标题,小程序名称,面板名称等
1264
1284
  * @public
1265
1285
  * @since MiniKit 2.0.6
1266
- * @example Demo
1286
+ * @example
1267
1287
  * ```tsx
1268
1288
  * ty.setBoardTitle({
1269
1289
  * title: "TTT Demo Board",
@@ -1279,7 +1299,7 @@ declare namespace ty {
1279
1299
  * 设置小程序看板页icon,小程序icon,面板icon等
1280
1300
  * @public
1281
1301
  * @since MiniKit 2.3.17
1282
- * @example Demo
1302
+ * @example
1283
1303
  * ```tsx
1284
1304
  * ty.setBoardIcon({
1285
1305
  * icon: "https://images.tuyacn.com/rms-static/b7bed040-87b8-11eb-864d-a9f07cbbdf37-1616051299140.png?tyName=logo_cn.png",
@@ -1319,7 +1339,7 @@ declare namespace ty {
1319
1339
  * 设置小程序看板页icon,小程序icon,面板icon等
1320
1340
  * @public
1321
1341
  * @since MiniKit 2.3.17
1322
- * @example Demo
1342
+ * @example
1323
1343
  * ```tsx
1324
1344
  * ty.setBoardIcon({
1325
1345
  * icon: "https://images.tuyacn.com/rms-static/b7bed040-87b8-11eb-864d-a9f07cbbdf37-1616051299140.png?tyName=logo_cn.png",
@@ -1335,7 +1355,7 @@ declare namespace ty {
1335
1355
  * 显示小程序看板页的标题和icon
1336
1356
  * @public
1337
1357
  * @since MiniKit 2.3.17
1338
- * @example Demo
1358
+ * @example
1339
1359
  * ```tsx
1340
1360
  * ty.showBoardTitleIcon({
1341
1361
  * success: data => {
@@ -1373,7 +1393,7 @@ declare namespace ty {
1373
1393
  * 显示小程序看板页的标题和icon
1374
1394
  * @public
1375
1395
  * @since MiniKit 2.3.17
1376
- * @example Demo
1396
+ * @example
1377
1397
  * ```tsx
1378
1398
  * ty.showBoardTitleIcon({
1379
1399
  * success: data => {
@@ -1392,7 +1412,7 @@ declare namespace ty {
1392
1412
  * 隐藏小程序看板页的标题和icon
1393
1413
  * @public
1394
1414
  * @since MiniKit 2.3.17
1395
- * @example Demo
1415
+ * @example
1396
1416
  * ```tsx
1397
1417
  * ty.hideBoardTitleIcon({
1398
1418
  * success: data => {
@@ -1430,7 +1450,7 @@ declare namespace ty {
1430
1450
  * 隐藏小程序看板页的标题和icon
1431
1451
  * @public
1432
1452
  * @since MiniKit 2.3.17
1433
- * @example Demo
1453
+ * @example
1434
1454
  * ```tsx
1435
1455
  * ty.hideBoardTitleIcon({
1436
1456
  * success: data => {
@@ -1449,7 +1469,7 @@ declare namespace ty {
1449
1469
  * 获取菜单按钮(右上角胶囊按钮)的布局位置信息。坐标信息以屏幕左上角为原点。
1450
1470
  * @public
1451
1471
  * @since MiniKit 2.3.0
1452
- * @example Demo
1472
+ * @example
1453
1473
  * ```tsx
1454
1474
  * ty.getMenuButtonBoundingClientRect({
1455
1475
  * success: data => {
@@ -1518,7 +1538,7 @@ declare namespace ty {
1518
1538
  * 获取菜单按钮(右上角胶囊按钮)的布局位置信息。坐标信息以屏幕左上角为原点。
1519
1539
  * @public
1520
1540
  * @since MiniKit 2.3.0
1521
- * @example Demo
1541
+ * @example
1522
1542
  * ```tsx
1523
1543
  * ty.getMenuButtonBoundingClientRect({
1524
1544
  * success: data => {
@@ -1568,7 +1588,7 @@ declare namespace ty {
1568
1588
  * 预下载智能小程序,此接口仅供提供预下载普通智能小程序调用,面板小程序的预下载需要使用另外的接口。
1569
1589
  * @public
1570
1590
  * @since MiniKit 2.3.0
1571
- * @example Demo
1591
+ * @example
1572
1592
  * ```tsx
1573
1593
  * ty.preDownloadMiniApp({
1574
1594
  * miniAppId: "tyxxxxxxxxxxxxxxxx",
@@ -1613,7 +1633,7 @@ declare namespace ty {
1613
1633
  * 调用接口获取登录凭证(code)。通过凭证进而换取用户登录态信息,包括用户在当前小程序的唯一标识(openid)、iot账号下的唯一标识(unionid)
1614
1634
  * @public
1615
1635
  * @since MiniKit 2.3.2
1616
- * @example Demo
1636
+ * @example
1617
1637
  * ```tsx
1618
1638
  * ty.login({
1619
1639
  * timeout: 5000,
@@ -1659,7 +1679,7 @@ declare namespace ty {
1659
1679
  * 屏幕旋转设置,auto / portrait / landscape。pad模式下不支持屏幕旋转
1660
1680
  * @public
1661
1681
  * @since MiniKit 2.4.1
1662
- * @example Demo
1682
+ * @example
1663
1683
  * ```tsx
1664
1684
  * ty.setPageOrientation({
1665
1685
  * pageOrientation: "portrait",
@@ -1705,7 +1725,7 @@ declare namespace ty {
1705
1725
  * 隐藏右上角胶囊按钮
1706
1726
  * @public
1707
1727
  * @since MiniKit 2.5.0
1708
- * @example Demo
1728
+ * @example
1709
1729
  * ```tsx
1710
1730
  * ty.hideMenuButton({
1711
1731
  * success: data => {
@@ -1743,7 +1763,7 @@ declare namespace ty {
1743
1763
  * 显示右上角胶囊按钮
1744
1764
  * @public
1745
1765
  * @since MiniKit 2.5.0
1746
- * @example Demo
1766
+ * @example
1747
1767
  * ```tsx
1748
1768
  * ty.showMenuButton({
1749
1769
  * success: data => {
@@ -1781,7 +1801,7 @@ declare namespace ty {
1781
1801
  * 显示手机状态栏
1782
1802
  * @public
1783
1803
  * @since MiniKit 2.6.0
1784
- * @example Demo
1804
+ * @example
1785
1805
  * ```tsx
1786
1806
  * ty.showStatusBar({
1787
1807
  * success: data => {
@@ -1819,7 +1839,7 @@ declare namespace ty {
1819
1839
  * 隐藏手机状态栏
1820
1840
  * @public
1821
1841
  * @since MiniKit 2.6.0
1822
- * @example Demo
1842
+ * @example
1823
1843
  * ```tsx
1824
1844
  * ty.hideStatusBar({
1825
1845
  * success: data => {
@@ -1857,7 +1877,7 @@ declare namespace ty {
1857
1877
  * 关闭小部件
1858
1878
  * @public
1859
1879
  * @since MiniKit 2.6.1
1860
- * @example Demo
1880
+ * @example
1861
1881
  * ```tsx
1862
1882
  * ty.exitMiniWidget({
1863
1883
  * success: data => {
@@ -1895,7 +1915,7 @@ declare namespace ty {
1895
1915
  * 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
1896
1916
  * @public
1897
1917
  * @since MiniKit 3.0.0
1898
- * @example Demo
1918
+ * @example
1899
1919
  * ```tsx
1900
1920
  * ty.canOpenURL({
1901
1921
  * url: "thingsmart://",
@@ -1942,7 +1962,7 @@ declare namespace ty {
1942
1962
  * 判断设备上是否有已经安装相应应用或可以处理URL的程序,返回结果是一个对象,只有一个参数,格式为Boolean值。
1943
1963
  * @public
1944
1964
  * @since MiniKit 3.0.0
1945
- * @example Demo
1965
+ * @example
1946
1966
  * ```tsx
1947
1967
  * ty.canOpenURL({
1948
1968
  * url: "thingsmart://",
@@ -1965,7 +1985,7 @@ declare namespace ty {
1965
1985
  * 打开设备上的某个应用或可以处理URL的程序。
1966
1986
  * @public
1967
1987
  * @since MiniKit 3.0.0
1968
- * @example Demo
1988
+ * @example
1969
1989
  * ```tsx
1970
1990
  * ty.openURL({
1971
1991
  * url: "thingsmart://",
@@ -2005,7 +2025,7 @@ declare namespace ty {
2005
2025
  * 获取小程序账号信息
2006
2026
  * @public
2007
2027
  * @since MiniKit 3.1.0
2008
- * @example Demo
2028
+ * @example
2009
2029
  * ```tsx
2010
2030
  * ty.getAccountInfo({
2011
2031
  * success: data => {
@@ -2049,7 +2069,7 @@ declare namespace ty {
2049
2069
  * 获取小程序账号信息
2050
2070
  * @public
2051
2071
  * @since MiniKit 3.1.0
2052
- * @example Demo
2072
+ * @example
2053
2073
  * ```tsx
2054
2074
  * ty.getAccountInfo({
2055
2075
  * success: data => {
@@ -2074,7 +2094,7 @@ declare namespace ty {
2074
2094
  * 获取小程序自定义配置
2075
2095
  * @public
2076
2096
  * @since MiniKit 3.11.5
2077
- * @example Demo
2097
+ * @example
2078
2098
  * ```tsx
2079
2099
  * ty.getMiniAppConfig({
2080
2100
  * success: data => {
@@ -2118,7 +2138,7 @@ declare namespace ty {
2118
2138
  * 获取小程序自定义配置
2119
2139
  * @public
2120
2140
  * @since MiniKit 3.11.5
2121
- * @example Demo
2141
+ * @example
2122
2142
  * ```tsx
2123
2143
  * ty.getMiniAppConfig({
2124
2144
  * success: data => {
@@ -2143,7 +2163,7 @@ declare namespace ty {
2143
2163
  * 唤起小程序看板页
2144
2164
  * @public
2145
2165
  * @since MiniKit 3.3.0
2146
- * @example Demo
2166
+ * @example
2147
2167
  * ```tsx
2148
2168
  * ty.showBoard({
2149
2169
  * success: data => {
@@ -2181,7 +2201,7 @@ declare namespace ty {
2181
2201
  * 重置小程序看板页自定义栏item
2182
2202
  * @public
2183
2203
  * @since MiniKit 3.4.0
2184
- * @example Demo
2204
+ * @example
2185
2205
  * ```tsx
2186
2206
  * ty.resetBoardMenus({
2187
2207
  * effectPage: "current",
@@ -2231,7 +2251,7 @@ declare namespace ty {
2231
2251
  * 重置小程序看板页默认栏item
2232
2252
  * @public
2233
2253
  * @since MiniKit 3.4.0
2234
- * @example Demo
2254
+ * @example
2235
2255
  * ```tsx
2236
2256
  * ty.resetSystemMenus({
2237
2257
  * effectPage: "current",
@@ -2281,7 +2301,7 @@ declare namespace ty {
2281
2301
  * 针对具体的看板itemKey显示红点
2282
2302
  * @public
2283
2303
  * @since MiniKit 3.6.1
2284
- * @example Demo
2304
+ * @example
2285
2305
  * ```tsx
2286
2306
  * ty.showRedBot({
2287
2307
  * effectPage: "current",
@@ -2329,7 +2349,7 @@ declare namespace ty {
2329
2349
  * 针对具体的看板itemKey隐藏红点
2330
2350
  * @public
2331
2351
  * @since MiniKit 3.6.1
2332
- * @example Demo
2352
+ * @example
2333
2353
  * ```tsx
2334
2354
  * ty.hiddenRedBot({
2335
2355
  * effectPage: "current",
@@ -2377,7 +2397,7 @@ declare namespace ty {
2377
2397
  * 关闭小程序页面加载框, 如果页面配置中配置了manualHideLoading:true,需要手动调用此接口关闭加载框
2378
2398
  * @public
2379
2399
  * @since MiniKit 3.12.1
2380
- * @example Demo
2400
+ * @example
2381
2401
  * ```tsx
2382
2402
  * ty.hideRenderLoading({
2383
2403
  * success: data => {
@@ -2415,7 +2435,7 @@ declare namespace ty {
2415
2435
  * 设置小程序页面背景图片,调用后小程序导航栏背景色将变为透明
2416
2436
  * @public
2417
2437
  * @since MiniKit 3.12.1
2418
- * @example Demo
2438
+ * @example
2419
2439
  * ```tsx
2420
2440
  * ty.setBackgroundImage({
2421
2441
  * imageUrl: "https://images.tuyacn.com/rms-static/b7bed040-87b8-11eb-864d-a9f07cbbdf37-1616051299140.png?tyName=logo_cn.png",
@@ -2455,7 +2475,7 @@ declare namespace ty {
2455
2475
  * 设置小程序页面背景颜色
2456
2476
  * @public
2457
2477
  * @since MiniKit 3.14.0
2458
- * @example Demo
2478
+ * @example
2459
2479
  * ```tsx
2460
2480
  * ty.setBackgroundColor({
2461
2481
  * color: "#FFFFFF",
@@ -2495,7 +2515,7 @@ declare namespace ty {
2495
2515
  * 重新载入小程序
2496
2516
  * @public
2497
2517
  * @since MiniKit 3.22.1
2498
- * @example Demo
2518
+ * @example
2499
2519
  * ```tsx
2500
2520
  * ty.reloadMiniProgram({
2501
2521
  * success: data => {
@@ -2533,7 +2553,7 @@ declare namespace ty {
2533
2553
  * 给native发送通知
2534
2554
  * @public
2535
2555
  * @since MiniKit 3.20.0
2536
- * @example Demo
2556
+ * @example
2537
2557
  * ```tsx
2538
2558
  * ty.sendNotificationToNative({
2539
2559
  * eventId: "ttt_demo_event",
@@ -2585,7 +2605,7 @@ declare namespace ty {
2585
2605
  * 在当前页面显示导航条加载动画
2586
2606
  * @public
2587
2607
  * @since MiniKit 1.0.0
2588
- * @example Demo
2608
+ * @example
2589
2609
  * ```tsx
2590
2610
  * ty.showNavigationBarLoading({
2591
2611
  * success: data => { console.log(data); },
@@ -2619,7 +2639,7 @@ declare namespace ty {
2619
2639
  * 动态设置当前页面的标题
2620
2640
  * @public
2621
2641
  * @since MiniKit 1.0.0
2622
- * @example Demo
2642
+ * @example
2623
2643
  * ```tsx
2624
2644
  * ty.setNavigationBarTitle({
2625
2645
  * title: "TTT Demo Title",
@@ -2659,7 +2679,7 @@ declare namespace ty {
2659
2679
  * 设置页面导航条颜色
2660
2680
  * @public
2661
2681
  * @since MiniKit 1.0.0
2662
- * @example Demo
2682
+ * @example
2663
2683
  * ```tsx
2664
2684
  * ty.setNavigationBarColor({
2665
2685
  * frontColor: "#000000",
@@ -2711,7 +2731,7 @@ declare namespace ty {
2711
2731
  * 在当前页面隐藏导航条加载动画
2712
2732
  * @public
2713
2733
  * @since MiniKit 1.0.0
2714
- * @example Demo
2734
+ * @example
2715
2735
  * ```tsx
2716
2736
  * ty.hideNavigationBarLoading({
2717
2737
  * success: data => { console.log(data); },
@@ -2745,7 +2765,7 @@ declare namespace ty {
2745
2765
  * 隐藏返回首页按钮
2746
2766
  * @public
2747
2767
  * @since MiniKit 1.0.0
2748
- * @example Demo
2768
+ * @example
2749
2769
  * ```tsx
2750
2770
  * ty.hideHomeButton({
2751
2771
  * success: data => { console.log(data); },
@@ -2779,7 +2799,7 @@ declare namespace ty {
2779
2799
  * 路由到新页面
2780
2800
  * @public
2781
2801
  * @since MiniKit 1.0.0
2782
- * @example Demo
2802
+ * @example
2783
2803
  * ```tsx
2784
2804
  * ty.navigateTo({
2785
2805
  * url: "pages/index/index",
@@ -2848,7 +2868,7 @@ declare namespace ty {
2848
2868
  * 关闭当前页面,返回上一页面或多级页面
2849
2869
  * @public
2850
2870
  * @since MiniKit 1.0.0
2851
- * @example Demo
2871
+ * @example
2852
2872
  * ```tsx
2853
2873
  * ty.navigateBack({
2854
2874
  * delta: 1,
@@ -2889,7 +2909,7 @@ declare namespace ty {
2889
2909
  * 关闭当前页面,跳转到应用内的某个页面
2890
2910
  * @public
2891
2911
  * @since MiniKit 1.0.0
2892
- * @example Demo
2912
+ * @example
2893
2913
  * ```tsx
2894
2914
  * ty.redirectTo({
2895
2915
  * url: "pages/index/index",
@@ -2929,7 +2949,7 @@ declare namespace ty {
2929
2949
  * 关闭所有页面,打开到应用内的某个页面
2930
2950
  * @public
2931
2951
  * @since MiniKit 1.0.0
2932
- * @example Demo
2952
+ * @example
2933
2953
  * ```tsx
2934
2954
  * ty.reLaunch({
2935
2955
  * url: "pages/index/index",
@@ -2969,7 +2989,7 @@ declare namespace ty {
2969
2989
  * 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
2970
2990
  * @public
2971
2991
  * @since MiniKit 1.0.0
2972
- * @example Demo
2992
+ * @example
2973
2993
  * ```tsx
2974
2994
  * ty.switchTab({
2975
2995
  * url: "pages/index/index",
@@ -3009,7 +3029,7 @@ declare namespace ty {
3009
3029
  * 判断自定义API是否可用
3010
3030
  * @public
3011
3031
  * @since MiniKit 2.4.2
3012
- * @example Demo
3032
+ * @example
3013
3033
  * ```tsx
3014
3034
  * ty.extApiCanIUse({
3015
3035
  * api: "getDeviceInfo",
@@ -3055,7 +3075,7 @@ declare namespace ty {
3055
3075
  * 判断自定义API是否可用
3056
3076
  * @public
3057
3077
  * @since MiniKit 2.4.2
3058
- * @example Demo
3078
+ * @example
3059
3079
  * ```tsx
3060
3080
  * ty.extApiCanIUse({
3061
3081
  * api: "getDeviceInfo",
@@ -3077,7 +3097,7 @@ declare namespace ty {
3077
3097
  * 调用自定义API
3078
3098
  * @public
3079
3099
  * @since MiniKit 2.4.2
3080
- * @example Demo
3100
+ * @example
3081
3101
  * ```tsx
3082
3102
  * ty.extApiInvoke({
3083
3103
  * api: "getDeviceInfo",
@@ -3129,7 +3149,7 @@ declare namespace ty {
3129
3149
  * 调用自定义API
3130
3150
  * @public
3131
3151
  * @since MiniKit 2.4.2
3132
- * @example Demo
3152
+ * @example
3133
3153
  * ```tsx
3134
3154
  * ty.extApiInvoke({
3135
3155
  * api: "getDeviceInfo",
@@ -3152,7 +3172,7 @@ declare namespace ty {
3152
3172
  * 接收缓存结果,提供给基础库调用
3153
3173
  * @public
3154
3174
  * @since MiniKit 3.27.0
3155
- * @example Demo
3175
+ * @example
3156
3176
  * ```tsx
3157
3177
  * ty.receiveApiRequestCache({
3158
3178
  * requestId: "ttt-demo-request-id",
@@ -3214,7 +3234,7 @@ declare namespace ty {
3214
3234
  * 移除对应API的请求缓存
3215
3235
  * @public
3216
3236
  * @since MiniKit 3.27.0
3217
- * @example Demo
3237
+ * @example
3218
3238
  * ```tsx
3219
3239
  * ty.removeApiRequestCache({
3220
3240
  * apiList: [{ apiName: "m.life.app.ai.config", version: "2.0" }],
@@ -3254,7 +3274,7 @@ declare namespace ty {
3254
3274
  * 开始下拉刷新。调用后触发当前页面下拉刷新动画,效果与用户手动下拉刷新一致。
3255
3275
  * @public
3256
3276
  * @since MiniKit 1.0.0
3257
- * @example Demo
3277
+ * @example
3258
3278
  * ```tsx
3259
3279
  * ty.startPullDownRefresh({
3260
3280
  * success: data => { console.log(data); },
@@ -3288,7 +3308,7 @@ declare namespace ty {
3288
3308
  * 停止当前页面下拉刷新。
3289
3309
  * @public
3290
3310
  * @since MiniKit 1.0.0
3291
- * @example Demo
3311
+ * @example
3292
3312
  * ```tsx
3293
3313
  * ty.stopPullDownRefresh({
3294
3314
  * success: data => { console.log(data); },
@@ -3322,7 +3342,7 @@ declare namespace ty {
3322
3342
  * 是否允许页面滚动
3323
3343
  * @public
3324
3344
  * @since MiniKit 3.30.0
3325
- * @example Demo
3345
+ * @example
3326
3346
  * ```tsx
3327
3347
  * ty.enablePageScroll({
3328
3348
  * scrollEnable: true,
@@ -3363,7 +3383,7 @@ declare namespace ty {
3363
3383
  * 移除当前widget视图, 仅在widget内部调用且不支持Dialog形式
3364
3384
  * @public
3365
3385
  * @since MiniKit 3.5.4
3366
- * @example Demo
3386
+ * @example
3367
3387
  * ```tsx
3368
3388
  * ty.widgetRemove({
3369
3389
  * mode: "ONCE",
@@ -3405,7 +3425,7 @@ declare namespace ty {
3405
3425
  * 原生上报的事件
3406
3426
  * @public
3407
3427
  * @since MiniKit 2.3.0
3408
- * @example Demo
3428
+ * @example
3409
3429
  * ```tsx
3410
3430
  * ty.onNativeEvent(e => {
3411
3431
  * console.log(e);
@@ -3421,7 +3441,7 @@ declare namespace ty {
3421
3441
  * 原生上报的事件
3422
3442
  * @public
3423
3443
  * @since MiniKit 2.3.0
3424
- * @example Demo
3444
+ * @example
3425
3445
  * ```tsx
3426
3446
  * const listener = function (res) { console.log(res) }
3427
3447
  * ty.onNativeEvent(listener)
@@ -3437,7 +3457,7 @@ declare namespace ty {
3437
3457
  * 添加监听体验评分结束事件方法
3438
3458
  * @public
3439
3459
  * @since MiniKit 3.18.2
3440
- * @example Demo
3460
+ * @example
3441
3461
  * ```tsx
3442
3462
  * ty.onExperienceRateEnd(e => {
3443
3463
  * console.log(e);
@@ -3461,7 +3481,7 @@ declare namespace ty {
3461
3481
  * 移除监听体验评分结束事件方法
3462
3482
  * @public
3463
3483
  * @since MiniKit 3.18.2
3464
- * @example Demo
3484
+ * @example
3465
3485
  * ```tsx
3466
3486
  * const handler = e => {
3467
3487
  * console.log(e);
@@ -4048,6 +4068,11 @@ declare namespace ty {
4048
4068
  * @since MiniKit 3.21.0
4049
4069
  */
4050
4070
  extraQuery?: Record<string, any>
4071
+ /**
4072
+ * 渲染类型:native 表示 Lynx 自渲染;空/其它表示 Web
4073
+ * @since MiniKit 3.36.1
4074
+ */
4075
+ renderer?: string
4051
4076
  }
4052
4077
 
4053
4078
  /** @since MiniKit 2.0.6 */
@@ -4631,7 +4656,7 @@ declare namespace ty {
4631
4656
  * 打印info日志
4632
4657
  * @public
4633
4658
  * @since MiniKit 3.29.2
4634
- * @example Demo
4659
+ * @example
4635
4660
  * ```tsx
4636
4661
  * const manager = await ty.getMiniLogManager({ os: "Framework", success: () => {}, fail: () => {} });
4637
4662
  * manager.logInfo({
@@ -4688,7 +4713,7 @@ declare namespace ty {
4688
4713
  * 打印error日志
4689
4714
  * @public
4690
4715
  * @since MiniKit 3.29.2
4691
- * @example Demo
4716
+ * @example
4692
4717
  * ```tsx
4693
4718
  * const manager = await ty.getMiniLogManager({ os: "Framework", success: () => {}, fail: () => {} });
4694
4719
  * manager.logError({
@@ -4745,7 +4770,7 @@ declare namespace ty {
4745
4770
  * 打印warn日志
4746
4771
  * @public
4747
4772
  * @since MiniKit 3.29.2
4748
- * @example Demo
4773
+ * @example
4749
4774
  * ```tsx
4750
4775
  * const manager = await ty.getMiniLogManager({ os: "Framework", success: () => {}, fail: () => {} });
4751
4776
  * manager.logWarn({
@@ -4802,7 +4827,7 @@ declare namespace ty {
4802
4827
  * 创建日志实例对象
4803
4828
  * @public
4804
4829
  * @since MiniKit 3.29.2
4805
- * @example Demo
4830
+ * @example
4806
4831
  * ```tsx
4807
4832
  * const manager = await ty.getMiniLogManager({
4808
4833
  * os: "Framework",
@@ -4853,7 +4878,7 @@ declare namespace ty {
4853
4878
  * 停止监听通知
4854
4879
  * @public
4855
4880
  * @since MiniKit 3.6.0
4856
- * @example Demo
4881
+ * @example
4857
4882
  * ```tsx
4858
4883
  * const manager = await ty.createNativeEventManager({ name: "ttt_demo_notification", success: () => {}, fail: () => {} });
4859
4884
  * manager.offerListener({
@@ -4889,7 +4914,7 @@ declare namespace ty {
4889
4914
  * 开始监听通知
4890
4915
  * @public
4891
4916
  * @since MiniKit 3.6.0
4892
- * @example Demo
4917
+ * @example
4893
4918
  * ```tsx
4894
4919
  * const manager = await ty.createNativeEventManager({ name: "ttt_demo_notification", success: () => {}, fail: () => {} });
4895
4920
  * manager.onListener(e => {
@@ -4917,7 +4942,7 @@ declare namespace ty {
4917
4942
  * 停止监听通知
4918
4943
  * @public
4919
4944
  * @since MiniKit 3.15.2
4920
- * @example Demo
4945
+ * @example
4921
4946
  * ```tsx
4922
4947
  * const manager = await ty.createNativeEventManager({ name: "ttt_demo_notification", success: () => {}, fail: () => {} });
4923
4948
  * const handler = e => {
@@ -4947,7 +4972,7 @@ declare namespace ty {
4947
4972
  * 创建原生通知管理器
4948
4973
  * @public
4949
4974
  * @since MiniKit 3.6.0
4950
- * @example Demo
4975
+ * @example
4951
4976
  * ```tsx
4952
4977
  * const manager = await ty.createNativeEventManager({
4953
4978
  * name: "ttt_demo_notification",