Skip to content

Commit bf7e8bd

Browse files
committed
updated readme to reflect the correct API refrence
1 parent ed4fadb commit bf7e8bd

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -198,18 +198,27 @@ Run `npx pod-install` after installing the npm package.
198198

199199
## API Reference
200200

201-
### `startTracking(): Promise<string>`
201+
### `startTracking(): Promise<TrackingStatus>`
202202
Starts real-time tracking of motion activity. Returns a promise that resolves to the initial motion state.
203203

204-
### `stopTracking(): string`
204+
### `stopTracking(): Promise<TrackingStatus>`
205205
Stops the real-time motion tracking.
206206

207-
### `addMotionStateChangeListener(listener: (event: MotionStateChangeEvent) => void): Subscription`
207+
### `addMotionStateChangeListener(listener: (event: EventPayload) => void): Subscription`
208208
Adds a listener to receive updates when the motion state changes.
209209

210-
### `getHistoricalData(startDate: Date, endDate: Date): Promise<HistoricalActivity[]>`
210+
### `getHistoricalDataIos(startDate: Date, endDate: Date): Promise<HistoricalActivity[]>`
211211
Fetches historical activity data for the given date range.
212212

213+
### `getPermissionStatusAsync(): Promise<PermissionStatus>`
214+
Checks the current motion activity permission status for iOS.
215+
216+
### `requestPermissionsAsyncAndroid(): Promise<PermissionStatus>`
217+
Requests motion activity permissions for Android devices.
218+
219+
### `isGooglePlayServicesAvailable: boolean`
220+
Indicates whether Google Play Services are available on the current Android device.
221+
213222
### `checkMotionActivityAuthStatus(): Promise<MotionActivityAuthStatus>`
214223
Checks the motion activity authorization status. Returns one of the following statuses:
215224

0 commit comments

Comments
 (0)