@dcloudio/uni-app-x 0.7.77 → 0.7.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-app-x",
3
- "version": "0.7.77",
3
+ "version": "0.7.78",
4
4
  "description": "uni-app x types",
5
5
  "typings": "index.d.ts",
6
6
  "main": "index.d.ts",
@@ -77,4 +77,4 @@ export interface UniCSSUnitValue {
77
77
  interface UniCSSUnitValueConstructor {
78
78
  new(value: number, unit: UniCSSUnitType): UniCSSUnitValue
79
79
  }
80
- export const UniCSSUnitValue: UniCSSUnitValueConstructor
80
+ export declare const UniCSSUnitValue: UniCSSUnitValueConstructor
@@ -917,6 +917,339 @@ export interface BackgroundAudioManager {
917
917
  }
918
918
  */
919
919
  onWaiting(callback: (result: any) => void): void;
920
+
921
+ /**
922
+ * 取消监听背景音频可播放事件
923
+ * @uniPlatform
924
+ {
925
+ "app": {
926
+ "android": {
927
+ "osVer": "5.0",
928
+ "uniVer": "√",
929
+ "uniUtsPlugin": "x",
930
+ "unixVer": "4.91"
931
+ },
932
+ "ios": {
933
+ "osVer": "12.0",
934
+ "uniVer": "√",
935
+ "uniUtsPlugin": "x",
936
+ "unixVer": "4.91",
937
+ "unixUtsPlugin": "4.91"
938
+ },
939
+ "harmony": {
940
+ "osVer": "5.0.0",
941
+ "uniVer": "x",
942
+ "unixVer": "4.91"
943
+ }
944
+ }
945
+ }
946
+ */
947
+ offCanplay(): void;
948
+ /**
949
+ * 取消监听背景音频播放事件
950
+ * @uniPlatform
951
+ {
952
+ "app": {
953
+ "android": {
954
+ "osVer": "5.0",
955
+ "uniVer": "√",
956
+ "uniUtsPlugin": "x",
957
+ "unixVer": "4.91"
958
+ },
959
+ "ios": {
960
+ "osVer": "12.0",
961
+ "uniVer": "√",
962
+ "uniUtsPlugin": "x",
963
+ "unixVer": "4.91",
964
+ "unixUtsPlugin": "4.91"
965
+ },
966
+ "harmony": {
967
+ "osVer": "5.0.0",
968
+ "uniVer": "x",
969
+ "unixVer": "4.91"
970
+ }
971
+ }
972
+ }
973
+ */
974
+ offPlay(): void;
975
+ /**
976
+ * 取消监听背景音频暂停事件
977
+ * @uniPlatform
978
+ {
979
+ "app": {
980
+ "android": {
981
+ "osVer": "5.0",
982
+ "uniVer": "√",
983
+ "uniUtsPlugin": "x",
984
+ "unixVer": "4.91"
985
+ },
986
+ "ios": {
987
+ "osVer": "12.0",
988
+ "uniVer": "√",
989
+ "uniUtsPlugin": "x",
990
+ "unixVer": "4.91",
991
+ "unixUtsPlugin": "4.91"
992
+ },
993
+ "harmony": {
994
+ "osVer": "5.0.0",
995
+ "uniVer": "x",
996
+ "unixVer": "4.91"
997
+ }
998
+ }
999
+ }
1000
+ */
1001
+ offPause(): void;
1002
+ /**
1003
+ * 取消监听背景音频停止事件
1004
+ * @uniPlatform
1005
+ {
1006
+ "app": {
1007
+ "android": {
1008
+ "osVer": "5.0",
1009
+ "uniVer": "√",
1010
+ "uniUtsPlugin": "x",
1011
+ "unixVer": "4.91"
1012
+ },
1013
+ "ios": {
1014
+ "osVer": "12.0",
1015
+ "uniVer": "√",
1016
+ "uniUtsPlugin": "x",
1017
+ "unixVer": "4.91",
1018
+ "unixUtsPlugin": "4.91"
1019
+ },
1020
+ "harmony": {
1021
+ "osVer": "5.0.0",
1022
+ "uniVer": "x",
1023
+ "unixVer": "4.91"
1024
+ }
1025
+ }
1026
+ }
1027
+ */
1028
+ offStop(): void;
1029
+ /**
1030
+ * 取消监听背景音频自然播放结束事件
1031
+ * @uniPlatform
1032
+ {
1033
+ "app": {
1034
+ "android": {
1035
+ "osVer": "5.0",
1036
+ "uniVer": "√",
1037
+ "uniUtsPlugin": "x",
1038
+ "unixVer": "4.91"
1039
+ },
1040
+ "ios": {
1041
+ "osVer": "12.0",
1042
+ "uniVer": "√",
1043
+ "uniUtsPlugin": "x",
1044
+ "unixVer": "4.91",
1045
+ "unixUtsPlugin": "4.91"
1046
+ },
1047
+ "harmony": {
1048
+ "osVer": "5.0.0",
1049
+ "uniVer": "x",
1050
+ "unixVer": "4.91"
1051
+ }
1052
+ }
1053
+ }
1054
+ */
1055
+ offEnded(): void;
1056
+ /**
1057
+ * 取消监听音频进行 seek 操作事件
1058
+ * @uniPlatform
1059
+ {
1060
+ "app": {
1061
+ "android": {
1062
+ "osVer": "5.0",
1063
+ "uniVer": "√",
1064
+ "uniUtsPlugin": "x",
1065
+ "unixVer": "4.91"
1066
+ },
1067
+ "ios": {
1068
+ "osVer": "12.0",
1069
+ "uniVer": "√",
1070
+ "uniUtsPlugin": "x",
1071
+ "unixVer": "4.91",
1072
+ "unixUtsPlugin": "4.91"
1073
+ },
1074
+ "harmony": {
1075
+ "osVer": "5.0.0",
1076
+ "uniVer": "x",
1077
+ "unixVer": "4.91"
1078
+ }
1079
+ },
1080
+ "web": {
1081
+ "uniVer": "√",
1082
+ "unixVer": "4.0"
1083
+ }
1084
+ }
1085
+ */
1086
+ offSeeking() : void;
1087
+ /**
1088
+ * 取消监听音频完成 seek 操作事件
1089
+ * @uniPlatform
1090
+ {
1091
+ "app": {
1092
+ "android": {
1093
+ "osVer": "5.0",
1094
+ "uniVer": "√",
1095
+ "uniUtsPlugin": "x",
1096
+ "unixVer": "4.91"
1097
+ },
1098
+ "ios": {
1099
+ "osVer": "12.0",
1100
+ "uniVer": "√",
1101
+ "uniUtsPlugin": "x",
1102
+ "unixVer": "4.91",
1103
+ "unixUtsPlugin": "4.91"
1104
+ },
1105
+ "harmony": {
1106
+ "osVer": "5.0.0",
1107
+ "uniVer": "x",
1108
+ "unixVer": "4.91"
1109
+ }
1110
+ },
1111
+ "web": {
1112
+ "uniVer": "√",
1113
+ "unixVer": "4.0"
1114
+ }
1115
+ }
1116
+ */
1117
+ offSeeked() : void;
1118
+ /**
1119
+ * 取消监听背景音频播放进度更新事件
1120
+ * @uniPlatform
1121
+ {
1122
+ "app": {
1123
+ "android": {
1124
+ "osVer": "5.0",
1125
+ "uniVer": "√",
1126
+ "uniUtsPlugin": "x",
1127
+ "unixVer": "4.91"
1128
+ },
1129
+ "ios": {
1130
+ "osVer": "12.0",
1131
+ "uniVer": "√",
1132
+ "uniUtsPlugin": "x",
1133
+ "unixVer": "4.91",
1134
+ "unixUtsPlugin": "4.91"
1135
+ },
1136
+ "harmony": {
1137
+ "osVer": "5.0.0",
1138
+ "uniVer": "x",
1139
+ "unixVer": "4.91"
1140
+ }
1141
+ }
1142
+ }
1143
+ */
1144
+ offTimeUpdate(): void;
1145
+ /**
1146
+ * 取消监听用户在系统音乐播放面板点击上一曲事件
1147
+ * @uniPlatform
1148
+ {
1149
+ "app": {
1150
+ "android": {
1151
+ "osVer": "5.0",
1152
+ "uniVer": "√",
1153
+ "uniUtsPlugin": "x",
1154
+ "unixVer": "4.91"
1155
+ },
1156
+ "ios": {
1157
+ "osVer": "12.0",
1158
+ "uniVer": "√",
1159
+ "uniUtsPlugin": "x",
1160
+ "unixVer": "4.91",
1161
+ "unixUtsPlugin": "4.91"
1162
+ },
1163
+ "harmony": {
1164
+ "osVer": "5.0.0",
1165
+ "uniVer": "x",
1166
+ "unixVer": "4.91"
1167
+ }
1168
+ }
1169
+ }
1170
+ */
1171
+ offPrev(): void;
1172
+ /**
1173
+ * 取消监听用户在系统音乐播放面板点击下一曲事件
1174
+ * @uniPlatform
1175
+ {
1176
+ "app": {
1177
+ "android": {
1178
+ "osVer": "5.0",
1179
+ "uniVer": "√",
1180
+ "uniUtsPlugin": "x",
1181
+ "unixVer": "4.91"
1182
+ },
1183
+ "ios": {
1184
+ "osVer": "12.0",
1185
+ "uniVer": "√",
1186
+ "uniUtsPlugin": "x",
1187
+ "unixVer": "4.91",
1188
+ "unixUtsPlugin": "4.91"
1189
+ },
1190
+ "harmony": {
1191
+ "osVer": "5.0.0",
1192
+ "uniVer": "x",
1193
+ "unixVer": "4.91"
1194
+ }
1195
+ }
1196
+ }
1197
+ */
1198
+ offNext(): void;
1199
+ /**
1200
+ * 背景音频播放错误事件
1201
+ * @uniPlatform
1202
+ {
1203
+ "app": {
1204
+ "android": {
1205
+ "osVer": "5.0",
1206
+ "uniVer": "√",
1207
+ "uniUtsPlugin": "x",
1208
+ "unixVer": "4.91"
1209
+ },
1210
+ "ios": {
1211
+ "osVer": "12.0",
1212
+ "uniVer": "√",
1213
+ "uniUtsPlugin": "x",
1214
+ "unixVer": "4.91",
1215
+ "unixUtsPlugin": "4.91"
1216
+ },
1217
+ "harmony": {
1218
+ "osVer": "5.0.0",
1219
+ "uniVer": "x",
1220
+ "unixVer": "4.91"
1221
+ }
1222
+ }
1223
+ }
1224
+ */
1225
+ offError() : void;
1226
+ /**
1227
+ * 取消监听音频加载中事件
1228
+ * @uniPlatform
1229
+ {
1230
+ "app": {
1231
+ "android": {
1232
+ "osVer": "5.0",
1233
+ "uniVer": "√",
1234
+ "uniUtsPlugin": "x",
1235
+ "unixVer": "4.91"
1236
+ },
1237
+ "ios": {
1238
+ "osVer": "12.0",
1239
+ "uniVer": "√",
1240
+ "uniUtsPlugin": "x",
1241
+ "unixVer": "4.91",
1242
+ "unixUtsPlugin": "4.91"
1243
+ },
1244
+ "harmony": {
1245
+ "osVer": "x",
1246
+ "uniVer": "x",
1247
+ "unixVer": "x"
1248
+ }
1249
+ }
1250
+ }
1251
+ */
1252
+ offWaiting(): void;
920
1253
  /**
921
1254
  * 需要基础库: `3.4.8`
922
1255
  *
@@ -1289,7 +1289,81 @@ export interface RecorderManager {
1289
1289
  * }
1290
1290
  * }
1291
1291
  */
1292
- onStart(options : (result : any) => void) : void;
1292
+ onStart(options : (result : any) => void) : void;
1293
+
1294
+ /**
1295
+ * 取消监听录音开始事件
1296
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onstart
1297
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onstart
1298
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
1299
+ * @uniPlatform {
1300
+ * "app": {
1301
+ * "android": {
1302
+ * "osVer": "5.0",
1303
+ * "uniVer": "√",
1304
+ * "unixVer": "4.91"
1305
+ * },
1306
+ * "ios": {
1307
+ * "osVer": "12.0",
1308
+ * "uniVer": "√",
1309
+ * "unixVer": "4.91",
1310
+ * "unixUtsPlugin": "4.91"
1311
+ * },
1312
+ * "harmony": {
1313
+ * "osVer": "5.0.0",
1314
+ * "uniVer": "x",
1315
+ * "unixVer": "4.91"
1316
+ * }
1317
+ * },
1318
+ * "web": {
1319
+ * "uniVer": "√",
1320
+ * "unixVer": "x"
1321
+ * },
1322
+ * "mp":{
1323
+ * "weixin": {
1324
+ * "hostVer": "√",
1325
+ * "uniVer": "√",
1326
+ * "unixVer": "4.41"
1327
+ * },
1328
+ * "alipay": {
1329
+ * "hostVer": "√",
1330
+ * "uniVer": "√",
1331
+ * "unixVer": "x"
1332
+ * },
1333
+ * "baidu": {
1334
+ * "hostVer": "√",
1335
+ * "uniVer": "√",
1336
+ * "unixVer": "x"
1337
+ * },
1338
+ * "toutiao": {
1339
+ * "hostVer": "√",
1340
+ * "uniVer": "√",
1341
+ * "unixVer": "x"
1342
+ * },
1343
+ * "lark": {
1344
+ * "hostVer": "√",
1345
+ * "uniVer": "√",
1346
+ * "unixVer": "x"
1347
+ * },
1348
+ * "qq": {
1349
+ * "hostVer": "√",
1350
+ * "uniVer": "√",
1351
+ * "unixVer": "x"
1352
+ * },
1353
+ * "kuaishou": {
1354
+ * "hostVer": "√",
1355
+ * "uniVer": "√",
1356
+ * "unixVer": "x"
1357
+ * },
1358
+ * "jd": {
1359
+ * "hostVer": "√",
1360
+ * "uniVer": "√",
1361
+ * "unixVer": "x"
1362
+ * }
1363
+ * }
1364
+ * }
1365
+ */
1366
+ offStart() : void;
1293
1367
  /**
1294
1368
  * 录音暂停事件,App-Android平台在Android 7.0及以后版本支持
1295
1369
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onpause
@@ -1362,7 +1436,82 @@ export interface RecorderManager {
1362
1436
  * }
1363
1437
  * }
1364
1438
  */
1365
- onPause(options : (result : any) => void) : void;
1439
+ onPause(options : (result : any) => void) : void;
1440
+
1441
+ /**
1442
+ * 取消监听录音暂停事件
1443
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onpause
1444
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onpause
1445
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
1446
+ * @uniPlatform {
1447
+ * "app": {
1448
+ * "android": {
1449
+ * "osVer": "7.0",
1450
+ * "uniVer": "x",
1451
+ * "unixVer": "4.91"
1452
+ * },
1453
+ * "ios": {
1454
+ * "osVer": "12.0",
1455
+ * "uniVer": "√",
1456
+ * "unixVer": "4.91",
1457
+ * "unixUtsPlugin": "4.91"
1458
+ * },
1459
+ * "harmony": {
1460
+ * "osVer": "5.0.0",
1461
+ * "uniVer": "x",
1462
+ * "unixVer": "4.91"
1463
+ * }
1464
+ * },
1465
+ * "web": {
1466
+ * "uniVer": "√",
1467
+ * "unixVer": "x"
1468
+ * },
1469
+ * "mp":{
1470
+ * "weixin": {
1471
+ * "hostVer": "√",
1472
+ * "uniVer": "√",
1473
+ * "unixVer": "4.41"
1474
+ * },
1475
+ * "alipay": {
1476
+ * "hostVer": "√",
1477
+ * "uniVer": "√",
1478
+ * "unixVer": "x"
1479
+ * },
1480
+ * "baidu": {
1481
+ * "hostVer": "√",
1482
+ * "uniVer": "√",
1483
+ * "unixVer": "x"
1484
+ * },
1485
+ * "toutiao": {
1486
+ * "hostVer": "√",
1487
+ * "uniVer": "√",
1488
+ * "unixVer": "x"
1489
+ * },
1490
+ * "lark": {
1491
+ * "hostVer": "√",
1492
+ * "uniVer": "√",
1493
+ * "unixVer": "x"
1494
+ * },
1495
+ * "qq": {
1496
+ * "hostVer": "√",
1497
+ * "uniVer": "√",
1498
+ * "unixVer": "x"
1499
+ * },
1500
+ * "kuaishou": {
1501
+ * "hostVer": "√",
1502
+ * "uniVer": "√",
1503
+ * "unixVer": "x"
1504
+ * },
1505
+ * "jd": {
1506
+ * "hostVer": "√",
1507
+ * "uniVer": "√",
1508
+ * "unixVer": "x"
1509
+ * }
1510
+ * }
1511
+ * }
1512
+ */
1513
+ offPause() : void;
1514
+
1366
1515
  /**
1367
1516
  * 录音停止事件,会回调文件地址
1368
1517
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onstop
@@ -1435,7 +1584,81 @@ export interface RecorderManager {
1435
1584
  * }
1436
1585
  * }
1437
1586
  */
1438
- onStop(options : (result : RecorderManagerOnStopResult) => void) : void;
1587
+ onStop(options : (result : RecorderManagerOnStopResult) => void) : void;
1588
+
1589
+ /**
1590
+ * 取消监听录音停止事件
1591
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onstop
1592
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onstop
1593
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
1594
+ * @uniPlatform {
1595
+ * "app": {
1596
+ * "android": {
1597
+ * "osVer": "5.0",
1598
+ * "uniVer": "√",
1599
+ * "unixVer": "4.91"
1600
+ * },
1601
+ * "ios": {
1602
+ * "osVer": "12.0",
1603
+ * "uniVer": "√",
1604
+ * "unixVer": "4.91",
1605
+ * "unixUtsPlugin": "4.91"
1606
+ * },
1607
+ * "harmony": {
1608
+ * "osVer": "5.0.0",
1609
+ * "uniVer": "x",
1610
+ * "unixVer": "4.91"
1611
+ * }
1612
+ * },
1613
+ * "web": {
1614
+ * "uniVer": "√",
1615
+ * "unixVer": "x"
1616
+ * },
1617
+ * "mp":{
1618
+ * "weixin": {
1619
+ * "hostVer": "√",
1620
+ * "uniVer": "√",
1621
+ * "unixVer": "4.41"
1622
+ * },
1623
+ * "alipay": {
1624
+ * "hostVer": "√",
1625
+ * "uniVer": "√",
1626
+ * "unixVer": "x"
1627
+ * },
1628
+ * "baidu": {
1629
+ * "hostVer": "√",
1630
+ * "uniVer": "√",
1631
+ * "unixVer": "x"
1632
+ * },
1633
+ * "toutiao": {
1634
+ * "hostVer": "√",
1635
+ * "uniVer": "√",
1636
+ * "unixVer": "x"
1637
+ * },
1638
+ * "lark": {
1639
+ * "hostVer": "√",
1640
+ * "uniVer": "√",
1641
+ * "unixVer": "x"
1642
+ * },
1643
+ * "qq": {
1644
+ * "hostVer": "√",
1645
+ * "uniVer": "√",
1646
+ * "unixVer": "x"
1647
+ * },
1648
+ * "kuaishou": {
1649
+ * "hostVer": "√",
1650
+ * "uniVer": "√",
1651
+ * "unixVer": "x"
1652
+ * },
1653
+ * "jd": {
1654
+ * "hostVer": "√",
1655
+ * "uniVer": "√",
1656
+ * "unixVer": "x"
1657
+ * }
1658
+ * }
1659
+ * }
1660
+ */
1661
+ offStop() : void;
1439
1662
  /**
1440
1663
  * 已录制完指定帧大小的文件,会回调录音分片结果数据。如果设置了 frameSize ,则会回调此事件
1441
1664
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onframerecorded
@@ -1508,7 +1731,82 @@ export interface RecorderManager {
1508
1731
  * }
1509
1732
  * }
1510
1733
  */
1511
- onFrameRecorded(options : (result : any) => void) : void;
1734
+ onFrameRecorded(options : (result : any) => void) : void;
1735
+
1736
+ /**
1737
+ * 取消监听帧回调事件
1738
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onframerecorded
1739
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onframerecorded
1740
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
1741
+ * @uniPlatform {
1742
+ * "app": {
1743
+ * "android": {
1744
+ * "osVer": "5.0",
1745
+ * "uniVer": "x",
1746
+ * "unixVer": "x"
1747
+ * },
1748
+ * "ios": {
1749
+ * "osVer": "12.0",
1750
+ * "uniVer": "x",
1751
+ * "unixVer": "x",
1752
+ * "unixUtsPlugin": "x"
1753
+ * },
1754
+ * "harmony": {
1755
+ * "osVer": "5.0.0",
1756
+ * "uniVer": "x",
1757
+ * "unixVer": "x"
1758
+ * }
1759
+ * },
1760
+ * "web": {
1761
+ * "uniVer": "√",
1762
+ * "unixVer": "x"
1763
+ * },
1764
+ * "mp":{
1765
+ * "weixin": {
1766
+ * "hostVer": "√",
1767
+ * "uniVer": "√",
1768
+ * "unixVer": "4.41"
1769
+ * },
1770
+ * "alipay": {
1771
+ * "hostVer": "√",
1772
+ * "uniVer": "√",
1773
+ * "unixVer": "x"
1774
+ * },
1775
+ * "baidu": {
1776
+ * "hostVer": "√",
1777
+ * "uniVer": "√",
1778
+ * "unixVer": "x"
1779
+ * },
1780
+ * "toutiao": {
1781
+ * "hostVer": "√",
1782
+ * "uniVer": "√",
1783
+ * "unixVer": "x"
1784
+ * },
1785
+ * "lark": {
1786
+ * "hostVer": "√",
1787
+ * "uniVer": "√",
1788
+ * "unixVer": "x"
1789
+ * },
1790
+ * "qq": {
1791
+ * "hostVer": "√",
1792
+ * "uniVer": "√",
1793
+ * "unixVer": "x"
1794
+ * },
1795
+ * "kuaishou": {
1796
+ * "hostVer": "√",
1797
+ * "uniVer": "√",
1798
+ * "unixVer": "x"
1799
+ * },
1800
+ * "jd": {
1801
+ * "hostVer": "√",
1802
+ * "uniVer": "√",
1803
+ * "unixVer": "x"
1804
+ * }
1805
+ * }
1806
+ * }
1807
+ */
1808
+ offFrameRecorded() : void;
1809
+
1512
1810
  /**
1513
1811
  * 录音错误事件, 会回调错误信息
1514
1812
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onerror
@@ -1581,7 +1879,82 @@ export interface RecorderManager {
1581
1879
  * }
1582
1880
  * }
1583
1881
  */
1584
- onError(options: (result: IRecorderManagerFail) => void): void;
1882
+ onError(options: (result: IRecorderManagerFail) => void): void;
1883
+
1884
+ /**
1885
+ * 取消监听录音错误事件
1886
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onerror
1887
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onerror
1888
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
1889
+ * @uniPlatform {
1890
+ * "app": {
1891
+ * "android": {
1892
+ * "osVer": "5.0",
1893
+ * "uniVer": "√",
1894
+ * "unixVer": "4.91"
1895
+ * },
1896
+ * "ios": {
1897
+ * "osVer": "12.0",
1898
+ * "uniVer": "v",
1899
+ * "unixVer": "4.91",
1900
+ * "unixUtsPlugin": "4.91"
1901
+ * },
1902
+ * "harmony": {
1903
+ * "osVer": "5.0.0",
1904
+ * "uniVer": "x",
1905
+ * "unixVer": "4.91"
1906
+ * }
1907
+ * },
1908
+ * "web": {
1909
+ * "uniVer": "√",
1910
+ * "unixVer": "x"
1911
+ * },
1912
+ * "mp":{
1913
+ * "weixin": {
1914
+ * "hostVer": "√",
1915
+ * "uniVer": "√",
1916
+ * "unixVer": "4.41"
1917
+ * },
1918
+ * "alipay": {
1919
+ * "hostVer": "√",
1920
+ * "uniVer": "√",
1921
+ * "unixVer": "x"
1922
+ * },
1923
+ * "baidu": {
1924
+ * "hostVer": "√",
1925
+ * "uniVer": "√",
1926
+ * "unixVer": "x"
1927
+ * },
1928
+ * "toutiao": {
1929
+ * "hostVer": "√",
1930
+ * "uniVer": "√",
1931
+ * "unixVer": "x"
1932
+ * },
1933
+ * "lark": {
1934
+ * "hostVer": "√",
1935
+ * "uniVer": "√",
1936
+ * "unixVer": "x"
1937
+ * },
1938
+ * "qq": {
1939
+ * "hostVer": "√",
1940
+ * "uniVer": "√",
1941
+ * "unixVer": "x"
1942
+ * },
1943
+ * "kuaishou": {
1944
+ * "hostVer": "√",
1945
+ * "uniVer": "√",
1946
+ * "unixVer": "x"
1947
+ * },
1948
+ * "jd": {
1949
+ * "hostVer": "√",
1950
+ * "uniVer": "√",
1951
+ * "unixVer": "x"
1952
+ * }
1953
+ * }
1954
+ * }
1955
+ */
1956
+ offError(): void;
1957
+
1585
1958
  /**
1586
1959
  * 监听录音继续事件,App-Android平台在Android 7.0及以后版本支持
1587
1960
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onresume
@@ -1654,7 +2027,82 @@ export interface RecorderManager {
1654
2027
  * }
1655
2028
  * }
1656
2029
  */
1657
- onResume(options : (result : any) => void) : void;
2030
+ onResume(options : (result : any) => void) : void;
2031
+
2032
+ /**
2033
+ * 取消监听录音继续事件
2034
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onresume
2035
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#onresume
2036
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
2037
+ * @uniPlatform {
2038
+ * "app": {
2039
+ * "android": {
2040
+ * "osVer": "7.0",
2041
+ * "uniVer": "x",
2042
+ * "unixVer": "4.91"
2043
+ * },
2044
+ * "ios": {
2045
+ * "osVer": "12.0",
2046
+ * "uniVer": "x",
2047
+ * "unixVer": "4.91",
2048
+ * "unixUtsPlugin": "4.91"
2049
+ * },
2050
+ * "harmony": {
2051
+ * "osVer": "5.0.0",
2052
+ * "uniVer": "x",
2053
+ * "unixVer": "4.91"
2054
+ * }
2055
+ * },
2056
+ * "web": {
2057
+ * "uniVer": "x",
2058
+ * "unixVer": "x"
2059
+ * },
2060
+ * "mp":{
2061
+ * "weixin": {
2062
+ * "hostVer": "√",
2063
+ * "uniVer": "√",
2064
+ * "unixVer": "4.41"
2065
+ * },
2066
+ * "alipay": {
2067
+ * "hostVer": "√",
2068
+ * "uniVer": "√",
2069
+ * "unixVer": "x"
2070
+ * },
2071
+ * "baidu": {
2072
+ * "hostVer": "√",
2073
+ * "uniVer": "√",
2074
+ * "unixVer": "x"
2075
+ * },
2076
+ * "toutiao": {
2077
+ * "hostVer": "√",
2078
+ * "uniVer": "√",
2079
+ * "unixVer": "x"
2080
+ * },
2081
+ * "lark": {
2082
+ * "hostVer": "√",
2083
+ * "uniVer": "√",
2084
+ * "unixVer": "x"
2085
+ * },
2086
+ * "qq": {
2087
+ * "hostVer": "√",
2088
+ * "uniVer": "√",
2089
+ * "unixVer": "x"
2090
+ * },
2091
+ * "kuaishou": {
2092
+ * "hostVer": "√",
2093
+ * "uniVer": "√",
2094
+ * "unixVer": "x"
2095
+ * },
2096
+ * "jd": {
2097
+ * "hostVer": "√",
2098
+ * "uniVer": "√",
2099
+ * "unixVer": "x"
2100
+ * }
2101
+ * }
2102
+ * }
2103
+ */
2104
+ offResume() : void;
2105
+
1658
2106
  /**
1659
2107
  * 监听录音因为受到系统占用而被中断开始事件
1660
2108
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionbegin
@@ -1727,7 +2175,81 @@ export interface RecorderManager {
1727
2175
  * }
1728
2176
  * }
1729
2177
  */
1730
- onInterruptionBegin(options : (result : any) => void) : void;
2178
+ onInterruptionBegin(options : (result : any) => void) : void;
2179
+
2180
+ /**
2181
+ * 取消监听录音因为受到系统占用而被中断开始事件
2182
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionbegin
2183
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionbegin
2184
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
2185
+ * @uniPlatform {
2186
+ * "app": {
2187
+ * "android": {
2188
+ * "osVer": "5.0",
2189
+ * "uniVer": "x",
2190
+ * "unixVer": "4.91"
2191
+ * },
2192
+ * "ios": {
2193
+ * "osVer": "12.0",
2194
+ * "uniVer": "x",
2195
+ * "unixVer": "4.91",
2196
+ * "unixUtsPlugin": "4.91"
2197
+ * },
2198
+ * "harmony": {
2199
+ * "osVer": "5.0.0",
2200
+ * "uniVer": "x",
2201
+ * "unixVer": "4.91"
2202
+ * }
2203
+ * },
2204
+ * "web": {
2205
+ * "uniVer": "x",
2206
+ * "unixVer": "x"
2207
+ * },
2208
+ * "mp":{
2209
+ * "weixin": {
2210
+ * "hostVer": "√",
2211
+ * "uniVer": "√",
2212
+ * "unixVer": "4.41"
2213
+ * },
2214
+ * "alipay": {
2215
+ * "hostVer": "x",
2216
+ * "uniVer": "x",
2217
+ * "unixVer": "x"
2218
+ * },
2219
+ * "baidu": {
2220
+ * "hostVer": "√",
2221
+ * "uniVer": "√",
2222
+ * "unixVer": "x"
2223
+ * },
2224
+ * "toutiao": {
2225
+ * "hostVer": "x",
2226
+ * "uniVer": "x",
2227
+ * "unixVer": "x"
2228
+ * },
2229
+ * "lark": {
2230
+ * "hostVer": "x",
2231
+ * "uniVer": "x",
2232
+ * "unixVer": "x"
2233
+ * },
2234
+ * "qq": {
2235
+ * "hostVer": "√",
2236
+ * "uniVer": "√",
2237
+ * "unixVer": "x"
2238
+ * },
2239
+ * "kuaishou": {
2240
+ * "hostVer": "√",
2241
+ * "uniVer": "√",
2242
+ * "unixVer": "x"
2243
+ * },
2244
+ * "jd": {
2245
+ * "hostVer": "x",
2246
+ * "uniVer": "x",
2247
+ * "unixVer": "x"
2248
+ * }
2249
+ * }
2250
+ * }
2251
+ */
2252
+ offInterruptionBegin() : void;
1731
2253
  /**
1732
2254
  * 监听录音中断结束事件
1733
2255
  * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionend
@@ -1800,7 +2322,81 @@ export interface RecorderManager {
1800
2322
  * }
1801
2323
  * }
1802
2324
  */
1803
- onInterruptionEnd(options : (result : any) => void) : void;
2325
+ onInterruptionEnd(options : (result : any) => void) : void;
2326
+
2327
+ /**
2328
+ * 取消监听录音中断结束事件
2329
+ * @tutorial https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionend
2330
+ * @tutorial_uni_app_x https://doc.dcloud.net.cn/uni-app-x/api/get-recorder-manager.html#oninterruptionend
2331
+ * @tutorial_uni_app https://uniapp.dcloud.net.cn/api/media/record-manager.html
2332
+ * @uniPlatform {
2333
+ * "app": {
2334
+ * "android": {
2335
+ * "osVer": "5.0",
2336
+ * "uniVer": "x",
2337
+ * "unixVer": "4.91"
2338
+ * },
2339
+ * "ios": {
2340
+ * "osVer": "12.0",
2341
+ * "uniVer": "x",
2342
+ * "unixVer": "4.91",
2343
+ * "unixUtsPlugin": "4.91"
2344
+ * },
2345
+ * "harmony": {
2346
+ * "osVer": "5.0.0",
2347
+ * "uniVer": "x",
2348
+ * "unixVer": "4.91"
2349
+ * }
2350
+ * },
2351
+ * "web": {
2352
+ * "uniVer": "x",
2353
+ * "unixVer": "x"
2354
+ * },
2355
+ * "mp":{
2356
+ * "weixin": {
2357
+ * "hostVer": "√",
2358
+ * "uniVer": "√",
2359
+ * "unixVer": "4.41"
2360
+ * },
2361
+ * "alipay": {
2362
+ * "hostVer": "x",
2363
+ * "uniVer": "x",
2364
+ * "unixVer": "x"
2365
+ * },
2366
+ * "baidu": {
2367
+ * "hostVer": "√",
2368
+ * "uniVer": "√",
2369
+ * "unixVer": "x"
2370
+ * },
2371
+ * "toutiao": {
2372
+ * "hostVer": "x",
2373
+ * "uniVer": "x",
2374
+ * "unixVer": "x"
2375
+ * },
2376
+ * "lark": {
2377
+ * "hostVer": "x",
2378
+ * "uniVer": "x",
2379
+ * "unixVer": "x"
2380
+ * },
2381
+ * "qq": {
2382
+ * "hostVer": "√",
2383
+ * "uniVer": "√",
2384
+ * "unixVer": "x"
2385
+ * },
2386
+ * "kuaishou": {
2387
+ * "hostVer": "√",
2388
+ * "uniVer": "√",
2389
+ * "unixVer": "x"
2390
+ * },
2391
+ * "jd": {
2392
+ * "hostVer": "x",
2393
+ * "uniVer": "x",
2394
+ * "unixVer": "x"
2395
+ * }
2396
+ * }
2397
+ * }
2398
+ */
2399
+ offInterruptionEnd() : void;
1804
2400
  }
1805
2401
 
1806
2402