Skip to content

@capgo/capacitor-pedometer

Capacitor plugin for accessing pedometer data including steps, distance, pace, cadence, and floors.

Capacitor plugin for accessing pedometer data including steps, distance, pace, cadence, and floors.

  • getMeasurement - Get pedometer measurements for a specified time range.
  • isAvailable - Check which pedometer features are available on this device.
  • startMeasurementUpdates - Start receiving real-time pedometer measurement updates.
  • stopMeasurementUpdates - Stop receiving real-time pedometer measurement updates.
MethodDescription
getMeasurementGet pedometer measurements for a specified time range.
isAvailableCheck which pedometer features are available on this device.
startMeasurementUpdatesStart receiving real-time pedometer measurement updates.
stopMeasurementUpdatesStop receiving real-time pedometer measurement updates.
checkPermissionsCheck permission to access pedometer data.
requestPermissionsRequest permission to access pedometer data.
addListenerCalled when a new pedometer measurement is received.
removeAllListenersRemove all listeners for this plugin.
getPluginVersionGet the native Capacitor plugin version.

This reference is synced from src/definitions.ts in capacitor-pedometer.

Keep going from @capgo/capacitor-pedometer

Section titled “Keep going from @capgo/capacitor-pedometer”

If you are using @capgo/capacitor-pedometer to plan native plugin work, connect it with Using @capgo/capacitor-pedometer for the native capability in Using @capgo/capacitor-pedometer, Capgo Plugin Directory for the product workflow in Capgo Plugin Directory, Capacitor Plugins by Capgo for the implementation detail in Capacitor Plugins by Capgo, Adding or Updating Plugins for the implementation detail in Adding or Updating Plugins, and Ionic Enterprise Plugin Alternatives for the product workflow in Ionic Enterprise Plugin Alternatives.