# CoreMotionPedometerDataWithSuccess

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

Availability
5.2.0

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# attitude READONLY

Availability
5.2.0
attitude :CoreMotionAttitude

The attitude of the device.


# code READONLY

Availability
5.2.0
code :Number

An error code describing the error if there was one.

See ERROR constants for possible values.


# currentCadence READONLY

Availability
5.2.0
currentCadence :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 READONLY

Availability
5.2.0
currentPace :Number

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


# distance READONLY

Availability
5.2.0
distance :Number

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


# endDate READONLY

Availability
5.2.0
endDate :Date

The end time for the pedometer data.


# error READONLY

Availability
5.2.0
error :String

An error message describing the error if there was one.


# floorsAscended READONLY

Availability
5.2.0
floorsAscended :Number

The approximate number of floors ascended by walking.


# floorsDescended READONLY

Availability
5.2.0
floorsDescended :Number

The approximate number of floors descended by walking.


# gravity READONLY

Availability
5.2.0

The gravity acceleration vector expressed in the device's reference frame.


# heading READONLY

Availability
8.3.0
heading :Number

Returns heading angle in the range [0,360) degrees with respect to the attitude-reference-frame.


# magneticField READONLY

Availability
5.2.0

Returns the magnetic field vector with respect to the device.


# numberOfSteps READONLY

Availability
5.2.0
numberOfSteps :Number

The number of steps taken by the user.


# rotationRate READONLY

Availability
5.2.0
rotationRate :CoreMotionRotationRate

The roation rate of the device.


# startDate READONLY

Availability
5.2.0
startDate :Date

The start time for the pedometer data.


# success READONLY

Availability
5.2.0
success :Boolean

A Boolean indicating if the operation was successful or not.


# timestamp READONLY

Availability
5.2.0
timestamp :Number

The time when the logged item is valid.

The time stamp is the amount of time in milliseconds since the phone booted.


# userAcceleration READONLY

Availability
5.2.0
userAcceleration :CoreMotionAcceleration

The acceleration that the user is giving to the device.