Skip to main content
Version: v3

addHealthData

Start from API_LEVEL 3.0 . Please refer to API_LEVEL.

Set user health data information.

info

permission code: data:user.health

Type

function addHealthData(option: Option): Result

Parameters

Option

PropertyTypeRequiredDefaultValueDescriptionAPI_LEVEL
weightnumberY-Weight, in g3.0
bminumberY-100 times the value of BMI3.0

Result

TypeDescription
booleanundefined

Example

import { addHealthData } from '@zos/user'

addHealthData({
weight: 65,
bmi: 1900,
})