@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.
- package/@types/AIStreamKit.d.ts +530 -10
- package/@types/BaseKit.d.ts +291 -233
- package/@types/BizKit.d.ts +499 -161
- package/@types/LightKit.d.ts +3 -3
- package/@types/MapKit.d.ts +24 -24
- package/@types/MiniKit.d.ts +117 -92
- package/@types/OutdoorKit.d.ts +61 -61
- package/@types/P2PKit.d.ts +25 -25
- package/@types/WearKit.d.ts +550 -26
- package/@types/api-extend.d.ts +1 -1
- package/lib/nativeRouters/device.d.ts +50 -15
- package/lib/nativeRouters/device.js +47 -15
- package/lib/nativeRouters/gw.d.ts +0 -3
- package/lib/nativeRouters/gw.js +0 -3
- package/lib/nativeRouters/outdoors.d.ts +12 -3
- package/lib/nativeRouters/outdoors.js +11 -3
- package/lib/nativeRouters/root.d.ts +33 -5
- package/lib/nativeRouters/root.js +32 -5
- package/package.json +5 -5
package/@types/OutdoorKit.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ declare namespace ty.outdoor {
|
|
|
8
8
|
* 一键连接设备(WiFi 热点连接 + SDK 初始化 + 心跳保活)
|
|
9
9
|
* @public
|
|
10
10
|
* @since OutdoorKit 7.8.0
|
|
11
|
-
* @example
|
|
11
|
+
* @example
|
|
12
12
|
* ```tsx
|
|
13
13
|
* ty.outdoor.connectDevice({
|
|
14
14
|
* ssid: "xx",
|
|
@@ -58,7 +58,7 @@ declare namespace ty.outdoor {
|
|
|
58
58
|
* 初始化 RideSafe SDK
|
|
59
59
|
* @public
|
|
60
60
|
* @since OutdoorKit 7.8.0
|
|
61
|
-
* @example
|
|
61
|
+
* @example
|
|
62
62
|
* ```tsx
|
|
63
63
|
* ty.outdoor.initSDK({
|
|
64
64
|
* keyPath: "xx",
|
|
@@ -108,7 +108,7 @@ declare namespace ty.outdoor {
|
|
|
108
108
|
* 销毁 RideSafe SDK
|
|
109
109
|
* @public
|
|
110
110
|
* @since OutdoorKit 7.8.0
|
|
111
|
-
* @example
|
|
111
|
+
* @example
|
|
112
112
|
* ```tsx
|
|
113
113
|
* ty.outdoor.destroySDK({
|
|
114
114
|
* success: data => {
|
|
@@ -146,7 +146,7 @@ declare namespace ty.outdoor {
|
|
|
146
146
|
* 获取摄像头信息
|
|
147
147
|
* @public
|
|
148
148
|
* @since OutdoorKit 7.8.0
|
|
149
|
-
* @example
|
|
149
|
+
* @example
|
|
150
150
|
* ```tsx
|
|
151
151
|
* ty.outdoor.getCameraInfo({
|
|
152
152
|
* success: data => {
|
|
@@ -250,7 +250,7 @@ declare namespace ty.outdoor {
|
|
|
250
250
|
* 配置相机 WiFi
|
|
251
251
|
* @public
|
|
252
252
|
* @since OutdoorKit 7.8.0
|
|
253
|
-
* @example
|
|
253
|
+
* @example
|
|
254
254
|
* ```tsx
|
|
255
255
|
* ty.outdoor.setWifi({
|
|
256
256
|
* ssid: "xx",
|
|
@@ -300,7 +300,7 @@ declare namespace ty.outdoor {
|
|
|
300
300
|
* 设置帧率(25 或 30)
|
|
301
301
|
* @public
|
|
302
302
|
* @since OutdoorKit 7.8.0
|
|
303
|
-
* @example
|
|
303
|
+
* @example
|
|
304
304
|
* ```tsx
|
|
305
305
|
* ty.outdoor.setFPS({
|
|
306
306
|
* fps: 30,
|
|
@@ -344,7 +344,7 @@ declare namespace ty.outdoor {
|
|
|
344
344
|
* 获取帧率
|
|
345
345
|
* @public
|
|
346
346
|
* @since OutdoorKit 7.8.0
|
|
347
|
-
* @example
|
|
347
|
+
* @example
|
|
348
348
|
* ```tsx
|
|
349
349
|
* ty.outdoor.getFPS({
|
|
350
350
|
* success: data => {
|
|
@@ -388,7 +388,7 @@ declare namespace ty.outdoor {
|
|
|
388
388
|
* 设置码率
|
|
389
389
|
* @public
|
|
390
390
|
* @since OutdoorKit 7.8.0
|
|
391
|
-
* @example
|
|
391
|
+
* @example
|
|
392
392
|
* ```tsx
|
|
393
393
|
* ty.outdoor.setBitRate({
|
|
394
394
|
* bitRate: 1,
|
|
@@ -432,7 +432,7 @@ declare namespace ty.outdoor {
|
|
|
432
432
|
* 获取码率
|
|
433
433
|
* @public
|
|
434
434
|
* @since OutdoorKit 7.8.0
|
|
435
|
-
* @example
|
|
435
|
+
* @example
|
|
436
436
|
* ```tsx
|
|
437
437
|
* ty.outdoor.getBitRate({
|
|
438
438
|
* success: data => {
|
|
@@ -476,7 +476,7 @@ declare namespace ty.outdoor {
|
|
|
476
476
|
* 设置录制间隔(60/120/180/300 秒)
|
|
477
477
|
* @public
|
|
478
478
|
* @since OutdoorKit 7.8.0
|
|
479
|
-
* @example
|
|
479
|
+
* @example
|
|
480
480
|
* ```tsx
|
|
481
481
|
* ty.outdoor.setRecordInterval({
|
|
482
482
|
* interval: 60,
|
|
@@ -520,7 +520,7 @@ declare namespace ty.outdoor {
|
|
|
520
520
|
* 获取录制间隔
|
|
521
521
|
* @public
|
|
522
522
|
* @since OutdoorKit 7.8.0
|
|
523
|
-
* @example
|
|
523
|
+
* @example
|
|
524
524
|
* ```tsx
|
|
525
525
|
* ty.outdoor.getRecordInterval({
|
|
526
526
|
* success: data => {
|
|
@@ -564,7 +564,7 @@ declare namespace ty.outdoor {
|
|
|
564
564
|
* 设置 AI 功能开关(0=关, 1=开)
|
|
565
565
|
* @public
|
|
566
566
|
* @since OutdoorKit 7.8.0
|
|
567
|
-
* @example
|
|
567
|
+
* @example
|
|
568
568
|
* ```tsx
|
|
569
569
|
* ty.outdoor.setAIEnabled({
|
|
570
570
|
* enabled: 1,
|
|
@@ -608,7 +608,7 @@ declare namespace ty.outdoor {
|
|
|
608
608
|
* 获取 AI 功能状态
|
|
609
609
|
* @public
|
|
610
610
|
* @since OutdoorKit 7.8.0
|
|
611
|
-
* @example
|
|
611
|
+
* @example
|
|
612
612
|
* ```tsx
|
|
613
613
|
* ty.outdoor.getAIStatus({
|
|
614
614
|
* success: data => {
|
|
@@ -652,7 +652,7 @@ declare namespace ty.outdoor {
|
|
|
652
652
|
* 检查固件版本
|
|
653
653
|
* @public
|
|
654
654
|
* @since OutdoorKit 7.8.0
|
|
655
|
-
* @example
|
|
655
|
+
* @example
|
|
656
656
|
* ```tsx
|
|
657
657
|
* ty.outdoor.checkFirmwareVersion({
|
|
658
658
|
* success: data => {
|
|
@@ -701,7 +701,7 @@ declare namespace ty.outdoor {
|
|
|
701
701
|
* 升级固件(设备会重启)
|
|
702
702
|
* @public
|
|
703
703
|
* @since OutdoorKit 7.8.0
|
|
704
|
-
* @example
|
|
704
|
+
* @example
|
|
705
705
|
* ```tsx
|
|
706
706
|
* ty.outdoor.upgradeFirmware({
|
|
707
707
|
* firmwarePath: "xx",
|
|
@@ -745,7 +745,7 @@ declare namespace ty.outdoor {
|
|
|
745
745
|
* 获取文件列表
|
|
746
746
|
* @public
|
|
747
747
|
* @since OutdoorKit 7.8.0
|
|
748
|
-
* @example
|
|
748
|
+
* @example
|
|
749
749
|
* ```tsx
|
|
750
750
|
* ty.outdoor.getFileList({
|
|
751
751
|
* path: "xx",
|
|
@@ -795,7 +795,7 @@ declare namespace ty.outdoor {
|
|
|
795
795
|
* 获取指定远端文件路径的下载/在线播放鉴权 HTTP Header(对应 RideSafe GetDownloadAuthHeader)
|
|
796
796
|
* @public
|
|
797
797
|
* @since OutdoorKit 7.8.0
|
|
798
|
-
* @example
|
|
798
|
+
* @example
|
|
799
799
|
* ```tsx
|
|
800
800
|
* ty.outdoor.getDownloadAuthHeader({
|
|
801
801
|
* path: "xx",
|
|
@@ -845,7 +845,7 @@ declare namespace ty.outdoor {
|
|
|
845
845
|
* 下载文件(异步,进度通过 downloadProgress Event 推送)
|
|
846
846
|
* @public
|
|
847
847
|
* @since OutdoorKit 7.8.0
|
|
848
|
-
* @example
|
|
848
|
+
* @example
|
|
849
849
|
* ```tsx
|
|
850
850
|
* ty.outdoor.downloadFile({
|
|
851
851
|
* remotePath: "xx",
|
|
@@ -917,7 +917,7 @@ declare namespace ty.outdoor {
|
|
|
917
917
|
* 批量删除文件
|
|
918
918
|
* @public
|
|
919
919
|
* @since OutdoorKit 7.8.0
|
|
920
|
-
* @example
|
|
920
|
+
* @example
|
|
921
921
|
* ```tsx
|
|
922
922
|
* ty.outdoor.deleteFiles({
|
|
923
923
|
* paths: [],
|
|
@@ -967,7 +967,7 @@ declare namespace ty.outdoor {
|
|
|
967
967
|
* 获取存储空间信息
|
|
968
968
|
* @public
|
|
969
969
|
* @since OutdoorKit 7.8.0
|
|
970
|
-
* @example
|
|
970
|
+
* @example
|
|
971
971
|
* ```tsx
|
|
972
972
|
* ty.outdoor.getFreeSpace({
|
|
973
973
|
* success: data => {
|
|
@@ -1021,7 +1021,7 @@ declare namespace ty.outdoor {
|
|
|
1021
1021
|
* 打开原生视频播放器播放指定视频(支持远端流播放和本地文件播放)
|
|
1022
1022
|
* @public
|
|
1023
1023
|
* @since OutdoorKit 7.8.0
|
|
1024
|
-
* @example
|
|
1024
|
+
* @example
|
|
1025
1025
|
* ```tsx
|
|
1026
1026
|
* ty.outdoor.playVideo({
|
|
1027
1027
|
* url: "xx",
|
|
@@ -1073,7 +1073,7 @@ declare namespace ty.outdoor {
|
|
|
1073
1073
|
* 格式化磁盘(不可逆,设备会重启)
|
|
1074
1074
|
* @public
|
|
1075
1075
|
* @since OutdoorKit 7.8.0
|
|
1076
|
-
* @example
|
|
1076
|
+
* @example
|
|
1077
1077
|
* ```tsx
|
|
1078
1078
|
* ty.outdoor.formatDisk({
|
|
1079
1079
|
* success: data => {
|
|
@@ -1111,7 +1111,7 @@ declare namespace ty.outdoor {
|
|
|
1111
1111
|
* 出行获取当前首页展示的设备ID
|
|
1112
1112
|
* @public
|
|
1113
1113
|
* @since OutdoorKit 1.0.0
|
|
1114
|
-
* @example
|
|
1114
|
+
* @example
|
|
1115
1115
|
* ```tsx
|
|
1116
1116
|
* ty.outdoor.currentDevice({
|
|
1117
1117
|
* success: data => {
|
|
@@ -1155,7 +1155,7 @@ declare namespace ty.outdoor {
|
|
|
1155
1155
|
* 切换设备,会弹出Native切换选择器
|
|
1156
1156
|
* @public
|
|
1157
1157
|
* @since OutdoorKit 1.0.4
|
|
1158
|
-
* @example
|
|
1158
|
+
* @example
|
|
1159
1159
|
* ```tsx
|
|
1160
1160
|
* ty.outdoor.switchDevice({
|
|
1161
1161
|
* success: data => {
|
|
@@ -1193,7 +1193,7 @@ declare namespace ty.outdoor {
|
|
|
1193
1193
|
* 获取出行设备列表(不含分享的设备)
|
|
1194
1194
|
* @public
|
|
1195
1195
|
* @since OutdoorKit 1.1.0
|
|
1196
|
-
* @example
|
|
1196
|
+
* @example
|
|
1197
1197
|
* ```tsx
|
|
1198
1198
|
* ty.outdoor.getDeviceList({
|
|
1199
1199
|
* success: data => {
|
|
@@ -1237,7 +1237,7 @@ declare namespace ty.outdoor {
|
|
|
1237
1237
|
* 获取分享的设备列表
|
|
1238
1238
|
* @public
|
|
1239
1239
|
* @since OutdoorKit 1.1.0
|
|
1240
|
-
* @example
|
|
1240
|
+
* @example
|
|
1241
1241
|
* ```tsx
|
|
1242
1242
|
* ty.outdoor.getSharedDeviceList({
|
|
1243
1243
|
* success: data => {
|
|
@@ -1281,7 +1281,7 @@ declare namespace ty.outdoor {
|
|
|
1281
1281
|
* 指定当前设备,传入需要切换为当前展示的设备信息
|
|
1282
1282
|
* @public
|
|
1283
1283
|
* @since OutdoorKit 1.1.0
|
|
1284
|
-
* @example
|
|
1284
|
+
* @example
|
|
1285
1285
|
* ```tsx
|
|
1286
1286
|
* ty.outdoor.specifyDevice({
|
|
1287
1287
|
* deviceID: "xx",
|
|
@@ -1325,7 +1325,7 @@ declare namespace ty.outdoor {
|
|
|
1325
1325
|
* 获取已绑定设备ID集合
|
|
1326
1326
|
* @public
|
|
1327
1327
|
* @since OutdoorKit 1.0.1
|
|
1328
|
-
* @example
|
|
1328
|
+
* @example
|
|
1329
1329
|
* ```tsx
|
|
1330
1330
|
* ty.outdoor.getBoundDeviceIdList({
|
|
1331
1331
|
* success: data => {
|
|
@@ -1369,7 +1369,7 @@ declare namespace ty.outdoor {
|
|
|
1369
1369
|
* 获取可绑定设备ID集合
|
|
1370
1370
|
* @public
|
|
1371
1371
|
* @since OutdoorKit 1.0.1
|
|
1372
|
-
* @example
|
|
1372
|
+
* @example
|
|
1373
1373
|
* ```tsx
|
|
1374
1374
|
* ty.outdoor.getUnbindDeviceIdList({
|
|
1375
1375
|
* success: data => {
|
|
@@ -1413,7 +1413,7 @@ declare namespace ty.outdoor {
|
|
|
1413
1413
|
* 绑定从设备到指定主设备
|
|
1414
1414
|
* @public
|
|
1415
1415
|
* @since OutdoorKit 1.0.1
|
|
1416
|
-
* @example
|
|
1416
|
+
* @example
|
|
1417
1417
|
* ```tsx
|
|
1418
1418
|
* ty.outdoor.bindSlaveDevice({
|
|
1419
1419
|
* slaveDevId: "xx",
|
|
@@ -1463,7 +1463,7 @@ declare namespace ty.outdoor {
|
|
|
1463
1463
|
* 从设备移除
|
|
1464
1464
|
* @public
|
|
1465
1465
|
* @since OutdoorKit 1.0.1
|
|
1466
|
-
* @example
|
|
1466
|
+
* @example
|
|
1467
1467
|
* ```tsx
|
|
1468
1468
|
* ty.outdoor.unbindDevice({
|
|
1469
1469
|
* devId: "xx",
|
|
@@ -1507,7 +1507,7 @@ declare namespace ty.outdoor {
|
|
|
1507
1507
|
* 小程序表盘设置,配置表盘左/中/右三个区域展示的数据 tag
|
|
1508
1508
|
* @public
|
|
1509
1509
|
* @since OutdoorKit 1.0.1
|
|
1510
|
-
* @example
|
|
1510
|
+
* @example
|
|
1511
1511
|
* ```tsx
|
|
1512
1512
|
* ty.outdoor.saveDialViewTag({
|
|
1513
1513
|
* leftViewTag: "xx",
|
|
@@ -1563,7 +1563,7 @@ declare namespace ty.outdoor {
|
|
|
1563
1563
|
* 保存骑行语音播报数据
|
|
1564
1564
|
* @public
|
|
1565
1565
|
* @since OutdoorKit 1.0.1
|
|
1566
|
-
* @example
|
|
1566
|
+
* @example
|
|
1567
1567
|
* ```tsx
|
|
1568
1568
|
* ty.outdoor.saveTTSData({
|
|
1569
1569
|
* ttsMainSwitch: false,
|
|
@@ -1643,7 +1643,7 @@ declare namespace ty.outdoor {
|
|
|
1643
1643
|
* 获取骑行播报数据
|
|
1644
1644
|
* @public
|
|
1645
1645
|
* @since OutdoorKit 1.0.1
|
|
1646
|
-
* @example
|
|
1646
|
+
* @example
|
|
1647
1647
|
* ```tsx
|
|
1648
1648
|
* ty.outdoor.getTTSData({
|
|
1649
1649
|
* success: data => {
|
|
@@ -1717,7 +1717,7 @@ declare namespace ty.outdoor {
|
|
|
1717
1717
|
* 是否有通话权限
|
|
1718
1718
|
* @public
|
|
1719
1719
|
* @since OutdoorKit 1.0.1
|
|
1720
|
-
* @example
|
|
1720
|
+
* @example
|
|
1721
1721
|
* ```tsx
|
|
1722
1722
|
* ty.outdoor.isCallPhoneGranted({
|
|
1723
1723
|
* success: data => {
|
|
@@ -1755,7 +1755,7 @@ declare namespace ty.outdoor {
|
|
|
1755
1755
|
* 申请通话权限
|
|
1756
1756
|
* @public
|
|
1757
1757
|
* @since OutdoorKit 1.0.1
|
|
1758
|
-
* @example
|
|
1758
|
+
* @example
|
|
1759
1759
|
* ```tsx
|
|
1760
1760
|
* ty.outdoor.requestCallPhonePermission({
|
|
1761
1761
|
* success: data => {
|
|
@@ -1793,7 +1793,7 @@ declare namespace ty.outdoor {
|
|
|
1793
1793
|
* 判断是否为 BLE+X 设备
|
|
1794
1794
|
* @public
|
|
1795
1795
|
* @since OutdoorKit 1.1.0
|
|
1796
|
-
* @example
|
|
1796
|
+
* @example
|
|
1797
1797
|
* ```tsx
|
|
1798
1798
|
* ty.outdoor.isBLEXDevice({
|
|
1799
1799
|
* deviceID: "xx",
|
|
@@ -1837,7 +1837,7 @@ declare namespace ty.outdoor {
|
|
|
1837
1837
|
* 判断 BLE+X 设备是否已激活,前置条件:该设备为 BLE+X 设备
|
|
1838
1838
|
* @public
|
|
1839
1839
|
* @since OutdoorKit 1.1.0
|
|
1840
|
-
* @example
|
|
1840
|
+
* @example
|
|
1841
1841
|
* ```tsx
|
|
1842
1842
|
* ty.outdoor.isBLEXDeviceActived({
|
|
1843
1843
|
* deviceID: "xx",
|
|
@@ -1881,7 +1881,7 @@ declare namespace ty.outdoor {
|
|
|
1881
1881
|
* 获取扩展模组关联事件配置
|
|
1882
1882
|
* @public
|
|
1883
1883
|
* @since OutdoorKit 1.1.0
|
|
1884
|
-
* @example
|
|
1884
|
+
* @example
|
|
1885
1885
|
* ```tsx
|
|
1886
1886
|
* ty.outdoor.getExtendedModuleExtConfig({
|
|
1887
1887
|
* deviceID: "xx",
|
|
@@ -1941,7 +1941,7 @@ declare namespace ty.outdoor {
|
|
|
1941
1941
|
* 获取设备增值服务能力,返回以字典形式透传的能力数据
|
|
1942
1942
|
* @public
|
|
1943
1943
|
* @since OutdoorKit 1.1.0
|
|
1944
|
-
* @example
|
|
1944
|
+
* @example
|
|
1945
1945
|
* ```tsx
|
|
1946
1946
|
* ty.outdoor.getValueAddedServicesAbility({
|
|
1947
1947
|
* deviceID: "xx",
|
|
@@ -1991,7 +1991,7 @@ declare namespace ty.outdoor {
|
|
|
1991
1991
|
* 设置增值服务弹窗状态,记录指定设备是否已弹窗过
|
|
1992
1992
|
* @public
|
|
1993
1993
|
* @since OutdoorKit 1.1.0
|
|
1994
|
-
* @example
|
|
1994
|
+
* @example
|
|
1995
1995
|
* ```tsx
|
|
1996
1996
|
* ty.outdoor.setValueAddedServicesPop({
|
|
1997
1997
|
* deviceID: "xx",
|
|
@@ -2041,7 +2041,7 @@ declare namespace ty.outdoor {
|
|
|
2041
2041
|
* 获取感应解锁类型
|
|
2042
2042
|
* @public
|
|
2043
2043
|
* @since OutdoorKit 1.1.0
|
|
2044
|
-
* @example
|
|
2044
|
+
* @example
|
|
2045
2045
|
* ```tsx
|
|
2046
2046
|
* ty.outdoor.getInductiveUnlockType({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2047
2047
|
* ```
|
|
@@ -2083,7 +2083,7 @@ declare namespace ty.outdoor {
|
|
|
2083
2083
|
* 获取 HID 感应解锁开关状态
|
|
2084
2084
|
* @public
|
|
2085
2085
|
* @since OutdoorKit 1.1.0
|
|
2086
|
-
* @example
|
|
2086
|
+
* @example
|
|
2087
2087
|
* ```tsx
|
|
2088
2088
|
* ty.outdoor.getHIDInductiveUnlockStatus({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2089
2089
|
* ```
|
|
@@ -2119,7 +2119,7 @@ declare namespace ty.outdoor {
|
|
|
2119
2119
|
* 获取 HID 感应解锁绑定状态
|
|
2120
2120
|
* @public
|
|
2121
2121
|
* @since OutdoorKit 1.1.0
|
|
2122
|
-
* @example
|
|
2122
|
+
* @example
|
|
2123
2123
|
* ```tsx
|
|
2124
2124
|
* ty.outdoor.getHIDInductiveUnlockBindStatus({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2125
2125
|
* ```
|
|
@@ -2155,7 +2155,7 @@ declare namespace ty.outdoor {
|
|
|
2155
2155
|
* 开启 HID 感应解锁
|
|
2156
2156
|
* @public
|
|
2157
2157
|
* @since OutdoorKit 1.1.0
|
|
2158
|
-
* @example
|
|
2158
|
+
* @example
|
|
2159
2159
|
* ```tsx
|
|
2160
2160
|
* ty.outdoor.turnOnHIDInductiveUnlock({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2161
2161
|
* ```
|
|
@@ -2191,7 +2191,7 @@ declare namespace ty.outdoor {
|
|
|
2191
2191
|
* 关闭 HID 感应解锁
|
|
2192
2192
|
* @public
|
|
2193
2193
|
* @since OutdoorKit 1.1.0
|
|
2194
|
-
* @example
|
|
2194
|
+
* @example
|
|
2195
2195
|
* ```tsx
|
|
2196
2196
|
* ty.outdoor.turnOffHIDInductiveUnlock({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2197
2197
|
* ```
|
|
@@ -2227,7 +2227,7 @@ declare namespace ty.outdoor {
|
|
|
2227
2227
|
* 记录 HID 感应解锁的设防距离(在当前位置标定设防距离)
|
|
2228
2228
|
* @public
|
|
2229
2229
|
* @since OutdoorKit 1.1.0
|
|
2230
|
-
* @example
|
|
2230
|
+
* @example
|
|
2231
2231
|
* ```tsx
|
|
2232
2232
|
* ty.outdoor.recordHIDInductiveUnlockFortifyDistance({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2233
2233
|
* ```
|
|
@@ -2263,7 +2263,7 @@ declare namespace ty.outdoor {
|
|
|
2263
2263
|
* 记录 HID 感应解锁的解防距离(在当前位置标定解防距离)
|
|
2264
2264
|
* @public
|
|
2265
2265
|
* @since OutdoorKit 1.1.0
|
|
2266
|
-
* @example
|
|
2266
|
+
* @example
|
|
2267
2267
|
* ```tsx
|
|
2268
2268
|
* ty.outdoor.recordHIDInductiveUnlockDisarmDistance({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2269
2269
|
* ```
|
|
@@ -2299,7 +2299,7 @@ declare namespace ty.outdoor {
|
|
|
2299
2299
|
* 获取 BT 感应解锁配对状态
|
|
2300
2300
|
* @public
|
|
2301
2301
|
* @since OutdoorKit 1.1.0
|
|
2302
|
-
* @example
|
|
2302
|
+
* @example
|
|
2303
2303
|
* ```tsx
|
|
2304
2304
|
* ty.outdoor.getBTInductiveUnlockPairedStatus({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2305
2305
|
* ```
|
|
@@ -2335,7 +2335,7 @@ declare namespace ty.outdoor {
|
|
|
2335
2335
|
* 开启 BT 感应解锁
|
|
2336
2336
|
* @public
|
|
2337
2337
|
* @since OutdoorKit 1.1.0
|
|
2338
|
-
* @example
|
|
2338
|
+
* @example
|
|
2339
2339
|
* ```tsx
|
|
2340
2340
|
* ty.outdoor.turnOnBTInductiveUnlock({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2341
2341
|
* ```
|
|
@@ -2371,7 +2371,7 @@ declare namespace ty.outdoor {
|
|
|
2371
2371
|
* 关闭 BT 感应解锁
|
|
2372
2372
|
* @public
|
|
2373
2373
|
* @since OutdoorKit 1.1.0
|
|
2374
|
-
* @example
|
|
2374
|
+
* @example
|
|
2375
2375
|
* ```tsx
|
|
2376
2376
|
* ty.outdoor.turnOffBTInductiveUnlock({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2377
2377
|
* ```
|
|
@@ -2407,7 +2407,7 @@ declare namespace ty.outdoor {
|
|
|
2407
2407
|
* 设置 BT 感应解锁距离档位(可选值 1、2、3)
|
|
2408
2408
|
* @public
|
|
2409
2409
|
* @since OutdoorKit 1.1.0
|
|
2410
|
-
* @example
|
|
2410
|
+
* @example
|
|
2411
2411
|
* ```tsx
|
|
2412
2412
|
* ty.outdoor.setBTInductiveUnlockDistance({ deviceID: "xx", distance: 1, success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2413
2413
|
* ```
|
|
@@ -2448,7 +2448,7 @@ declare namespace ty.outdoor {
|
|
|
2448
2448
|
* 获取 BT 感应解锁距离档位
|
|
2449
2449
|
* @public
|
|
2450
2450
|
* @since OutdoorKit 1.1.0
|
|
2451
|
-
* @example
|
|
2451
|
+
* @example
|
|
2452
2452
|
* ```tsx
|
|
2453
2453
|
* ty.outdoor.getBTInductiveUnlockDistance({ deviceID: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2454
2454
|
* ```
|
|
@@ -2495,7 +2495,7 @@ declare namespace ty.outdoor {
|
|
|
2495
2495
|
* 设备绑定
|
|
2496
2496
|
* @public
|
|
2497
2497
|
* @since OutdoorKit 1.1.0
|
|
2498
|
-
* @example
|
|
2498
|
+
* @example
|
|
2499
2499
|
* ```tsx
|
|
2500
2500
|
* ty.outdoor.createBond({ deviceMac: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2501
2501
|
* ```
|
|
@@ -2531,7 +2531,7 @@ declare namespace ty.outdoor {
|
|
|
2531
2531
|
* 移除绑定
|
|
2532
2532
|
* @public
|
|
2533
2533
|
* @since OutdoorKit 1.1.0
|
|
2534
|
-
* @example
|
|
2534
|
+
* @example
|
|
2535
2535
|
* ```tsx
|
|
2536
2536
|
* ty.outdoor.removeBond({ deviceMac: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2537
2537
|
* ```
|
|
@@ -2567,7 +2567,7 @@ declare namespace ty.outdoor {
|
|
|
2567
2567
|
* 是否已绑定
|
|
2568
2568
|
* @public
|
|
2569
2569
|
* @since OutdoorKit 1.1.0
|
|
2570
|
-
* @example
|
|
2570
|
+
* @example
|
|
2571
2571
|
* ```tsx
|
|
2572
2572
|
* ty.outdoor.isBond({ deviceMac: "xx", success: data => { console.log(data); }, fail: error => { console.error(error); } });
|
|
2573
2573
|
* ```
|
|
@@ -2603,7 +2603,7 @@ declare namespace ty.outdoor {
|
|
|
2603
2603
|
* 注册文件下载进度监听(事件体 DownloadProgressEvent,通过 downloadProgress 事件推送)
|
|
2604
2604
|
* @public
|
|
2605
2605
|
* @since OutdoorKit 7.8.0
|
|
2606
|
-
* @example
|
|
2606
|
+
* @example
|
|
2607
2607
|
* ```tsx
|
|
2608
2608
|
* ty.outdoor.downloadProgress(e => {
|
|
2609
2609
|
* console.log(e);
|
|
@@ -2635,7 +2635,7 @@ declare namespace ty.outdoor {
|
|
|
2635
2635
|
* 注册当前首页展示设备变化监听,设备切换时回调最新设备信息
|
|
2636
2636
|
* @public
|
|
2637
2637
|
* @since OutdoorKit 1.1.8
|
|
2638
|
-
* @example
|
|
2638
|
+
* @example
|
|
2639
2639
|
* ```tsx
|
|
2640
2640
|
* ty.outdoor.currentDeviceChange(e => {
|
|
2641
2641
|
* console.log(e);
|
|
@@ -2657,7 +2657,7 @@ declare namespace ty.outdoor {
|
|
|
2657
2657
|
* 取消当前首页展示设备变化监听
|
|
2658
2658
|
* @public
|
|
2659
2659
|
* @since OutdoorKit 1.1.8
|
|
2660
|
-
* @example
|
|
2660
|
+
* @example
|
|
2661
2661
|
* ```tsx
|
|
2662
2662
|
* ty.outdoor.offRegisterCurrentDeviceChange({
|
|
2663
2663
|
* success: data => {
|
|
@@ -2684,7 +2684,7 @@ declare namespace ty.outdoor {
|
|
|
2684
2684
|
* 注册扩展模组插拔状态监听,模组插入或拔出时回调
|
|
2685
2685
|
* @public
|
|
2686
2686
|
* @since OutdoorKit 1.1.6
|
|
2687
|
-
* @example
|
|
2687
|
+
* @example
|
|
2688
2688
|
* ```tsx
|
|
2689
2689
|
* ty.outdoor.extModuleStatusChange(e => {
|
|
2690
2690
|
* console.log(e);
|
|
@@ -2711,7 +2711,7 @@ declare namespace ty.outdoor {
|
|
|
2711
2711
|
* 取消扩展模组插拔状态监听
|
|
2712
2712
|
* @public
|
|
2713
2713
|
* @since OutdoorKit 1.1.6
|
|
2714
|
-
* @example
|
|
2714
|
+
* @example
|
|
2715
2715
|
* ```tsx
|
|
2716
2716
|
* ty.outdoor.offRegisterExtModuleStatus({
|
|
2717
2717
|
* success: data => {
|