Body Provider

The Body Provider reads the current body metrics from the sensors and delivers them in their respective units. It includes accuracy reporting so you can tell whether the reading is reliable.
Currently the step counter and heartrate sensor are supported.

Configuration

  • Sensor Selection
    Selects the sensor type.
    In the moment the step counter and heartrate sensor are the only public accessible sensors.

    Sensor Description

    Step Counter

    Step counter sensor which counts the number of daily steps, resets at midnight

    Heartrate

    Heartrate sensor which measures the current heart rate in beats per minute

    Caution
    The Heartrate sensor measures the heart rate continuously which leads to excessive battery consumption. Please use it with care and only when necessary.
    It’s better to use the heart rate of the Health provider which acts as a system‑level broker between apps and sensors. It automatically chooses the lowest‑power sampling mode.
Important
The Body Provider needs the body sensors permission to work.

Query

  • Value
    The actual body metric value in its respective unit.

  • Status
    Get the heartbeat sensor accuracy.

    Text Numeric Description

    N/A

    0

    Sensor is not yet available (init) or permission is missing

    Excellent

    1

    Sensor accuracy is high

    Fair

    3

    Sensor accuracy is medium

    Poor

    4

    Sensor accuracy is low

    Fail

    5

    Sensor value is unreliable