0.0.6 • Published 8 months ago

capacitor-pedometer v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

pedometer

Provides access to the pedometer API on iOS and Android.

Install

npm install pedometer
npx cap sync

API

start()

start() => Promise<void>

stop()

stop() => Promise<void>

isAvailable()

isAvailable() => Promise<{ available: boolean; }>

Returns: Promise<{ available: boolean; }>


getStepCount()

getStepCount() => Promise<{ steps: number; }>

Returns: Promise<{ steps: number; }>


checkPermissions()

checkPermissions() => Promise<PermissionState>

Returns: Promise<PermissionState>


requestPermissions()

requestPermissions() => Promise<void>

Type Aliases

PermissionState

'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago