StepsType

The data type for getting the total number of steps that a user takes.

The Samsung Health's step data can be collected from the following devices:

  • The Samsung Health installed smartphone

  • The connected wearable device such as Galaxy Watch, Galaxy Fit, or Galaxy Ring

For example, when a smartphone and a Galaxy Watch are used together, the Samsung Health collects step data from both devices, summarizes the step data without duplicating steps, and provides a comprehensive total number of steps representing all steps. All steps can be found in the Samsung Health's Pedometer tracker.

Predefined instance

Using the following instance allows for obtaining total steps with more concise code.

Available aggregate operation

  • TOTAL
    : To get the total number of steps.

Required permission

The user's consent is required to access this data type. Check the granted permissions and request permissions if the required permission is not granted yet with:

See a code example in here. The StepsType provides read-only access.

Available requests

Since

1.0.0

See also

Types

Link copied to clipboard
object Companion

Preferences Submitted

You have successfully updated your cookie preferences.