Skip to content

Modules.CoreMotion.CoreMotionPedometerDataWithSuccess

Dictionary passed to the callback of the Pedometer.startPedometerUpdates() and Pedometer.queryPedometerData() methods.

Extends: CoreMotionDeviceMotionData · Since: 5.2.0 · Platforms: iphone, ipad

Properties #

code#

Type: Number

An error code describing the error if there was one.

See ERROR constants for possible values.

currentCadence#

Type: Number

The rate at which steps are taken, measured in steps per second.
Note: This property is only available on iOS 9 and later.

currentPace#

Type: Number

The current pace of the user, measured in seconds per meter.
Note: This property is only available on iOS 9 and later.

distance#

Type: Number

The estimated distance (in meters) traveled by the user.

endDate#

Type: Date

The end time for the pedometer data.

error#

Type: String

An error message describing the error if there was one.

floorsAscended#

Type: Number

The approximate number of floors ascended by walking.

floorsDescended#

Type: Number

The approximate number of floors descended by walking.

numberOfSteps#

Type: Number

The number of steps taken by the user.

startDate#

Type: Date

The start time for the pedometer data.

success#

Type: Boolean

A Boolean indicating if the operation was successful or not.

Titanium SDK Documentation