Pedometer

Non-Visible component
Category Requires Version
Sensors API 19, Android 4.4 - 4.4.4 KitKat 3

Overview

A Component that acts like a Pedometer. It senses motion via the Accerleromter and attempts to determine if a step has been taken. Using a configurable stride length, it can estimate the distance traveled as well.

Events

Calibration Failed

⚠ Deprecated

deprecated

GPS Available

⚠ Deprecated

deprecated

GPS Lost

⚠ Deprecated

deprecated

Simple Step

This event is run when a raw step is detected

Params
simple Steps Number
distance Number

Started Moving

⚠ Deprecated

deprecated

Stopped Moving

⚠ Deprecated

deprecated

Walk Step

This event is run when a walking step is detected. A walking step is a step that appears to be involved in forward motion.

Params
walk Steps Number
distance Number

Methods

Pause

⚠ Deprecated

Pause counting of steps and distance.

Reset

Resets the step counter, distance measure and time running.

Resume

⚠ Deprecated

Resumes counting, synonym of Start.

Save

Saves the pedometer state to the phone. Permits permits accumulation of steps and distance between invocations of an App that uses the pedometer. Different Apps will have their own saved state.

Start

Start counting steps

Stop

Stop counting steps

Properties

Calibrate Stride Length

⚠ Deprecated

Boolean ➖ Read Write - Blocks

deprecated

Distance

Number ➖ Read - Blocks

The approximate distance traveled in meters.

Elapsed Time

Number ➖ Read - Blocks

Time elapsed in milliseconds since the pedometer was started.

Moving

⚠ Deprecated

Boolean ➖ Read - Blocks

deprecated

Simple Steps

Number ➖ Read - Blocks

The number of simple steps taken since the pedometer has started.

Stop Detection Timeout

Number Default: 2000 ➖ Read Write - Designer Blocks

The duration in milliseconds of idleness (no steps detected) after which to go into a "stopped" state

Stride Length

Number Default: 0.73 ➖ Read Write - Designer Blocks

Set the average stride length in meters.

Use GPS

⚠ Deprecated

Boolean ➖ Write - Blocks

Walk Steps

Number ➖ Read - Blocks

the number of walk steps taken since the pedometer has started.


Last update: January 27, 2020