saveBloodPressureData(params: Object)
Requires:
HealthKit≥5.18.0@ray-js/ray≥1.6.17
Platforms:
iOS
Description
Write blood pressure data (systolic, diastolic, and start/end times) [iOS only]
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
systolic | number | Yes | Systolic |
diastolic | number | Yes | Diastolic |
startTime | number | Yes | Start time, timestamp in seconds |
endTime | number | Yes | End time, timestamp in seconds |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
1 | AppleHealthParamsError |
2 | AppleHealthNoPermission |