File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 > `
202202Starts real-time tracking of motion activity. Returns a promise that resolves to the initial motion state.
203203
204- ### ` stopTracking(): string `
204+ ### ` stopTracking(): Promise<TrackingStatus> `
205205Stops the real-time motion tracking.
206206
207- ### ` addMotionStateChangeListener(listener: (event: MotionStateChangeEvent ) => void): Subscription `
207+ ### ` addMotionStateChangeListener(listener: (event: EventPayload ) => void): Subscription `
208208Adds 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[]>`
211211Fetches 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> `
214223Checks the motion activity authorization status. Returns one of the following statuses:
215224
You can’t perform that action at this time.
0 commit comments