@ray-js/api 1.7.79 → 1.7.81
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/AIKit.d.ts +1140 -1009
- package/@types/AVideoKit.d.ts +26 -101
- package/@types/BaseKit.d.ts +234 -210
- package/@types/BizKit.d.ts +271 -296
- package/@types/DeviceKit.d.ts +57 -88
- package/@types/GroupCITestKit.d.ts +1 -3
- package/@types/HealthKit.d.ts +273 -230
- package/@types/HomeKit.d.ts +1062 -891
- package/@types/IPCKit.d.ts +23 -50
- package/@types/LightKit.d.ts +2 -2
- package/@types/MapKit.d.ts +592 -381
- package/@types/MediaPlayerKit.d.ts +4 -28
- package/@types/MiniKit.d.ts +198 -375
- package/@types/P2PKit.d.ts +139 -205
- package/@types/PayKit.d.ts +10 -79
- package/@types/SweeperKit.d.ts +10 -10
- package/@types/ThirdAuthKit.d.ts +28 -252
- package/@types/WearKit.d.ts +630 -1593
- package/@types/api-extend.d.ts +0 -63
- package/lib/AIKit-1.6.0.d.ts +732 -35
- package/lib/AIKit-1.6.0.js +732 -51
- package/lib/BaseKit-3.17.7.d.ts +0 -214
- package/lib/BaseKit-3.17.7.js +1 -227
- package/lib/DeviceKit-4.13.1.d.ts +3666 -0
- package/lib/DeviceKit-4.13.1.js +3666 -0
- package/lib/HealthKit-6.5.0.d.ts +603 -0
- package/lib/HealthKit-6.5.0.js +603 -0
- package/lib/HomeKit-3.1.4.d.ts +4 -0
- package/lib/HomeKit-3.1.4.js +4 -0
- package/lib/IPCKit-6.4.5.d.ts +0 -1
- package/lib/IPCKit-6.4.5.js +0 -1
- package/lib/MapKit-3.4.13.d.ts +251 -0
- package/lib/MapKit-3.4.13.js +251 -0
- package/lib/MediaKit-3.4.1.d.ts +16 -0
- package/lib/MediaKit-3.4.1.js +16 -0
- package/lib/PlayNetKit-1.3.30.d.ts +930 -0
- package/lib/PlayNetKit-1.3.30.js +930 -0
- package/lib/cloud/alarm.d.ts +38 -5
- package/lib/cloud/alarm.js +38 -5
- package/lib/cloud/device.d.ts +42 -6
- package/lib/cloud/device.js +42 -6
- package/lib/cloud/gateway.d.ts +16 -0
- package/lib/cloud/gateway.js +16 -0
- package/lib/cloud/health.d.ts +1 -0
- package/lib/cloud/health.js +272 -0
- package/lib/cloud/interface.d.ts +161 -0
- package/lib/cloud/interface.js +18 -0
- package/lib/cloud/statistic.d.ts +112 -26
- package/lib/cloud/statistic.js +112 -26
- package/lib/cloud/timer.d.ts +2 -4
- package/lib/nativeRouters/outdoors.d.ts +2 -0
- package/lib/nativeRouters/outdoors.js +2 -0
- package/lib/nativeRouters/remoteGroup.d.ts +2 -0
- package/lib/nativeRouters/remoteGroup.js +2 -0
- package/lib/panel/publishDps.js +1 -1
- package/package.json +5 -5
- package/LICENSE.md +0 -9
package/@types/HealthKit.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* HealthKit
|
|
3
3
|
*
|
|
4
|
-
* @version 7.2.
|
|
4
|
+
* @version 7.2.2
|
|
5
5
|
*/
|
|
6
6
|
declare namespace ty.health {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* health connect sdk状态获取[Android only]
|
|
9
9
|
* @public
|
|
10
10
|
* @since HealthKit 5.18.0
|
|
11
11
|
* @platform Android
|
|
@@ -32,7 +32,7 @@ declare namespace ty.health {
|
|
|
32
32
|
}): void
|
|
33
33
|
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* health connect sdk状态获取[Android only]
|
|
36
36
|
* @public
|
|
37
37
|
* @since HealthKit 5.18.0
|
|
38
38
|
* @platform Android
|
|
@@ -40,7 +40,12 @@ declare namespace ty.health {
|
|
|
40
40
|
export function getHealthConnectStatusSync(): number
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* 检测
|
|
43
|
+
* 检测health connect读取权限[Android only]
|
|
44
|
+
* -2 服务不可用(需要提示用户去更改自启动和电源管理),建议面板收到-2直接跳转到授权页。授权页做弹窗提示
|
|
45
|
+
* -1 Health Connect不支持
|
|
46
|
+
* 0 已授权
|
|
47
|
+
* 1 未安装 Health Connect
|
|
48
|
+
* 2 未授权
|
|
44
49
|
* @public
|
|
45
50
|
* @since HealthKit 7.1.5
|
|
46
51
|
* @platform Android
|
|
@@ -67,7 +72,12 @@ declare namespace ty.health {
|
|
|
67
72
|
}): void
|
|
68
73
|
|
|
69
74
|
/**
|
|
70
|
-
* 检测
|
|
75
|
+
* 检测health connect读取权限[Android only]
|
|
76
|
+
* -2 服务不可用(需要提示用户去更改自启动和电源管理),建议面板收到-2直接跳转到授权页。授权页做弹窗提示
|
|
77
|
+
* -1 Health Connect不支持
|
|
78
|
+
* 0 已授权
|
|
79
|
+
* 1 未安装 Health Connect
|
|
80
|
+
* 2 未授权
|
|
71
81
|
* @public
|
|
72
82
|
* @since HealthKit 7.1.5
|
|
73
83
|
* @platform Android
|
|
@@ -75,7 +85,7 @@ declare namespace ty.health {
|
|
|
75
85
|
export function checkHealthConnectReadStatusSync(): number
|
|
76
86
|
|
|
77
87
|
/**
|
|
78
|
-
*
|
|
88
|
+
* 数据同步到health connect [Android only]
|
|
79
89
|
* @public
|
|
80
90
|
* @since HealthKit 5.18.0
|
|
81
91
|
* @platform Android
|
|
@@ -112,7 +122,7 @@ declare namespace ty.health {
|
|
|
112
122
|
}): void
|
|
113
123
|
|
|
114
124
|
/**
|
|
115
|
-
*
|
|
125
|
+
* 数据同步到health connect [Android only]
|
|
116
126
|
* @public
|
|
117
127
|
* @since HealthKit 5.18.0
|
|
118
128
|
* @platform Android
|
|
@@ -125,7 +135,7 @@ declare namespace ty.health {
|
|
|
125
135
|
export function insertRecordsSync(request?: RecordParams): boolean
|
|
126
136
|
|
|
127
137
|
/**
|
|
128
|
-
*
|
|
138
|
+
* 读取health connect数据 [Android And iOS]
|
|
129
139
|
* @public
|
|
130
140
|
* @since HealthKit 7.1.5
|
|
131
141
|
* @platform Android
|
|
@@ -183,7 +193,7 @@ declare namespace ty.health {
|
|
|
183
193
|
}): void
|
|
184
194
|
|
|
185
195
|
/**
|
|
186
|
-
*
|
|
196
|
+
* 读取health connect数据 [Android And iOS]
|
|
187
197
|
* @public
|
|
188
198
|
* @since HealthKit 7.1.5
|
|
189
199
|
* @platform Android
|
|
@@ -202,7 +212,8 @@ declare namespace ty.health {
|
|
|
202
212
|
}
|
|
203
213
|
|
|
204
214
|
/**
|
|
205
|
-
*
|
|
215
|
+
* 用户是否已经做过授权操作(针对Quantity类型数据)[iOS only]
|
|
216
|
+
* 需要参数为readPermissions,writePermissions
|
|
206
217
|
* @public
|
|
207
218
|
* @since HealthKit 5.18.3
|
|
208
219
|
* @platform iOS
|
|
@@ -233,7 +244,7 @@ declare namespace ty.health {
|
|
|
233
244
|
*/
|
|
234
245
|
writePermission?: number
|
|
235
246
|
/**
|
|
236
|
-
*
|
|
247
|
+
* 写入值
|
|
237
248
|
* @since HealthKit 5.18.3
|
|
238
249
|
*/
|
|
239
250
|
value?: number
|
|
@@ -263,7 +274,8 @@ declare namespace ty.health {
|
|
|
263
274
|
/** 接口调用成功的回调函数 */
|
|
264
275
|
success?: (params: {
|
|
265
276
|
/**
|
|
266
|
-
*
|
|
277
|
+
* 1 代表传入的类型都申请过对应的读写权限
|
|
278
|
+
* 0 代表传入的类型至少有一个没有请求过对应的读写权限
|
|
267
279
|
* @since HealthKit 5.18.4
|
|
268
280
|
*/
|
|
269
281
|
value: number
|
|
@@ -285,7 +297,8 @@ declare namespace ty.health {
|
|
|
285
297
|
}): void
|
|
286
298
|
|
|
287
299
|
/**
|
|
288
|
-
*
|
|
300
|
+
* 用户是否已经做过授权操作(针对Quantity类型数据)[iOS only]
|
|
301
|
+
* 需要参数为readPermissions,writePermissions
|
|
289
302
|
* @public
|
|
290
303
|
* @since HealthKit 5.18.3
|
|
291
304
|
* @platform iOS
|
|
@@ -293,14 +306,16 @@ declare namespace ty.health {
|
|
|
293
306
|
*/
|
|
294
307
|
export function authStatusPermissionsSync(paramModel?: ParamModel): {
|
|
295
308
|
/**
|
|
296
|
-
*
|
|
309
|
+
* 1 代表传入的类型都申请过对应的读写权限
|
|
310
|
+
* 0 代表传入的类型至少有一个没有请求过对应的读写权限
|
|
297
311
|
* @since HealthKit 5.18.4
|
|
298
312
|
*/
|
|
299
313
|
value: number
|
|
300
314
|
}
|
|
301
315
|
|
|
302
316
|
/**
|
|
303
|
-
*
|
|
317
|
+
* 用户是否有Quantity类型数据写入权限[iOS only]
|
|
318
|
+
* 需要参数为writePermission
|
|
304
319
|
* @public
|
|
305
320
|
* @since HealthKit 5.18.3
|
|
306
321
|
* @platform iOS
|
|
@@ -331,7 +346,7 @@ declare namespace ty.health {
|
|
|
331
346
|
*/
|
|
332
347
|
writePermission?: number
|
|
333
348
|
/**
|
|
334
|
-
*
|
|
349
|
+
* 写入值
|
|
335
350
|
* @since HealthKit 5.18.3
|
|
336
351
|
*/
|
|
337
352
|
value?: number
|
|
@@ -361,7 +376,8 @@ declare namespace ty.health {
|
|
|
361
376
|
/** 接口调用成功的回调函数 */
|
|
362
377
|
success?: (params: {
|
|
363
378
|
/**
|
|
364
|
-
*
|
|
379
|
+
* 1 有写入权限
|
|
380
|
+
* 0 无写入权限
|
|
365
381
|
* @since HealthKit 5.18.4
|
|
366
382
|
*/
|
|
367
383
|
value: number
|
|
@@ -383,7 +399,8 @@ declare namespace ty.health {
|
|
|
383
399
|
}): void
|
|
384
400
|
|
|
385
401
|
/**
|
|
386
|
-
*
|
|
402
|
+
* 用户是否有Quantity类型数据写入权限[iOS only]
|
|
403
|
+
* 需要参数为writePermission
|
|
387
404
|
* @public
|
|
388
405
|
* @since HealthKit 5.18.3
|
|
389
406
|
* @platform iOS
|
|
@@ -391,14 +408,16 @@ declare namespace ty.health {
|
|
|
391
408
|
*/
|
|
392
409
|
export function getSaveQuantityPermissionSync(paramModel?: ParamModel): {
|
|
393
410
|
/**
|
|
394
|
-
*
|
|
411
|
+
* 1 有写入权限
|
|
412
|
+
* 0 无写入权限
|
|
395
413
|
* @since HealthKit 5.18.4
|
|
396
414
|
*/
|
|
397
415
|
value: number
|
|
398
416
|
}
|
|
399
417
|
|
|
400
418
|
/**
|
|
401
|
-
*
|
|
419
|
+
* Quantity写入权限申请接口[iOS only]
|
|
420
|
+
* 需要参数为permissions
|
|
402
421
|
* @public
|
|
403
422
|
* @since HealthKit 5.18.3
|
|
404
423
|
* @platform iOS
|
|
@@ -429,7 +448,7 @@ declare namespace ty.health {
|
|
|
429
448
|
*/
|
|
430
449
|
writePermission?: number
|
|
431
450
|
/**
|
|
432
|
-
*
|
|
451
|
+
* 写入值
|
|
433
452
|
* @since HealthKit 5.18.3
|
|
434
453
|
*/
|
|
435
454
|
value?: number
|
|
@@ -475,7 +494,8 @@ declare namespace ty.health {
|
|
|
475
494
|
}): void
|
|
476
495
|
|
|
477
496
|
/**
|
|
478
|
-
*
|
|
497
|
+
* Quantity写入权限申请接口[iOS only]
|
|
498
|
+
* 需要参数为permissions
|
|
479
499
|
* @public
|
|
480
500
|
* @since HealthKit 5.18.3
|
|
481
501
|
* @platform iOS
|
|
@@ -486,7 +506,8 @@ declare namespace ty.health {
|
|
|
486
506
|
): null
|
|
487
507
|
|
|
488
508
|
/**
|
|
489
|
-
*
|
|
509
|
+
* Category写入权限申请接口[iOS only]
|
|
510
|
+
* 需要参数为permissions
|
|
490
511
|
* @public
|
|
491
512
|
* @since HealthKit 5.18.0
|
|
492
513
|
* @platform iOS
|
|
@@ -517,7 +538,7 @@ declare namespace ty.health {
|
|
|
517
538
|
*/
|
|
518
539
|
writePermission?: number
|
|
519
540
|
/**
|
|
520
|
-
*
|
|
541
|
+
* 写入值
|
|
521
542
|
* @since HealthKit 5.18.3
|
|
522
543
|
*/
|
|
523
544
|
value?: number
|
|
@@ -563,7 +584,8 @@ declare namespace ty.health {
|
|
|
563
584
|
}): void
|
|
564
585
|
|
|
565
586
|
/**
|
|
566
|
-
*
|
|
587
|
+
* Category写入权限申请接口[iOS only]
|
|
588
|
+
* 需要参数为permissions
|
|
567
589
|
* @public
|
|
568
590
|
* @since HealthKit 5.18.0
|
|
569
591
|
* @platform iOS
|
|
@@ -574,7 +596,8 @@ declare namespace ty.health {
|
|
|
574
596
|
): null
|
|
575
597
|
|
|
576
598
|
/**
|
|
577
|
-
*
|
|
599
|
+
* Quantity读取权限申请[iOS only]
|
|
600
|
+
* 需要参数为permissions
|
|
578
601
|
* @public
|
|
579
602
|
* @since HealthKit 5.18.3
|
|
580
603
|
* @platform iOS
|
|
@@ -605,7 +628,7 @@ declare namespace ty.health {
|
|
|
605
628
|
*/
|
|
606
629
|
writePermission?: number
|
|
607
630
|
/**
|
|
608
|
-
*
|
|
631
|
+
* 写入值
|
|
609
632
|
* @since HealthKit 5.18.3
|
|
610
633
|
*/
|
|
611
634
|
value?: number
|
|
@@ -651,7 +674,8 @@ declare namespace ty.health {
|
|
|
651
674
|
}): void
|
|
652
675
|
|
|
653
676
|
/**
|
|
654
|
-
*
|
|
677
|
+
* Quantity读取权限申请[iOS only]
|
|
678
|
+
* 需要参数为permissions
|
|
655
679
|
* @public
|
|
656
680
|
* @since HealthKit 5.18.3
|
|
657
681
|
* @platform iOS
|
|
@@ -660,7 +684,8 @@ declare namespace ty.health {
|
|
|
660
684
|
export function authQuantityReadPermissionsSync(paramModel?: ParamModel): null
|
|
661
685
|
|
|
662
686
|
/**
|
|
663
|
-
*
|
|
687
|
+
* Category 读取权限申请[iOS only]
|
|
688
|
+
* 需要参数为permissions
|
|
664
689
|
* @public
|
|
665
690
|
* @since HealthKit 5.18.0
|
|
666
691
|
* @platform iOS
|
|
@@ -691,7 +716,7 @@ declare namespace ty.health {
|
|
|
691
716
|
*/
|
|
692
717
|
writePermission?: number
|
|
693
718
|
/**
|
|
694
|
-
*
|
|
719
|
+
* 写入值
|
|
695
720
|
* @since HealthKit 5.18.3
|
|
696
721
|
*/
|
|
697
722
|
value?: number
|
|
@@ -737,7 +762,8 @@ declare namespace ty.health {
|
|
|
737
762
|
}): void
|
|
738
763
|
|
|
739
764
|
/**
|
|
740
|
-
*
|
|
765
|
+
* Category 读取权限申请[iOS only]
|
|
766
|
+
* 需要参数为permissions
|
|
741
767
|
* @public
|
|
742
768
|
* @since HealthKit 5.18.0
|
|
743
769
|
* @platform iOS
|
|
@@ -746,7 +772,8 @@ declare namespace ty.health {
|
|
|
746
772
|
export function authCategoryReadPermissionsSync(paramModel?: ParamModel): null
|
|
747
773
|
|
|
748
774
|
/**
|
|
749
|
-
*
|
|
775
|
+
* Characteristic 读取权限申请[iOS only]
|
|
776
|
+
* 需要参数为permissions
|
|
750
777
|
* @public
|
|
751
778
|
* @since HealthKit 5.18.0
|
|
752
779
|
* @platform iOS
|
|
@@ -777,7 +804,7 @@ declare namespace ty.health {
|
|
|
777
804
|
*/
|
|
778
805
|
writePermission?: number
|
|
779
806
|
/**
|
|
780
|
-
*
|
|
807
|
+
* 写入值
|
|
781
808
|
* @since HealthKit 5.18.3
|
|
782
809
|
*/
|
|
783
810
|
value?: number
|
|
@@ -823,7 +850,8 @@ declare namespace ty.health {
|
|
|
823
850
|
}): void
|
|
824
851
|
|
|
825
852
|
/**
|
|
826
|
-
*
|
|
853
|
+
* Characteristic 读取权限申请[iOS only]
|
|
854
|
+
* 需要参数为permissions
|
|
827
855
|
* @public
|
|
828
856
|
* @since HealthKit 5.18.0
|
|
829
857
|
* @platform iOS
|
|
@@ -834,7 +862,8 @@ declare namespace ty.health {
|
|
|
834
862
|
): null
|
|
835
863
|
|
|
836
864
|
/**
|
|
837
|
-
*
|
|
865
|
+
* Quantity Category Characteristic 读取权限申请[iOS only]
|
|
866
|
+
* 需要参数为permissions
|
|
838
867
|
* @public
|
|
839
868
|
* @since HealthKit 7.1.5
|
|
840
869
|
* @platform Android
|
|
@@ -842,22 +871,22 @@ declare namespace ty.health {
|
|
|
842
871
|
*/
|
|
843
872
|
export function authiOSAllReadPermissions(params: {
|
|
844
873
|
/**
|
|
845
|
-
*
|
|
874
|
+
* quantity类型的参数
|
|
846
875
|
* @since HealthKit 7.1.5
|
|
847
876
|
*/
|
|
848
877
|
quantityParam?: ParamModel
|
|
849
878
|
/**
|
|
850
|
-
*
|
|
879
|
+
* category类型的参数
|
|
851
880
|
* @since HealthKit 7.1.5
|
|
852
881
|
*/
|
|
853
882
|
categoryParam?: ParamModel
|
|
854
883
|
/**
|
|
855
|
-
*
|
|
884
|
+
* characteristic类型的参数
|
|
856
885
|
* @since HealthKit 7.1.5
|
|
857
886
|
*/
|
|
858
887
|
characteristicParam?: ParamModel
|
|
859
888
|
/**
|
|
860
|
-
*
|
|
889
|
+
* 运动记录
|
|
861
890
|
* @since HealthKit 7.1.5
|
|
862
891
|
*/
|
|
863
892
|
workoutType: boolean
|
|
@@ -882,7 +911,8 @@ declare namespace ty.health {
|
|
|
882
911
|
}): void
|
|
883
912
|
|
|
884
913
|
/**
|
|
885
|
-
*
|
|
914
|
+
* Quantity Category Characteristic 读取权限申请[iOS only]
|
|
915
|
+
* 需要参数为permissions
|
|
886
916
|
* @public
|
|
887
917
|
* @since HealthKit 7.1.5
|
|
888
918
|
* @platform Android
|
|
@@ -893,7 +923,8 @@ declare namespace ty.health {
|
|
|
893
923
|
): null
|
|
894
924
|
|
|
895
925
|
/**
|
|
896
|
-
*
|
|
926
|
+
* Quantity Category Characteristic 查看读取权限[iOS only]
|
|
927
|
+
* 需要参数为permissions
|
|
897
928
|
* @public
|
|
898
929
|
* @since HealthKit 7.1.5
|
|
899
930
|
* @platform Android
|
|
@@ -901,22 +932,22 @@ declare namespace ty.health {
|
|
|
901
932
|
*/
|
|
902
933
|
export function authiOSAllStatuPermissions(params: {
|
|
903
934
|
/**
|
|
904
|
-
*
|
|
935
|
+
* quantity类型的参数
|
|
905
936
|
* @since HealthKit 7.1.5
|
|
906
937
|
*/
|
|
907
938
|
quantityParam?: ParamModel
|
|
908
939
|
/**
|
|
909
|
-
*
|
|
940
|
+
* category类型的参数
|
|
910
941
|
* @since HealthKit 7.1.5
|
|
911
942
|
*/
|
|
912
943
|
categoryParam?: ParamModel
|
|
913
944
|
/**
|
|
914
|
-
*
|
|
945
|
+
* characteristic类型的参数
|
|
915
946
|
* @since HealthKit 7.1.5
|
|
916
947
|
*/
|
|
917
948
|
characteristicParam?: ParamModel
|
|
918
949
|
/**
|
|
919
|
-
*
|
|
950
|
+
* 运动记录
|
|
920
951
|
* @since HealthKit 7.1.5
|
|
921
952
|
*/
|
|
922
953
|
workoutType: boolean
|
|
@@ -925,7 +956,8 @@ declare namespace ty.health {
|
|
|
925
956
|
/** 接口调用成功的回调函数 */
|
|
926
957
|
success?: (params: {
|
|
927
958
|
/**
|
|
928
|
-
*
|
|
959
|
+
* 1 代表传入的类型都申请过对应的读写权限
|
|
960
|
+
* 0 代表传入的类型至少有一个没有请求过对应的读写权限
|
|
929
961
|
* @since HealthKit 7.1.5
|
|
930
962
|
*/
|
|
931
963
|
value: number
|
|
@@ -947,7 +979,8 @@ declare namespace ty.health {
|
|
|
947
979
|
}): void
|
|
948
980
|
|
|
949
981
|
/**
|
|
950
|
-
*
|
|
982
|
+
* Quantity Category Characteristic 查看读取权限[iOS only]
|
|
983
|
+
* 需要参数为permissions
|
|
951
984
|
* @public
|
|
952
985
|
* @since HealthKit 7.1.5
|
|
953
986
|
* @platform Android
|
|
@@ -955,14 +988,16 @@ declare namespace ty.health {
|
|
|
955
988
|
*/
|
|
956
989
|
export function authiOSAllStatuPermissionsSync(paramModel?: IOSParamModel): {
|
|
957
990
|
/**
|
|
958
|
-
*
|
|
991
|
+
* 1 代表传入的类型都申请过对应的读写权限
|
|
992
|
+
* 0 代表传入的类型至少有一个没有请求过对应的读写权限
|
|
959
993
|
* @since HealthKit 7.1.5
|
|
960
994
|
*/
|
|
961
995
|
value: number
|
|
962
996
|
}
|
|
963
997
|
|
|
964
998
|
/**
|
|
965
|
-
*
|
|
999
|
+
* Quantity Category Characteristic 写入数据到iOS HealthKit [iOS only]
|
|
1000
|
+
* 需要参数为permissions
|
|
966
1001
|
* @public
|
|
967
1002
|
* @since HealthKit 7.1.5
|
|
968
1003
|
* @platform iOS
|
|
@@ -995,7 +1030,8 @@ declare namespace ty.health {
|
|
|
995
1030
|
}): void
|
|
996
1031
|
|
|
997
1032
|
/**
|
|
998
|
-
*
|
|
1033
|
+
* Quantity Category Characteristic 写入数据到iOS HealthKit [iOS only]
|
|
1034
|
+
* 需要参数为permissions
|
|
999
1035
|
* @public
|
|
1000
1036
|
* @since HealthKit 7.1.5
|
|
1001
1037
|
* @platform iOS
|
|
@@ -1004,7 +1040,8 @@ declare namespace ty.health {
|
|
|
1004
1040
|
export function insertiOSRecordsSync(request?: RecordIOSParams): boolean
|
|
1005
1041
|
|
|
1006
1042
|
/**
|
|
1007
|
-
*
|
|
1043
|
+
* Quantity读写权限申请[iOS only]
|
|
1044
|
+
* 需要参数为permissions
|
|
1008
1045
|
* @public
|
|
1009
1046
|
* @since HealthKit 5.18.3
|
|
1010
1047
|
* @platform iOS
|
|
@@ -1035,7 +1072,7 @@ declare namespace ty.health {
|
|
|
1035
1072
|
*/
|
|
1036
1073
|
writePermission?: number
|
|
1037
1074
|
/**
|
|
1038
|
-
*
|
|
1075
|
+
* 写入值
|
|
1039
1076
|
* @since HealthKit 5.18.3
|
|
1040
1077
|
*/
|
|
1041
1078
|
value?: number
|
|
@@ -1081,7 +1118,8 @@ declare namespace ty.health {
|
|
|
1081
1118
|
}): void
|
|
1082
1119
|
|
|
1083
1120
|
/**
|
|
1084
|
-
*
|
|
1121
|
+
* Quantity读写权限申请[iOS only]
|
|
1122
|
+
* 需要参数为permissions
|
|
1085
1123
|
* @public
|
|
1086
1124
|
* @since HealthKit 5.18.3
|
|
1087
1125
|
* @platform iOS
|
|
@@ -1090,7 +1128,8 @@ declare namespace ty.health {
|
|
|
1090
1128
|
export function authQuantityRWPermissionsSync(paramModel?: ParamModel): null
|
|
1091
1129
|
|
|
1092
1130
|
/**
|
|
1093
|
-
*
|
|
1131
|
+
* Category 读写权限申请[iOS only]
|
|
1132
|
+
* 需要参数为permissions
|
|
1094
1133
|
* @public
|
|
1095
1134
|
* @since HealthKit 5.18.0
|
|
1096
1135
|
* @platform iOS
|
|
@@ -1121,7 +1160,7 @@ declare namespace ty.health {
|
|
|
1121
1160
|
*/
|
|
1122
1161
|
writePermission?: number
|
|
1123
1162
|
/**
|
|
1124
|
-
*
|
|
1163
|
+
* 写入值
|
|
1125
1164
|
* @since HealthKit 5.18.3
|
|
1126
1165
|
*/
|
|
1127
1166
|
value?: number
|
|
@@ -1167,7 +1206,8 @@ declare namespace ty.health {
|
|
|
1167
1206
|
}): void
|
|
1168
1207
|
|
|
1169
1208
|
/**
|
|
1170
|
-
*
|
|
1209
|
+
* Category 读写权限申请[iOS only]
|
|
1210
|
+
* 需要参数为permissions
|
|
1171
1211
|
* @public
|
|
1172
1212
|
* @since HealthKit 5.18.0
|
|
1173
1213
|
* @platform iOS
|
|
@@ -1176,7 +1216,8 @@ declare namespace ty.health {
|
|
|
1176
1216
|
export function authCategoryRWPermissionsSync(paramModel?: ParamModel): null
|
|
1177
1217
|
|
|
1178
1218
|
/**
|
|
1179
|
-
* 写入
|
|
1219
|
+
* 写入Quantity类型的数据[iOS only]
|
|
1220
|
+
* 需要参数为value,type,unitType,startTime,endTime
|
|
1180
1221
|
* @public
|
|
1181
1222
|
* @since HealthKit 5.18.3
|
|
1182
1223
|
* @platform iOS
|
|
@@ -1208,7 +1249,7 @@ declare namespace ty.health {
|
|
|
1208
1249
|
*/
|
|
1209
1250
|
writePermission?: number
|
|
1210
1251
|
/**
|
|
1211
|
-
*
|
|
1252
|
+
* 写入值
|
|
1212
1253
|
* @since HealthKit 5.18.3
|
|
1213
1254
|
*/
|
|
1214
1255
|
value?: number
|
|
@@ -1254,7 +1295,8 @@ declare namespace ty.health {
|
|
|
1254
1295
|
}): void
|
|
1255
1296
|
|
|
1256
1297
|
/**
|
|
1257
|
-
* 写入
|
|
1298
|
+
* 写入Quantity类型的数据[iOS only]
|
|
1299
|
+
* 需要参数为value,type,unitType,startTime,endTime
|
|
1258
1300
|
* @public
|
|
1259
1301
|
* @since HealthKit 5.18.3
|
|
1260
1302
|
* @platform iOS
|
|
@@ -1264,7 +1306,8 @@ declare namespace ty.health {
|
|
|
1264
1306
|
export function saveQuantityDataSync(paramModel?: ParamModel): null
|
|
1265
1307
|
|
|
1266
1308
|
/**
|
|
1267
|
-
* 写入
|
|
1309
|
+
* 写入Quantity类型的数据,不用传时间,开始时间和结束时间默认设置为当前时间[iOS only]
|
|
1310
|
+
* 需要参数为value,type,unitType
|
|
1268
1311
|
* @public
|
|
1269
1312
|
* @since HealthKit 5.18.3
|
|
1270
1313
|
* @platform iOS
|
|
@@ -1296,7 +1339,7 @@ declare namespace ty.health {
|
|
|
1296
1339
|
*/
|
|
1297
1340
|
writePermission?: number
|
|
1298
1341
|
/**
|
|
1299
|
-
*
|
|
1342
|
+
* 写入值
|
|
1300
1343
|
* @since HealthKit 5.18.3
|
|
1301
1344
|
*/
|
|
1302
1345
|
value?: number
|
|
@@ -1342,7 +1385,8 @@ declare namespace ty.health {
|
|
|
1342
1385
|
}): void
|
|
1343
1386
|
|
|
1344
1387
|
/**
|
|
1345
|
-
* 写入
|
|
1388
|
+
* 写入Quantity类型的数据,不用传时间,开始时间和结束时间默认设置为当前时间[iOS only]
|
|
1389
|
+
* 需要参数为value,type,unitType
|
|
1346
1390
|
* @public
|
|
1347
1391
|
* @since HealthKit 5.18.3
|
|
1348
1392
|
* @platform iOS
|
|
@@ -1352,7 +1396,7 @@ declare namespace ty.health {
|
|
|
1352
1396
|
export function saveQuantityNoTimeWithDataSync(paramModel?: ParamModel): null
|
|
1353
1397
|
|
|
1354
1398
|
/**
|
|
1355
|
-
*
|
|
1399
|
+
* 写入血压数据[iOS only]
|
|
1356
1400
|
* @public
|
|
1357
1401
|
* @since HealthKit 5.18.0
|
|
1358
1402
|
* @platform iOS
|
|
@@ -1401,7 +1445,7 @@ declare namespace ty.health {
|
|
|
1401
1445
|
}): void
|
|
1402
1446
|
|
|
1403
1447
|
/**
|
|
1404
|
-
*
|
|
1448
|
+
* 写入血压数据[iOS only]
|
|
1405
1449
|
* @public
|
|
1406
1450
|
* @since HealthKit 5.18.0
|
|
1407
1451
|
* @platform iOS
|
|
@@ -1413,7 +1457,8 @@ declare namespace ty.health {
|
|
|
1413
1457
|
): null
|
|
1414
1458
|
|
|
1415
1459
|
/**
|
|
1416
|
-
*
|
|
1460
|
+
* 读取 Quantity[iOS only]
|
|
1461
|
+
* 需要参数为type,unitType,startTime,endTime
|
|
1417
1462
|
* @public
|
|
1418
1463
|
* @since HealthKit 5.18.3
|
|
1419
1464
|
* @platform iOS
|
|
@@ -1444,7 +1489,7 @@ declare namespace ty.health {
|
|
|
1444
1489
|
*/
|
|
1445
1490
|
writePermission?: number
|
|
1446
1491
|
/**
|
|
1447
|
-
*
|
|
1492
|
+
* 写入值
|
|
1448
1493
|
* @since HealthKit 5.18.3
|
|
1449
1494
|
*/
|
|
1450
1495
|
value?: number
|
|
@@ -1480,7 +1525,7 @@ declare namespace ty.health {
|
|
|
1480
1525
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1481
1526
|
* @since HealthKit 5.18.4
|
|
1482
1527
|
*/
|
|
1483
|
-
value:
|
|
1528
|
+
value: Object[]
|
|
1484
1529
|
}) => void
|
|
1485
1530
|
/** 接口调用失败的回调函数 */
|
|
1486
1531
|
fail?: (params: {
|
|
@@ -1499,7 +1544,8 @@ declare namespace ty.health {
|
|
|
1499
1544
|
}): void
|
|
1500
1545
|
|
|
1501
1546
|
/**
|
|
1502
|
-
*
|
|
1547
|
+
* 读取 Quantity[iOS only]
|
|
1548
|
+
* 需要参数为type,unitType,startTime,endTime
|
|
1503
1549
|
* @public
|
|
1504
1550
|
* @since HealthKit 5.18.3
|
|
1505
1551
|
* @platform iOS
|
|
@@ -1513,11 +1559,12 @@ declare namespace ty.health {
|
|
|
1513
1559
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1514
1560
|
* @since HealthKit 5.18.4
|
|
1515
1561
|
*/
|
|
1516
|
-
value:
|
|
1562
|
+
value: Object[]
|
|
1517
1563
|
}
|
|
1518
1564
|
|
|
1519
1565
|
/**
|
|
1520
|
-
*
|
|
1566
|
+
* 删除QuantityData数据,基于起止时间删除[iOS only]
|
|
1567
|
+
* 需要参数为type,startTime,endTime
|
|
1521
1568
|
* @public
|
|
1522
1569
|
* @since HealthKit 5.18.3
|
|
1523
1570
|
* @platform iOS
|
|
@@ -1549,7 +1596,7 @@ declare namespace ty.health {
|
|
|
1549
1596
|
*/
|
|
1550
1597
|
writePermission?: number
|
|
1551
1598
|
/**
|
|
1552
|
-
*
|
|
1599
|
+
* 写入值
|
|
1553
1600
|
* @since HealthKit 5.18.3
|
|
1554
1601
|
*/
|
|
1555
1602
|
value?: number
|
|
@@ -1595,7 +1642,8 @@ declare namespace ty.health {
|
|
|
1595
1642
|
}): void
|
|
1596
1643
|
|
|
1597
1644
|
/**
|
|
1598
|
-
*
|
|
1645
|
+
* 删除QuantityData数据,基于起止时间删除[iOS only]
|
|
1646
|
+
* 需要参数为type,startTime,endTime
|
|
1599
1647
|
* @public
|
|
1600
1648
|
* @since HealthKit 5.18.3
|
|
1601
1649
|
* @platform iOS
|
|
@@ -1605,7 +1653,8 @@ declare namespace ty.health {
|
|
|
1605
1653
|
export function deleteQuantityDataTypeSync(paramModel?: ParamModel): null
|
|
1606
1654
|
|
|
1607
1655
|
/**
|
|
1608
|
-
*
|
|
1656
|
+
* 读取 Characteristic[iOS only]
|
|
1657
|
+
* 需要参数为type
|
|
1609
1658
|
* @public
|
|
1610
1659
|
* @since HealthKit 5.18.0
|
|
1611
1660
|
* @platform iOS
|
|
@@ -1636,7 +1685,7 @@ declare namespace ty.health {
|
|
|
1636
1685
|
*/
|
|
1637
1686
|
writePermission?: number
|
|
1638
1687
|
/**
|
|
1639
|
-
*
|
|
1688
|
+
* 写入值
|
|
1640
1689
|
* @since HealthKit 5.18.3
|
|
1641
1690
|
*/
|
|
1642
1691
|
value?: number
|
|
@@ -1672,7 +1721,7 @@ declare namespace ty.health {
|
|
|
1672
1721
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1673
1722
|
* @since HealthKit 5.18.4
|
|
1674
1723
|
*/
|
|
1675
|
-
value:
|
|
1724
|
+
value: Object[]
|
|
1676
1725
|
}) => void
|
|
1677
1726
|
/** 接口调用失败的回调函数 */
|
|
1678
1727
|
fail?: (params: {
|
|
@@ -1691,7 +1740,8 @@ declare namespace ty.health {
|
|
|
1691
1740
|
}): void
|
|
1692
1741
|
|
|
1693
1742
|
/**
|
|
1694
|
-
*
|
|
1743
|
+
* 读取 Characteristic[iOS only]
|
|
1744
|
+
* 需要参数为type
|
|
1695
1745
|
* @public
|
|
1696
1746
|
* @since HealthKit 5.18.0
|
|
1697
1747
|
* @platform iOS
|
|
@@ -1705,11 +1755,13 @@ declare namespace ty.health {
|
|
|
1705
1755
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1706
1756
|
* @since HealthKit 5.18.4
|
|
1707
1757
|
*/
|
|
1708
|
-
value:
|
|
1758
|
+
value: Object[]
|
|
1709
1759
|
}
|
|
1710
1760
|
|
|
1711
1761
|
/**
|
|
1712
|
-
* 写入
|
|
1762
|
+
* 写入Category类型的数据[iOS only]
|
|
1763
|
+
* 需要参数为value,type,startTime,endTime
|
|
1764
|
+
* Category类型数据的写入参考苹果官方文档的定义
|
|
1713
1765
|
* @public
|
|
1714
1766
|
* @since HealthKit 5.18.3
|
|
1715
1767
|
* @platform iOS
|
|
@@ -1741,7 +1793,7 @@ declare namespace ty.health {
|
|
|
1741
1793
|
*/
|
|
1742
1794
|
writePermission?: number
|
|
1743
1795
|
/**
|
|
1744
|
-
*
|
|
1796
|
+
* 写入值
|
|
1745
1797
|
* @since HealthKit 5.18.3
|
|
1746
1798
|
*/
|
|
1747
1799
|
value?: number
|
|
@@ -1787,7 +1839,9 @@ declare namespace ty.health {
|
|
|
1787
1839
|
}): void
|
|
1788
1840
|
|
|
1789
1841
|
/**
|
|
1790
|
-
* 写入
|
|
1842
|
+
* 写入Category类型的数据[iOS only]
|
|
1843
|
+
* 需要参数为value,type,startTime,endTime
|
|
1844
|
+
* Category类型数据的写入参考苹果官方文档的定义
|
|
1791
1845
|
* @public
|
|
1792
1846
|
* @since HealthKit 5.18.3
|
|
1793
1847
|
* @platform iOS
|
|
@@ -1797,7 +1851,8 @@ declare namespace ty.health {
|
|
|
1797
1851
|
export function saveCategoryDataSync(paramModel?: ParamModel): null
|
|
1798
1852
|
|
|
1799
1853
|
/**
|
|
1800
|
-
* 写入
|
|
1854
|
+
* 写入Category类型的数据,不用传时间,开始时间和结束时间默认设置为当前时间[iOS only]
|
|
1855
|
+
* 需要参数为value,type
|
|
1801
1856
|
* @public
|
|
1802
1857
|
* @since HealthKit 5.18.0
|
|
1803
1858
|
* @platform iOS
|
|
@@ -1829,7 +1884,7 @@ declare namespace ty.health {
|
|
|
1829
1884
|
*/
|
|
1830
1885
|
writePermission?: number
|
|
1831
1886
|
/**
|
|
1832
|
-
*
|
|
1887
|
+
* 写入值
|
|
1833
1888
|
* @since HealthKit 5.18.3
|
|
1834
1889
|
*/
|
|
1835
1890
|
value?: number
|
|
@@ -1875,7 +1930,8 @@ declare namespace ty.health {
|
|
|
1875
1930
|
}): void
|
|
1876
1931
|
|
|
1877
1932
|
/**
|
|
1878
|
-
* 写入
|
|
1933
|
+
* 写入Category类型的数据,不用传时间,开始时间和结束时间默认设置为当前时间[iOS only]
|
|
1934
|
+
* 需要参数为value,type
|
|
1879
1935
|
* @public
|
|
1880
1936
|
* @since HealthKit 5.18.0
|
|
1881
1937
|
* @platform iOS
|
|
@@ -1885,7 +1941,8 @@ declare namespace ty.health {
|
|
|
1885
1941
|
export function saveCategoryNoTimeWithDataSync(paramModel?: ParamModel): null
|
|
1886
1942
|
|
|
1887
1943
|
/**
|
|
1888
|
-
*
|
|
1944
|
+
* 读取 Category类型的数据[iOS only]
|
|
1945
|
+
* 需要参数为type,startTime,endTime
|
|
1889
1946
|
* @public
|
|
1890
1947
|
* @since HealthKit 5.18.0
|
|
1891
1948
|
* @platform iOS
|
|
@@ -1916,7 +1973,7 @@ declare namespace ty.health {
|
|
|
1916
1973
|
*/
|
|
1917
1974
|
writePermission?: number
|
|
1918
1975
|
/**
|
|
1919
|
-
*
|
|
1976
|
+
* 写入值
|
|
1920
1977
|
* @since HealthKit 5.18.3
|
|
1921
1978
|
*/
|
|
1922
1979
|
value?: number
|
|
@@ -1952,7 +2009,7 @@ declare namespace ty.health {
|
|
|
1952
2009
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1953
2010
|
* @since HealthKit 5.18.4
|
|
1954
2011
|
*/
|
|
1955
|
-
value:
|
|
2012
|
+
value: Object[]
|
|
1956
2013
|
}) => void
|
|
1957
2014
|
/** 接口调用失败的回调函数 */
|
|
1958
2015
|
fail?: (params: {
|
|
@@ -1971,7 +2028,8 @@ declare namespace ty.health {
|
|
|
1971
2028
|
}): void
|
|
1972
2029
|
|
|
1973
2030
|
/**
|
|
1974
|
-
*
|
|
2031
|
+
* 读取 Category类型的数据[iOS only]
|
|
2032
|
+
* 需要参数为type,startTime,endTime
|
|
1975
2033
|
* @public
|
|
1976
2034
|
* @since HealthKit 5.18.0
|
|
1977
2035
|
* @platform iOS
|
|
@@ -1985,44 +2043,44 @@ declare namespace ty.health {
|
|
|
1985
2043
|
* endDate: Double 读取到的条目的截止时间戳
|
|
1986
2044
|
* @since HealthKit 5.18.4
|
|
1987
2045
|
*/
|
|
1988
|
-
value:
|
|
2046
|
+
value: Object[]
|
|
1989
2047
|
}
|
|
1990
2048
|
|
|
1991
2049
|
/**
|
|
1992
|
-
*
|
|
2050
|
+
* 获取体脂秤算法数据
|
|
1993
2051
|
* @public
|
|
1994
|
-
* @since HealthKit
|
|
2052
|
+
* @since HealthKit 5.18.6
|
|
1995
2053
|
* @platform Android
|
|
1996
2054
|
*/
|
|
1997
2055
|
export function queryBodyFatScaleAlgorithm(params: {
|
|
1998
2056
|
/**
|
|
1999
|
-
*
|
|
2000
|
-
* @since HealthKit
|
|
2057
|
+
* 性别(1-男、2-女)
|
|
2058
|
+
* @since HealthKit 5.18.6
|
|
2001
2059
|
*/
|
|
2002
2060
|
sex: number
|
|
2003
2061
|
/**
|
|
2004
2062
|
* 体重(单位kg)
|
|
2005
|
-
* @since HealthKit
|
|
2063
|
+
* @since HealthKit 5.18.6
|
|
2006
2064
|
*/
|
|
2007
2065
|
weight: number
|
|
2008
2066
|
/**
|
|
2009
2067
|
* 阻抗
|
|
2010
|
-
* @since HealthKit
|
|
2068
|
+
* @since HealthKit 5.18.6
|
|
2011
2069
|
*/
|
|
2012
2070
|
imp: number
|
|
2013
2071
|
/**
|
|
2014
2072
|
* 身高(单位cm)
|
|
2015
|
-
* @since HealthKit
|
|
2073
|
+
* @since HealthKit 5.18.6
|
|
2016
2074
|
*/
|
|
2017
2075
|
height: number
|
|
2018
2076
|
/**
|
|
2019
2077
|
* 生日(13位、毫秒)
|
|
2020
|
-
* @since HealthKit
|
|
2078
|
+
* @since HealthKit 5.18.6
|
|
2021
2079
|
*/
|
|
2022
2080
|
birthday: number
|
|
2023
2081
|
/**
|
|
2024
2082
|
* 测量时间(13位、毫秒)
|
|
2025
|
-
* @since HealthKit
|
|
2083
|
+
* @since HealthKit 5.18.6
|
|
2026
2084
|
*/
|
|
2027
2085
|
time: number
|
|
2028
2086
|
/** 接口调用结束的回调函数(调用成功、失败都会执行) */
|
|
@@ -2031,92 +2089,92 @@ declare namespace ty.health {
|
|
|
2031
2089
|
success?: (params: {
|
|
2032
2090
|
/**
|
|
2033
2091
|
* bmi
|
|
2034
|
-
* @since HealthKit
|
|
2092
|
+
* @since HealthKit 5.18.6
|
|
2035
2093
|
*/
|
|
2036
2094
|
bmi: string
|
|
2037
2095
|
/**
|
|
2038
2096
|
* 体脂率
|
|
2039
|
-
* @since HealthKit
|
|
2097
|
+
* @since HealthKit 5.18.6
|
|
2040
2098
|
*/
|
|
2041
2099
|
fat: string
|
|
2042
2100
|
/**
|
|
2043
2101
|
* 水份率
|
|
2044
|
-
* @since HealthKit
|
|
2102
|
+
* @since HealthKit 5.18.6
|
|
2045
2103
|
*/
|
|
2046
2104
|
water: string
|
|
2047
2105
|
/**
|
|
2048
2106
|
* 肌肉量
|
|
2049
|
-
* @since HealthKit
|
|
2107
|
+
* @since HealthKit 5.18.6
|
|
2050
2108
|
*/
|
|
2051
2109
|
muscle: string
|
|
2052
2110
|
/**
|
|
2053
2111
|
* 蛋白率
|
|
2054
|
-
* @since HealthKit
|
|
2112
|
+
* @since HealthKit 5.18.6
|
|
2055
2113
|
*/
|
|
2056
2114
|
protein: string
|
|
2057
2115
|
/**
|
|
2058
2116
|
* 骨量
|
|
2059
|
-
* @since HealthKit
|
|
2117
|
+
* @since HealthKit 5.18.6
|
|
2060
2118
|
*/
|
|
2061
2119
|
bones: string
|
|
2062
2120
|
/**
|
|
2063
2121
|
* 基础代谢率
|
|
2064
|
-
* @since HealthKit
|
|
2122
|
+
* @since HealthKit 5.18.6
|
|
2065
2123
|
*/
|
|
2066
2124
|
metabolism: string
|
|
2067
2125
|
/**
|
|
2068
2126
|
* 身体年龄
|
|
2069
|
-
* @since HealthKit
|
|
2127
|
+
* @since HealthKit 5.18.6
|
|
2070
2128
|
*/
|
|
2071
2129
|
bodyAge: string
|
|
2072
2130
|
/**
|
|
2073
2131
|
* 身体得分
|
|
2074
|
-
* @since HealthKit
|
|
2132
|
+
* @since HealthKit 5.18.6
|
|
2075
2133
|
*/
|
|
2076
2134
|
bodyScore: string
|
|
2077
2135
|
/**
|
|
2078
2136
|
* 内脂肪等级
|
|
2079
|
-
* @since HealthKit
|
|
2137
|
+
* @since HealthKit 5.18.6
|
|
2080
2138
|
*/
|
|
2081
2139
|
visceralFat: string
|
|
2082
2140
|
/**
|
|
2083
2141
|
* 体型
|
|
2084
|
-
* @since HealthKit
|
|
2142
|
+
* @since HealthKit 5.18.6
|
|
2085
2143
|
*/
|
|
2086
2144
|
bodyType: string
|
|
2087
2145
|
/**
|
|
2088
2146
|
* 去脂指数
|
|
2089
|
-
* @since HealthKit
|
|
2147
|
+
* @since HealthKit 5.18.6
|
|
2090
2148
|
*/
|
|
2091
2149
|
ffm: string
|
|
2092
2150
|
/**
|
|
2093
2151
|
* 脂肪量
|
|
2094
|
-
* @since HealthKit
|
|
2152
|
+
* @since HealthKit 5.18.6
|
|
2095
2153
|
*/
|
|
2096
2154
|
fatMass: string
|
|
2097
2155
|
/**
|
|
2098
2156
|
* 体脂指数
|
|
2099
|
-
* @since HealthKit
|
|
2157
|
+
* @since HealthKit 5.18.6
|
|
2100
2158
|
*/
|
|
2101
2159
|
bodyFatIndex: string
|
|
2102
2160
|
/**
|
|
2103
2161
|
* 肥胖等级
|
|
2104
|
-
* @since HealthKit
|
|
2162
|
+
* @since HealthKit 5.18.6
|
|
2105
2163
|
*/
|
|
2106
2164
|
fatLevel: string
|
|
2107
2165
|
/**
|
|
2108
2166
|
* 标准体重
|
|
2109
|
-
* @since HealthKit
|
|
2167
|
+
* @since HealthKit 5.18.6
|
|
2110
2168
|
*/
|
|
2111
2169
|
standardWeight: string
|
|
2112
2170
|
/**
|
|
2113
2171
|
* 体重控制
|
|
2114
|
-
* @since HealthKit
|
|
2172
|
+
* @since HealthKit 5.18.6
|
|
2115
2173
|
*/
|
|
2116
2174
|
weightControl: string
|
|
2117
2175
|
/**
|
|
2118
2176
|
* 肌肉率
|
|
2119
|
-
* @since HealthKit
|
|
2177
|
+
* @since HealthKit 5.18.6
|
|
2120
2178
|
*/
|
|
2121
2179
|
muscleRatio: string
|
|
2122
2180
|
}) => void
|
|
@@ -2137,106 +2195,106 @@ declare namespace ty.health {
|
|
|
2137
2195
|
}): void
|
|
2138
2196
|
|
|
2139
2197
|
/**
|
|
2140
|
-
*
|
|
2198
|
+
* 获取体脂秤算法数据
|
|
2141
2199
|
* @public
|
|
2142
|
-
* @since HealthKit
|
|
2200
|
+
* @since HealthKit 5.18.6
|
|
2143
2201
|
* @platform Android
|
|
2144
2202
|
*/
|
|
2145
2203
|
export function queryBodyFatScaleAlgorithmSync(request?: BodyScaleParam): {
|
|
2146
2204
|
/**
|
|
2147
2205
|
* bmi
|
|
2148
|
-
* @since HealthKit
|
|
2206
|
+
* @since HealthKit 5.18.6
|
|
2149
2207
|
*/
|
|
2150
2208
|
bmi: string
|
|
2151
2209
|
/**
|
|
2152
2210
|
* 体脂率
|
|
2153
|
-
* @since HealthKit
|
|
2211
|
+
* @since HealthKit 5.18.6
|
|
2154
2212
|
*/
|
|
2155
2213
|
fat: string
|
|
2156
2214
|
/**
|
|
2157
2215
|
* 水份率
|
|
2158
|
-
* @since HealthKit
|
|
2216
|
+
* @since HealthKit 5.18.6
|
|
2159
2217
|
*/
|
|
2160
2218
|
water: string
|
|
2161
2219
|
/**
|
|
2162
2220
|
* 肌肉量
|
|
2163
|
-
* @since HealthKit
|
|
2221
|
+
* @since HealthKit 5.18.6
|
|
2164
2222
|
*/
|
|
2165
2223
|
muscle: string
|
|
2166
2224
|
/**
|
|
2167
2225
|
* 蛋白率
|
|
2168
|
-
* @since HealthKit
|
|
2226
|
+
* @since HealthKit 5.18.6
|
|
2169
2227
|
*/
|
|
2170
2228
|
protein: string
|
|
2171
2229
|
/**
|
|
2172
2230
|
* 骨量
|
|
2173
|
-
* @since HealthKit
|
|
2231
|
+
* @since HealthKit 5.18.6
|
|
2174
2232
|
*/
|
|
2175
2233
|
bones: string
|
|
2176
2234
|
/**
|
|
2177
2235
|
* 基础代谢率
|
|
2178
|
-
* @since HealthKit
|
|
2236
|
+
* @since HealthKit 5.18.6
|
|
2179
2237
|
*/
|
|
2180
2238
|
metabolism: string
|
|
2181
2239
|
/**
|
|
2182
2240
|
* 身体年龄
|
|
2183
|
-
* @since HealthKit
|
|
2241
|
+
* @since HealthKit 5.18.6
|
|
2184
2242
|
*/
|
|
2185
2243
|
bodyAge: string
|
|
2186
2244
|
/**
|
|
2187
2245
|
* 身体得分
|
|
2188
|
-
* @since HealthKit
|
|
2246
|
+
* @since HealthKit 5.18.6
|
|
2189
2247
|
*/
|
|
2190
2248
|
bodyScore: string
|
|
2191
2249
|
/**
|
|
2192
2250
|
* 内脂肪等级
|
|
2193
|
-
* @since HealthKit
|
|
2251
|
+
* @since HealthKit 5.18.6
|
|
2194
2252
|
*/
|
|
2195
2253
|
visceralFat: string
|
|
2196
2254
|
/**
|
|
2197
2255
|
* 体型
|
|
2198
|
-
* @since HealthKit
|
|
2256
|
+
* @since HealthKit 5.18.6
|
|
2199
2257
|
*/
|
|
2200
2258
|
bodyType: string
|
|
2201
2259
|
/**
|
|
2202
2260
|
* 去脂指数
|
|
2203
|
-
* @since HealthKit
|
|
2261
|
+
* @since HealthKit 5.18.6
|
|
2204
2262
|
*/
|
|
2205
2263
|
ffm: string
|
|
2206
2264
|
/**
|
|
2207
2265
|
* 脂肪量
|
|
2208
|
-
* @since HealthKit
|
|
2266
|
+
* @since HealthKit 5.18.6
|
|
2209
2267
|
*/
|
|
2210
2268
|
fatMass: string
|
|
2211
2269
|
/**
|
|
2212
2270
|
* 体脂指数
|
|
2213
|
-
* @since HealthKit
|
|
2271
|
+
* @since HealthKit 5.18.6
|
|
2214
2272
|
*/
|
|
2215
2273
|
bodyFatIndex: string
|
|
2216
2274
|
/**
|
|
2217
2275
|
* 肥胖等级
|
|
2218
|
-
* @since HealthKit
|
|
2276
|
+
* @since HealthKit 5.18.6
|
|
2219
2277
|
*/
|
|
2220
2278
|
fatLevel: string
|
|
2221
2279
|
/**
|
|
2222
2280
|
* 标准体重
|
|
2223
|
-
* @since HealthKit
|
|
2281
|
+
* @since HealthKit 5.18.6
|
|
2224
2282
|
*/
|
|
2225
2283
|
standardWeight: string
|
|
2226
2284
|
/**
|
|
2227
2285
|
* 体重控制
|
|
2228
|
-
* @since HealthKit
|
|
2286
|
+
* @since HealthKit 5.18.6
|
|
2229
2287
|
*/
|
|
2230
2288
|
weightControl: string
|
|
2231
2289
|
/**
|
|
2232
2290
|
* 肌肉率
|
|
2233
|
-
* @since HealthKit
|
|
2291
|
+
* @since HealthKit 5.18.6
|
|
2234
2292
|
*/
|
|
2235
2293
|
muscleRatio: string
|
|
2236
2294
|
}
|
|
2237
2295
|
|
|
2238
2296
|
/**
|
|
2239
|
-
*
|
|
2297
|
+
* 是否健康本地化数据设备
|
|
2240
2298
|
* @public
|
|
2241
2299
|
* @since HealthKit 7.0.5
|
|
2242
2300
|
* @platform Android
|
|
@@ -2274,7 +2332,7 @@ declare namespace ty.health {
|
|
|
2274
2332
|
}): void
|
|
2275
2333
|
|
|
2276
2334
|
/**
|
|
2277
|
-
*
|
|
2335
|
+
* 是否健康本地化数据设备
|
|
2278
2336
|
* @public
|
|
2279
2337
|
* @since HealthKit 7.0.5
|
|
2280
2338
|
* @platform Android
|
|
@@ -2288,7 +2346,7 @@ declare namespace ty.health {
|
|
|
2288
2346
|
}
|
|
2289
2347
|
|
|
2290
2348
|
/**
|
|
2291
|
-
*
|
|
2349
|
+
* 健康本地化数据设备 - Post大数据通道数据
|
|
2292
2350
|
* @public
|
|
2293
2351
|
* @since HealthKit 7.0.5
|
|
2294
2352
|
* @platform Android
|
|
@@ -2325,7 +2383,7 @@ declare namespace ty.health {
|
|
|
2325
2383
|
}): void
|
|
2326
2384
|
|
|
2327
2385
|
/**
|
|
2328
|
-
*
|
|
2386
|
+
* 健康本地化数据设备 - Post大数据通道数据
|
|
2329
2387
|
* @public
|
|
2330
2388
|
* @since HealthKit 7.0.5
|
|
2331
2389
|
* @platform Android
|
|
@@ -2335,7 +2393,7 @@ declare namespace ty.health {
|
|
|
2335
2393
|
): null
|
|
2336
2394
|
|
|
2337
2395
|
/**
|
|
2338
|
-
*
|
|
2396
|
+
* 健康本地化数据设备 - 获取当前数据库版本号
|
|
2339
2397
|
* @public
|
|
2340
2398
|
* @since HealthKit 7.0.5
|
|
2341
2399
|
* @platform Android
|
|
@@ -2368,7 +2426,7 @@ declare namespace ty.health {
|
|
|
2368
2426
|
}): void
|
|
2369
2427
|
|
|
2370
2428
|
/**
|
|
2371
|
-
*
|
|
2429
|
+
* 健康本地化数据设备 - 获取当前数据库版本号
|
|
2372
2430
|
* @public
|
|
2373
2431
|
* @since HealthKit 7.0.5
|
|
2374
2432
|
* @platform Android
|
|
@@ -2382,7 +2440,7 @@ declare namespace ty.health {
|
|
|
2382
2440
|
}
|
|
2383
2441
|
|
|
2384
2442
|
/**
|
|
2385
|
-
*
|
|
2443
|
+
* 健康本地化数据库信息获取和存储逻辑
|
|
2386
2444
|
* @public
|
|
2387
2445
|
* @since HealthKit 7.0.5
|
|
2388
2446
|
* @platform Android
|
|
@@ -2403,7 +2461,7 @@ declare namespace ty.health {
|
|
|
2403
2461
|
/** 接口调用成功的回调函数 */
|
|
2404
2462
|
success?: (params: {
|
|
2405
2463
|
/**
|
|
2406
|
-
*
|
|
2464
|
+
* 返回结果
|
|
2407
2465
|
* @since HealthKit 7.0.5
|
|
2408
2466
|
*/
|
|
2409
2467
|
result: string
|
|
@@ -2425,21 +2483,21 @@ declare namespace ty.health {
|
|
|
2425
2483
|
}): void
|
|
2426
2484
|
|
|
2427
2485
|
/**
|
|
2428
|
-
*
|
|
2486
|
+
* 健康本地化数据库信息获取和存储逻辑
|
|
2429
2487
|
* @public
|
|
2430
2488
|
* @since HealthKit 7.0.5
|
|
2431
2489
|
* @platform Android
|
|
2432
2490
|
*/
|
|
2433
2491
|
export function requestLocalDataApiSync(param?: HealthDataLocalParams): {
|
|
2434
2492
|
/**
|
|
2435
|
-
*
|
|
2493
|
+
* 返回结果
|
|
2436
2494
|
* @since HealthKit 7.0.5
|
|
2437
2495
|
*/
|
|
2438
2496
|
result: string
|
|
2439
2497
|
}
|
|
2440
2498
|
|
|
2441
2499
|
/**
|
|
2442
|
-
*
|
|
2500
|
+
* 健康AI小程序本地化数据库初始化逻辑
|
|
2443
2501
|
* @public
|
|
2444
2502
|
* @since HealthKit 7.1.5
|
|
2445
2503
|
* @platform Android
|
|
@@ -2466,7 +2524,7 @@ declare namespace ty.health {
|
|
|
2466
2524
|
}): void
|
|
2467
2525
|
|
|
2468
2526
|
/**
|
|
2469
|
-
*
|
|
2527
|
+
* 健康AI小程序本地化数据库初始化逻辑
|
|
2470
2528
|
* @public
|
|
2471
2529
|
* @since HealthKit 7.1.5
|
|
2472
2530
|
* @platform Android
|
|
@@ -2474,7 +2532,7 @@ declare namespace ty.health {
|
|
|
2474
2532
|
export function aiHealthInitSync(): null
|
|
2475
2533
|
|
|
2476
2534
|
/**
|
|
2477
|
-
* 健康
|
|
2535
|
+
* 健康AI小程序本地化数据库信息获取和存储逻辑
|
|
2478
2536
|
* @public
|
|
2479
2537
|
* @since HealthKit 7.1.5
|
|
2480
2538
|
* @platform Android
|
|
@@ -2495,17 +2553,17 @@ declare namespace ty.health {
|
|
|
2495
2553
|
/** 接口调用成功的回调函数 */
|
|
2496
2554
|
success?: (params: {
|
|
2497
2555
|
/**
|
|
2498
|
-
*
|
|
2556
|
+
* 返回结果
|
|
2499
2557
|
* @since HealthKit 7.1.5
|
|
2500
2558
|
*/
|
|
2501
2559
|
result?: string
|
|
2502
2560
|
/**
|
|
2503
|
-
*
|
|
2561
|
+
* 时间戳
|
|
2504
2562
|
* @since HealthKit 7.1.5
|
|
2505
2563
|
*/
|
|
2506
2564
|
t: number
|
|
2507
2565
|
/**
|
|
2508
|
-
*
|
|
2566
|
+
* 是否成功
|
|
2509
2567
|
* @since HealthKit 7.1.5
|
|
2510
2568
|
*/
|
|
2511
2569
|
success: boolean
|
|
@@ -2527,31 +2585,31 @@ declare namespace ty.health {
|
|
|
2527
2585
|
}): void
|
|
2528
2586
|
|
|
2529
2587
|
/**
|
|
2530
|
-
* 健康
|
|
2588
|
+
* 健康AI小程序本地化数据库信息获取和存储逻辑
|
|
2531
2589
|
* @public
|
|
2532
2590
|
* @since HealthKit 7.1.5
|
|
2533
2591
|
* @platform Android
|
|
2534
2592
|
*/
|
|
2535
2593
|
export function requestAiHealthDataApiSync(param?: AIHealthDataParams): {
|
|
2536
2594
|
/**
|
|
2537
|
-
*
|
|
2595
|
+
* 返回结果
|
|
2538
2596
|
* @since HealthKit 7.1.5
|
|
2539
2597
|
*/
|
|
2540
2598
|
result?: string
|
|
2541
2599
|
/**
|
|
2542
|
-
*
|
|
2600
|
+
* 时间戳
|
|
2543
2601
|
* @since HealthKit 7.1.5
|
|
2544
2602
|
*/
|
|
2545
2603
|
t: number
|
|
2546
2604
|
/**
|
|
2547
|
-
*
|
|
2605
|
+
* 是否成功
|
|
2548
2606
|
* @since HealthKit 7.1.5
|
|
2549
2607
|
*/
|
|
2550
2608
|
success: boolean
|
|
2551
2609
|
}
|
|
2552
2610
|
|
|
2553
2611
|
/**
|
|
2554
|
-
*
|
|
2612
|
+
* 同步到health connect的数据
|
|
2555
2613
|
* @since HealthKit 5.18.0
|
|
2556
2614
|
*/
|
|
2557
2615
|
export interface RecordParams {
|
|
@@ -2637,7 +2695,7 @@ declare namespace ty.health {
|
|
|
2637
2695
|
*/
|
|
2638
2696
|
endTime?: number
|
|
2639
2697
|
/**
|
|
2640
|
-
*
|
|
2698
|
+
* 常规字段
|
|
2641
2699
|
* @since HealthKit 7.1.5
|
|
2642
2700
|
*/
|
|
2643
2701
|
value?: number
|
|
@@ -2744,10 +2802,7 @@ declare namespace ty.health {
|
|
|
2744
2802
|
count: number
|
|
2745
2803
|
}
|
|
2746
2804
|
|
|
2747
|
-
/**
|
|
2748
|
-
* iOS HealthKit 通用入参(权限申请、数据读写)
|
|
2749
|
-
* @since HealthKit 5.18.0
|
|
2750
|
-
*/
|
|
2805
|
+
/** @since HealthKit 5.18.0 */
|
|
2751
2806
|
export interface ParamModel {
|
|
2752
2807
|
/**
|
|
2753
2808
|
* 权限类型(申请读写权限的接口使用),具体枚举值查看下文的枚举列表
|
|
@@ -2773,7 +2828,7 @@ declare namespace ty.health {
|
|
|
2773
2828
|
*/
|
|
2774
2829
|
writePermission?: number
|
|
2775
2830
|
/**
|
|
2776
|
-
*
|
|
2831
|
+
* 写入值
|
|
2777
2832
|
* @since HealthKit 5.18.3
|
|
2778
2833
|
*/
|
|
2779
2834
|
value?: number
|
|
@@ -2800,59 +2855,52 @@ declare namespace ty.health {
|
|
|
2800
2855
|
type?: number
|
|
2801
2856
|
}
|
|
2802
2857
|
|
|
2803
|
-
/**
|
|
2804
|
-
* 授权状态查询结果
|
|
2805
|
-
* @since HealthKit 5.18.4
|
|
2806
|
-
*/
|
|
2858
|
+
/** @since HealthKit 5.18.4 */
|
|
2807
2859
|
export interface StatusPermissionsResp {
|
|
2808
2860
|
/**
|
|
2809
|
-
*
|
|
2861
|
+
* 1 代表传入的类型都申请过对应的读写权限
|
|
2862
|
+
* 0 代表传入的类型至少有一个没有请求过对应的读写权限
|
|
2810
2863
|
* @since HealthKit 5.18.4
|
|
2811
2864
|
*/
|
|
2812
2865
|
value: number
|
|
2813
2866
|
}
|
|
2814
2867
|
|
|
2815
|
-
/**
|
|
2816
|
-
* 写入权限查询结果
|
|
2817
|
-
* @since HealthKit 5.18.4
|
|
2818
|
-
*/
|
|
2868
|
+
/** @since HealthKit 5.18.4 */
|
|
2819
2869
|
export interface GetWritePermissionResp {
|
|
2820
2870
|
/**
|
|
2821
|
-
*
|
|
2871
|
+
* 1 有写入权限
|
|
2872
|
+
* 0 无写入权限
|
|
2822
2873
|
* @since HealthKit 5.18.4
|
|
2823
2874
|
*/
|
|
2824
2875
|
value: number
|
|
2825
2876
|
}
|
|
2826
2877
|
|
|
2827
|
-
/**
|
|
2828
|
-
* iOS 多类型健康数据组合入参(Quantity / Category / Characteristic)
|
|
2829
|
-
* @since HealthKit 7.1.5
|
|
2830
|
-
*/
|
|
2878
|
+
/** @since HealthKit 7.1.5 */
|
|
2831
2879
|
export interface IOSParamModel {
|
|
2832
2880
|
/**
|
|
2833
|
-
*
|
|
2881
|
+
* quantity类型的参数
|
|
2834
2882
|
* @since HealthKit 7.1.5
|
|
2835
2883
|
*/
|
|
2836
2884
|
quantityParam?: ParamModel
|
|
2837
2885
|
/**
|
|
2838
|
-
*
|
|
2886
|
+
* category类型的参数
|
|
2839
2887
|
* @since HealthKit 7.1.5
|
|
2840
2888
|
*/
|
|
2841
2889
|
categoryParam?: ParamModel
|
|
2842
2890
|
/**
|
|
2843
|
-
*
|
|
2891
|
+
* characteristic类型的参数
|
|
2844
2892
|
* @since HealthKit 7.1.5
|
|
2845
2893
|
*/
|
|
2846
2894
|
characteristicParam?: ParamModel
|
|
2847
2895
|
/**
|
|
2848
|
-
*
|
|
2896
|
+
* 运动记录
|
|
2849
2897
|
* @since HealthKit 7.1.5
|
|
2850
2898
|
*/
|
|
2851
2899
|
workoutType: boolean
|
|
2852
2900
|
}
|
|
2853
2901
|
|
|
2854
2902
|
/**
|
|
2855
|
-
*
|
|
2903
|
+
* 同步到hiOS HealthKit的数据
|
|
2856
2904
|
* @since HealthKit 7.1.5
|
|
2857
2905
|
*/
|
|
2858
2906
|
export interface RecordIOSParams {
|
|
@@ -2890,10 +2938,10 @@ declare namespace ty.health {
|
|
|
2890
2938
|
endTime: number
|
|
2891
2939
|
}
|
|
2892
2940
|
|
|
2893
|
-
/**
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2941
|
+
/** @since HealthKit 5.18.4 */
|
|
2942
|
+
export interface Object {}
|
|
2943
|
+
|
|
2944
|
+
/** @since HealthKit 5.18.4 */
|
|
2897
2945
|
export interface ReadDataResp {
|
|
2898
2946
|
/**
|
|
2899
2947
|
* 读取到的数据,是一个数组,数组中每一项是一个字典,具体定义如下
|
|
@@ -2902,139 +2950,133 @@ declare namespace ty.health {
|
|
|
2902
2950
|
* endDate: Double 读取到的条目的截止时间戳
|
|
2903
2951
|
* @since HealthKit 5.18.4
|
|
2904
2952
|
*/
|
|
2905
|
-
value:
|
|
2953
|
+
value: Object[]
|
|
2906
2954
|
}
|
|
2907
2955
|
|
|
2908
|
-
/**
|
|
2909
|
-
* 体脂秤算法计算入参
|
|
2910
|
-
* @since HealthKit 6.5.0
|
|
2911
|
-
*/
|
|
2956
|
+
/** @since HealthKit 5.18.6 */
|
|
2912
2957
|
export interface BodyScaleParam {
|
|
2913
2958
|
/**
|
|
2914
|
-
*
|
|
2915
|
-
* @since HealthKit
|
|
2959
|
+
* 性别(1-男、2-女)
|
|
2960
|
+
* @since HealthKit 5.18.6
|
|
2916
2961
|
*/
|
|
2917
2962
|
sex: number
|
|
2918
2963
|
/**
|
|
2919
2964
|
* 体重(单位kg)
|
|
2920
|
-
* @since HealthKit
|
|
2965
|
+
* @since HealthKit 5.18.6
|
|
2921
2966
|
*/
|
|
2922
2967
|
weight: number
|
|
2923
2968
|
/**
|
|
2924
2969
|
* 阻抗
|
|
2925
|
-
* @since HealthKit
|
|
2970
|
+
* @since HealthKit 5.18.6
|
|
2926
2971
|
*/
|
|
2927
2972
|
imp: number
|
|
2928
2973
|
/**
|
|
2929
2974
|
* 身高(单位cm)
|
|
2930
|
-
* @since HealthKit
|
|
2975
|
+
* @since HealthKit 5.18.6
|
|
2931
2976
|
*/
|
|
2932
2977
|
height: number
|
|
2933
2978
|
/**
|
|
2934
2979
|
* 生日(13位、毫秒)
|
|
2935
|
-
* @since HealthKit
|
|
2980
|
+
* @since HealthKit 5.18.6
|
|
2936
2981
|
*/
|
|
2937
2982
|
birthday: number
|
|
2938
2983
|
/**
|
|
2939
2984
|
* 测量时间(13位、毫秒)
|
|
2940
|
-
* @since HealthKit
|
|
2985
|
+
* @since HealthKit 5.18.6
|
|
2941
2986
|
*/
|
|
2942
2987
|
time: number
|
|
2943
2988
|
}
|
|
2944
2989
|
|
|
2945
|
-
/**
|
|
2946
|
-
* 体脂秤算法计算结果
|
|
2947
|
-
* @since HealthKit 6.5.0
|
|
2948
|
-
*/
|
|
2990
|
+
/** @since HealthKit 5.18.6 */
|
|
2949
2991
|
export interface BodyScaleResponse {
|
|
2950
2992
|
/**
|
|
2951
2993
|
* bmi
|
|
2952
|
-
* @since HealthKit
|
|
2994
|
+
* @since HealthKit 5.18.6
|
|
2953
2995
|
*/
|
|
2954
2996
|
bmi: string
|
|
2955
2997
|
/**
|
|
2956
2998
|
* 体脂率
|
|
2957
|
-
* @since HealthKit
|
|
2999
|
+
* @since HealthKit 5.18.6
|
|
2958
3000
|
*/
|
|
2959
3001
|
fat: string
|
|
2960
3002
|
/**
|
|
2961
3003
|
* 水份率
|
|
2962
|
-
* @since HealthKit
|
|
3004
|
+
* @since HealthKit 5.18.6
|
|
2963
3005
|
*/
|
|
2964
3006
|
water: string
|
|
2965
3007
|
/**
|
|
2966
3008
|
* 肌肉量
|
|
2967
|
-
* @since HealthKit
|
|
3009
|
+
* @since HealthKit 5.18.6
|
|
2968
3010
|
*/
|
|
2969
3011
|
muscle: string
|
|
2970
3012
|
/**
|
|
2971
3013
|
* 蛋白率
|
|
2972
|
-
* @since HealthKit
|
|
3014
|
+
* @since HealthKit 5.18.6
|
|
2973
3015
|
*/
|
|
2974
3016
|
protein: string
|
|
2975
3017
|
/**
|
|
2976
3018
|
* 骨量
|
|
2977
|
-
* @since HealthKit
|
|
3019
|
+
* @since HealthKit 5.18.6
|
|
2978
3020
|
*/
|
|
2979
3021
|
bones: string
|
|
2980
3022
|
/**
|
|
2981
3023
|
* 基础代谢率
|
|
2982
|
-
* @since HealthKit
|
|
3024
|
+
* @since HealthKit 5.18.6
|
|
2983
3025
|
*/
|
|
2984
3026
|
metabolism: string
|
|
2985
3027
|
/**
|
|
2986
3028
|
* 身体年龄
|
|
2987
|
-
* @since HealthKit
|
|
3029
|
+
* @since HealthKit 5.18.6
|
|
2988
3030
|
*/
|
|
2989
3031
|
bodyAge: string
|
|
2990
3032
|
/**
|
|
2991
3033
|
* 身体得分
|
|
2992
|
-
* @since HealthKit
|
|
3034
|
+
* @since HealthKit 5.18.6
|
|
2993
3035
|
*/
|
|
2994
3036
|
bodyScore: string
|
|
2995
3037
|
/**
|
|
2996
3038
|
* 内脂肪等级
|
|
2997
|
-
* @since HealthKit
|
|
3039
|
+
* @since HealthKit 5.18.6
|
|
2998
3040
|
*/
|
|
2999
3041
|
visceralFat: string
|
|
3000
3042
|
/**
|
|
3001
3043
|
* 体型
|
|
3002
|
-
* @since HealthKit
|
|
3044
|
+
* @since HealthKit 5.18.6
|
|
3003
3045
|
*/
|
|
3004
3046
|
bodyType: string
|
|
3005
3047
|
/**
|
|
3006
3048
|
* 去脂指数
|
|
3007
|
-
* @since HealthKit
|
|
3049
|
+
* @since HealthKit 5.18.6
|
|
3008
3050
|
*/
|
|
3009
3051
|
ffm: string
|
|
3010
3052
|
/**
|
|
3011
3053
|
* 脂肪量
|
|
3012
|
-
* @since HealthKit
|
|
3054
|
+
* @since HealthKit 5.18.6
|
|
3013
3055
|
*/
|
|
3014
3056
|
fatMass: string
|
|
3015
3057
|
/**
|
|
3016
3058
|
* 体脂指数
|
|
3017
|
-
* @since HealthKit
|
|
3059
|
+
* @since HealthKit 5.18.6
|
|
3018
3060
|
*/
|
|
3019
3061
|
bodyFatIndex: string
|
|
3020
3062
|
/**
|
|
3021
3063
|
* 肥胖等级
|
|
3022
|
-
* @since HealthKit
|
|
3064
|
+
* @since HealthKit 5.18.6
|
|
3023
3065
|
*/
|
|
3024
3066
|
fatLevel: string
|
|
3025
3067
|
/**
|
|
3026
3068
|
* 标准体重
|
|
3027
|
-
* @since HealthKit
|
|
3069
|
+
* @since HealthKit 5.18.6
|
|
3028
3070
|
*/
|
|
3029
3071
|
standardWeight: string
|
|
3030
3072
|
/**
|
|
3031
3073
|
* 体重控制
|
|
3032
|
-
* @since HealthKit
|
|
3074
|
+
* @since HealthKit 5.18.6
|
|
3033
3075
|
*/
|
|
3034
3076
|
weightControl: string
|
|
3035
3077
|
/**
|
|
3036
3078
|
* 肌肉率
|
|
3037
|
-
* @since HealthKit
|
|
3079
|
+
* @since HealthKit 5.18.6
|
|
3038
3080
|
*/
|
|
3039
3081
|
muscleRatio: string
|
|
3040
3082
|
}
|
|
@@ -3115,14 +3157,14 @@ declare namespace ty.health {
|
|
|
3115
3157
|
*/
|
|
3116
3158
|
export interface HealthDataLocalRequest {
|
|
3117
3159
|
/**
|
|
3118
|
-
*
|
|
3160
|
+
* 返回结果
|
|
3119
3161
|
* @since HealthKit 7.0.5
|
|
3120
3162
|
*/
|
|
3121
3163
|
result: string
|
|
3122
3164
|
}
|
|
3123
3165
|
|
|
3124
3166
|
/**
|
|
3125
|
-
* 健康
|
|
3167
|
+
* 健康AI小程序本地化数据库信息获取和存储逻辑入参配置
|
|
3126
3168
|
* @since HealthKit 7.1.5
|
|
3127
3169
|
*/
|
|
3128
3170
|
export interface AIHealthDataParams {
|
|
@@ -3139,34 +3181,35 @@ declare namespace ty.health {
|
|
|
3139
3181
|
}
|
|
3140
3182
|
|
|
3141
3183
|
/**
|
|
3142
|
-
* 健康
|
|
3184
|
+
* 健康AI小程序本地化数据库信息获取和存储逻辑返回结果
|
|
3143
3185
|
* @since HealthKit 7.1.5
|
|
3144
3186
|
*/
|
|
3145
3187
|
export interface AIHealthDataRequest {
|
|
3146
3188
|
/**
|
|
3147
|
-
*
|
|
3189
|
+
* 返回结果
|
|
3148
3190
|
* @since HealthKit 7.1.5
|
|
3149
3191
|
*/
|
|
3150
3192
|
result?: string
|
|
3151
3193
|
/**
|
|
3152
|
-
*
|
|
3194
|
+
* 时间戳
|
|
3153
3195
|
* @since HealthKit 7.1.5
|
|
3154
3196
|
*/
|
|
3155
3197
|
t: number
|
|
3156
3198
|
/**
|
|
3157
|
-
*
|
|
3199
|
+
* 是否成功
|
|
3158
3200
|
* @since HealthKit 7.1.5
|
|
3159
3201
|
*/
|
|
3160
3202
|
success: boolean
|
|
3161
3203
|
}
|
|
3162
3204
|
|
|
3163
|
-
/**
|
|
3164
|
-
* Health Connect 状态码说明(与 getHealthConnectStatus、checkHealthConnectReadStatus 返回值对应)
|
|
3165
|
-
* @since HealthKit 5.18.4
|
|
3166
|
-
*/
|
|
3205
|
+
/** @since HealthKit 5.18.4 */
|
|
3167
3206
|
export interface HealthConnectStatusCode {
|
|
3168
3207
|
/**
|
|
3169
|
-
*
|
|
3208
|
+
* -2 服务不可用(需要提示用户去更改自启动和电源管理),建议面板收到-2直接跳转到授权页。授权页做弹窗提示
|
|
3209
|
+
* -1 Health Connect不可用/不支持]
|
|
3210
|
+
* 0 已授权
|
|
3211
|
+
* 1 未安装Health Connect
|
|
3212
|
+
* 2 未授权
|
|
3170
3213
|
* @since HealthKit 5.18.4
|
|
3171
3214
|
*/
|
|
3172
3215
|
value: number
|