@capgo/capacitor-pedometer 7.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/docs.json ADDED
@@ -0,0 +1,455 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorPedometerPlugin",
4
+ "slug": "capacitorpedometerplugin",
5
+ "docs": "",
6
+ "tags": [],
7
+ "methods": [
8
+ {
9
+ "name": "getMeasurement",
10
+ "signature": "(options?: GetMeasurementOptions | undefined) => Promise<Measurement>",
11
+ "parameters": [
12
+ {
13
+ "name": "options",
14
+ "docs": "",
15
+ "type": "GetMeasurementOptions | undefined"
16
+ }
17
+ ],
18
+ "returns": "Promise<Measurement>",
19
+ "tags": [
20
+ {
21
+ "name": "since",
22
+ "text": "0.0.1"
23
+ }
24
+ ],
25
+ "docs": "Get pedometer measurements for a specified time range.",
26
+ "complexTypes": [
27
+ "Measurement",
28
+ "GetMeasurementOptions"
29
+ ],
30
+ "slug": "getmeasurement"
31
+ },
32
+ {
33
+ "name": "isAvailable",
34
+ "signature": "() => Promise<IsAvailableResult>",
35
+ "parameters": [],
36
+ "returns": "Promise<IsAvailableResult>",
37
+ "tags": [
38
+ {
39
+ "name": "since",
40
+ "text": "0.0.1"
41
+ }
42
+ ],
43
+ "docs": "Check which pedometer features are available on this device.",
44
+ "complexTypes": [
45
+ "IsAvailableResult"
46
+ ],
47
+ "slug": "isavailable"
48
+ },
49
+ {
50
+ "name": "startMeasurementUpdates",
51
+ "signature": "() => Promise<void>",
52
+ "parameters": [],
53
+ "returns": "Promise<void>",
54
+ "tags": [
55
+ {
56
+ "name": "since",
57
+ "text": "0.0.1"
58
+ }
59
+ ],
60
+ "docs": "Start receiving real-time pedometer measurement updates.\n\nOn **Android** and **iOS**, the `measurement` event is only fired after calling `startMeasurementUpdates()`.",
61
+ "complexTypes": [],
62
+ "slug": "startmeasurementupdates"
63
+ },
64
+ {
65
+ "name": "stopMeasurementUpdates",
66
+ "signature": "() => Promise<void>",
67
+ "parameters": [],
68
+ "returns": "Promise<void>",
69
+ "tags": [
70
+ {
71
+ "name": "since",
72
+ "text": "0.0.1"
73
+ }
74
+ ],
75
+ "docs": "Stop receiving real-time pedometer measurement updates.",
76
+ "complexTypes": [],
77
+ "slug": "stopmeasurementupdates"
78
+ },
79
+ {
80
+ "name": "checkPermissions",
81
+ "signature": "() => Promise<PermissionStatus>",
82
+ "parameters": [],
83
+ "returns": "Promise<PermissionStatus>",
84
+ "tags": [
85
+ {
86
+ "name": "since",
87
+ "text": "0.0.1"
88
+ }
89
+ ],
90
+ "docs": "Check permission to access pedometer data.\n\nOn **Android**, this checks the `ACTIVITY_RECOGNITION` permission.\nOn **iOS**, this checks the motion usage permission.",
91
+ "complexTypes": [
92
+ "PermissionStatus"
93
+ ],
94
+ "slug": "checkpermissions"
95
+ },
96
+ {
97
+ "name": "requestPermissions",
98
+ "signature": "() => Promise<PermissionStatus>",
99
+ "parameters": [],
100
+ "returns": "Promise<PermissionStatus>",
101
+ "tags": [
102
+ {
103
+ "name": "since",
104
+ "text": "0.0.1"
105
+ }
106
+ ],
107
+ "docs": "Request permission to access pedometer data.\n\nOn **Android**, this requests the `ACTIVITY_RECOGNITION` permission.\nOn **iOS**, this requests motion usage permission.",
108
+ "complexTypes": [
109
+ "PermissionStatus"
110
+ ],
111
+ "slug": "requestpermissions"
112
+ },
113
+ {
114
+ "name": "addListener",
115
+ "signature": "(eventName: 'measurement', listenerFunc: (event: MeasurementEvent) => void) => Promise<PluginListenerHandle>",
116
+ "parameters": [
117
+ {
118
+ "name": "eventName",
119
+ "docs": "",
120
+ "type": "'measurement'"
121
+ },
122
+ {
123
+ "name": "listenerFunc",
124
+ "docs": "",
125
+ "type": "(event: Measurement) => void"
126
+ }
127
+ ],
128
+ "returns": "Promise<PluginListenerHandle>",
129
+ "tags": [
130
+ {
131
+ "name": "since",
132
+ "text": "0.0.1"
133
+ }
134
+ ],
135
+ "docs": "Called when a new pedometer measurement is received.",
136
+ "complexTypes": [
137
+ "PluginListenerHandle",
138
+ "MeasurementEvent"
139
+ ],
140
+ "slug": "addlistenermeasurement-"
141
+ },
142
+ {
143
+ "name": "removeAllListeners",
144
+ "signature": "() => Promise<void>",
145
+ "parameters": [],
146
+ "returns": "Promise<void>",
147
+ "tags": [
148
+ {
149
+ "name": "since",
150
+ "text": "0.0.1"
151
+ }
152
+ ],
153
+ "docs": "Remove all listeners for this plugin.",
154
+ "complexTypes": [],
155
+ "slug": "removealllisteners"
156
+ }
157
+ ],
158
+ "properties": []
159
+ },
160
+ "interfaces": [
161
+ {
162
+ "name": "Measurement",
163
+ "slug": "measurement",
164
+ "docs": "",
165
+ "tags": [
166
+ {
167
+ "text": "0.0.1",
168
+ "name": "since"
169
+ }
170
+ ],
171
+ "methods": [],
172
+ "properties": [
173
+ {
174
+ "name": "numberOfSteps",
175
+ "tags": [
176
+ {
177
+ "text": "0.0.1",
178
+ "name": "since"
179
+ }
180
+ ],
181
+ "docs": "The number of steps taken by the user.",
182
+ "complexTypes": [],
183
+ "type": "number | undefined"
184
+ },
185
+ {
186
+ "name": "distance",
187
+ "tags": [
188
+ {
189
+ "text": "0.0.1",
190
+ "name": "since"
191
+ }
192
+ ],
193
+ "docs": "The estimated distance (in meters) traveled by the user.\n\nOnly available on **iOS**.",
194
+ "complexTypes": [],
195
+ "type": "number | undefined"
196
+ },
197
+ {
198
+ "name": "floorsAscended",
199
+ "tags": [
200
+ {
201
+ "text": "0.0.1",
202
+ "name": "since"
203
+ }
204
+ ],
205
+ "docs": "The approximate number of floors ascended.\n\nOnly available on **iOS**.",
206
+ "complexTypes": [],
207
+ "type": "number | undefined"
208
+ },
209
+ {
210
+ "name": "floorsDescended",
211
+ "tags": [
212
+ {
213
+ "text": "0.0.1",
214
+ "name": "since"
215
+ }
216
+ ],
217
+ "docs": "The approximate number of floors descended.\n\nOnly available on **iOS**.",
218
+ "complexTypes": [],
219
+ "type": "number | undefined"
220
+ },
221
+ {
222
+ "name": "currentPace",
223
+ "tags": [
224
+ {
225
+ "text": "0.0.1",
226
+ "name": "since"
227
+ }
228
+ ],
229
+ "docs": "The current pace (in seconds per meter).\n\nOnly available on **iOS**.",
230
+ "complexTypes": [],
231
+ "type": "number | undefined"
232
+ },
233
+ {
234
+ "name": "currentCadence",
235
+ "tags": [
236
+ {
237
+ "text": "0.0.1",
238
+ "name": "since"
239
+ }
240
+ ],
241
+ "docs": "The current cadence (steps per second).\n\nOnly available on **iOS**.",
242
+ "complexTypes": [],
243
+ "type": "number | undefined"
244
+ },
245
+ {
246
+ "name": "averageActivePace",
247
+ "tags": [
248
+ {
249
+ "text": "0.0.1",
250
+ "name": "since"
251
+ }
252
+ ],
253
+ "docs": "The average active pace (in seconds per meter).\n\nOnly available on **iOS**.",
254
+ "complexTypes": [],
255
+ "type": "number | undefined"
256
+ },
257
+ {
258
+ "name": "startDate",
259
+ "tags": [
260
+ {
261
+ "text": "0.0.1",
262
+ "name": "since"
263
+ }
264
+ ],
265
+ "docs": "The start time of this measurement (milliseconds since epoch).",
266
+ "complexTypes": [],
267
+ "type": "number | undefined"
268
+ },
269
+ {
270
+ "name": "endDate",
271
+ "tags": [
272
+ {
273
+ "text": "0.0.1",
274
+ "name": "since"
275
+ }
276
+ ],
277
+ "docs": "The end time of this measurement (milliseconds since epoch).",
278
+ "complexTypes": [],
279
+ "type": "number | undefined"
280
+ }
281
+ ]
282
+ },
283
+ {
284
+ "name": "GetMeasurementOptions",
285
+ "slug": "getmeasurementoptions",
286
+ "docs": "",
287
+ "tags": [
288
+ {
289
+ "text": "0.0.1",
290
+ "name": "since"
291
+ }
292
+ ],
293
+ "methods": [],
294
+ "properties": [
295
+ {
296
+ "name": "start",
297
+ "tags": [
298
+ {
299
+ "text": "0.0.1",
300
+ "name": "since"
301
+ }
302
+ ],
303
+ "docs": "The start time for the measurement query (milliseconds since epoch).\n\nRequired on **iOS**.",
304
+ "complexTypes": [],
305
+ "type": "number | undefined"
306
+ },
307
+ {
308
+ "name": "end",
309
+ "tags": [
310
+ {
311
+ "text": "0.0.1",
312
+ "name": "since"
313
+ }
314
+ ],
315
+ "docs": "The end time for the measurement query (milliseconds since epoch).\n\nRequired on **iOS**.",
316
+ "complexTypes": [],
317
+ "type": "number | undefined"
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ "name": "IsAvailableResult",
323
+ "slug": "isavailableresult",
324
+ "docs": "",
325
+ "tags": [
326
+ {
327
+ "text": "0.0.1",
328
+ "name": "since"
329
+ }
330
+ ],
331
+ "methods": [],
332
+ "properties": [
333
+ {
334
+ "name": "stepCounting",
335
+ "tags": [
336
+ {
337
+ "text": "0.0.1",
338
+ "name": "since"
339
+ }
340
+ ],
341
+ "docs": "Whether step counting is available.",
342
+ "complexTypes": [],
343
+ "type": "boolean"
344
+ },
345
+ {
346
+ "name": "distance",
347
+ "tags": [
348
+ {
349
+ "text": "0.0.1",
350
+ "name": "since"
351
+ }
352
+ ],
353
+ "docs": "Whether distance measurement is available.\n\nOnly `true` on **iOS** devices that support distance tracking.",
354
+ "complexTypes": [],
355
+ "type": "boolean"
356
+ },
357
+ {
358
+ "name": "pace",
359
+ "tags": [
360
+ {
361
+ "text": "0.0.1",
362
+ "name": "since"
363
+ }
364
+ ],
365
+ "docs": "Whether pace measurement is available.\n\nOnly `true` on **iOS** devices that support pace tracking.",
366
+ "complexTypes": [],
367
+ "type": "boolean"
368
+ },
369
+ {
370
+ "name": "cadence",
371
+ "tags": [
372
+ {
373
+ "text": "0.0.1",
374
+ "name": "since"
375
+ }
376
+ ],
377
+ "docs": "Whether cadence measurement is available.\n\nOnly `true` on **iOS** devices that support cadence tracking.",
378
+ "complexTypes": [],
379
+ "type": "boolean"
380
+ },
381
+ {
382
+ "name": "floorCounting",
383
+ "tags": [
384
+ {
385
+ "text": "0.0.1",
386
+ "name": "since"
387
+ }
388
+ ],
389
+ "docs": "Whether floor counting is available.\n\nOnly `true` on **iOS** devices that support floor tracking.",
390
+ "complexTypes": [],
391
+ "type": "boolean"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "name": "PermissionStatus",
397
+ "slug": "permissionstatus",
398
+ "docs": "",
399
+ "tags": [
400
+ {
401
+ "text": "0.0.1",
402
+ "name": "since"
403
+ }
404
+ ],
405
+ "methods": [],
406
+ "properties": [
407
+ {
408
+ "name": "activityRecognition",
409
+ "tags": [
410
+ {
411
+ "text": "0.0.1",
412
+ "name": "since"
413
+ }
414
+ ],
415
+ "docs": "Permission state for activity recognition.\n\nOn **Android**, this is the `ACTIVITY_RECOGNITION` permission.\nOn **iOS**, this is the motion usage permission.",
416
+ "complexTypes": [],
417
+ "type": "'prompt' | 'prompt-with-rationale' | 'granted' | 'denied'"
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "name": "PluginListenerHandle",
423
+ "slug": "pluginlistenerhandle",
424
+ "docs": "",
425
+ "tags": [],
426
+ "methods": [],
427
+ "properties": [
428
+ {
429
+ "name": "remove",
430
+ "tags": [],
431
+ "docs": "",
432
+ "complexTypes": [],
433
+ "type": "() => Promise<void>"
434
+ }
435
+ ]
436
+ }
437
+ ],
438
+ "enums": [],
439
+ "typeAliases": [
440
+ {
441
+ "name": "MeasurementEvent",
442
+ "slug": "measurementevent",
443
+ "docs": "",
444
+ "types": [
445
+ {
446
+ "text": "Measurement",
447
+ "complexTypes": [
448
+ "Measurement"
449
+ ]
450
+ }
451
+ ]
452
+ }
453
+ ],
454
+ "pluginConfigs": []
455
+ }
@@ -0,0 +1,212 @@
1
+ import type { PluginListenerHandle } from '@capacitor/core';
2
+ export interface CapacitorPedometerPlugin {
3
+ /**
4
+ * Get pedometer measurements for a specified time range.
5
+ *
6
+ * @since 0.0.1
7
+ */
8
+ getMeasurement(options?: GetMeasurementOptions): Promise<Measurement>;
9
+ /**
10
+ * Check which pedometer features are available on this device.
11
+ *
12
+ * @since 0.0.1
13
+ */
14
+ isAvailable(): Promise<IsAvailableResult>;
15
+ /**
16
+ * Start receiving real-time pedometer measurement updates.
17
+ *
18
+ * On **Android** and **iOS**, the `measurement` event is only fired after calling `startMeasurementUpdates()`.
19
+ *
20
+ * @since 0.0.1
21
+ */
22
+ startMeasurementUpdates(): Promise<void>;
23
+ /**
24
+ * Stop receiving real-time pedometer measurement updates.
25
+ *
26
+ * @since 0.0.1
27
+ */
28
+ stopMeasurementUpdates(): Promise<void>;
29
+ /**
30
+ * Check permission to access pedometer data.
31
+ *
32
+ * On **Android**, this checks the `ACTIVITY_RECOGNITION` permission.
33
+ * On **iOS**, this checks the motion usage permission.
34
+ *
35
+ * @since 0.0.1
36
+ */
37
+ checkPermissions(): Promise<PermissionStatus>;
38
+ /**
39
+ * Request permission to access pedometer data.
40
+ *
41
+ * On **Android**, this requests the `ACTIVITY_RECOGNITION` permission.
42
+ * On **iOS**, this requests motion usage permission.
43
+ *
44
+ * @since 0.0.1
45
+ */
46
+ requestPermissions(): Promise<PermissionStatus>;
47
+ /**
48
+ * Called when a new pedometer measurement is received.
49
+ *
50
+ * @since 0.0.1
51
+ */
52
+ addListener(eventName: 'measurement', listenerFunc: (event: MeasurementEvent) => void): Promise<PluginListenerHandle>;
53
+ /**
54
+ * Remove all listeners for this plugin.
55
+ *
56
+ * @since 0.0.1
57
+ */
58
+ removeAllListeners(): Promise<void>;
59
+ }
60
+ /**
61
+ * @since 0.0.1
62
+ */
63
+ export interface Measurement {
64
+ /**
65
+ * The number of steps taken by the user.
66
+ *
67
+ * @since 0.0.1
68
+ */
69
+ numberOfSteps?: number;
70
+ /**
71
+ * The estimated distance (in meters) traveled by the user.
72
+ *
73
+ * Only available on **iOS**.
74
+ *
75
+ * @since 0.0.1
76
+ */
77
+ distance?: number;
78
+ /**
79
+ * The approximate number of floors ascended.
80
+ *
81
+ * Only available on **iOS**.
82
+ *
83
+ * @since 0.0.1
84
+ */
85
+ floorsAscended?: number;
86
+ /**
87
+ * The approximate number of floors descended.
88
+ *
89
+ * Only available on **iOS**.
90
+ *
91
+ * @since 0.0.1
92
+ */
93
+ floorsDescended?: number;
94
+ /**
95
+ * The current pace (in seconds per meter).
96
+ *
97
+ * Only available on **iOS**.
98
+ *
99
+ * @since 0.0.1
100
+ */
101
+ currentPace?: number;
102
+ /**
103
+ * The current cadence (steps per second).
104
+ *
105
+ * Only available on **iOS**.
106
+ *
107
+ * @since 0.0.1
108
+ */
109
+ currentCadence?: number;
110
+ /**
111
+ * The average active pace (in seconds per meter).
112
+ *
113
+ * Only available on **iOS**.
114
+ *
115
+ * @since 0.0.1
116
+ */
117
+ averageActivePace?: number;
118
+ /**
119
+ * The start time of this measurement (milliseconds since epoch).
120
+ *
121
+ * @since 0.0.1
122
+ */
123
+ startDate?: number;
124
+ /**
125
+ * The end time of this measurement (milliseconds since epoch).
126
+ *
127
+ * @since 0.0.1
128
+ */
129
+ endDate?: number;
130
+ }
131
+ /**
132
+ * @since 0.0.1
133
+ */
134
+ export interface GetMeasurementOptions {
135
+ /**
136
+ * The start time for the measurement query (milliseconds since epoch).
137
+ *
138
+ * Required on **iOS**.
139
+ *
140
+ * @since 0.0.1
141
+ */
142
+ start?: number;
143
+ /**
144
+ * The end time for the measurement query (milliseconds since epoch).
145
+ *
146
+ * Required on **iOS**.
147
+ *
148
+ * @since 0.0.1
149
+ */
150
+ end?: number;
151
+ }
152
+ /**
153
+ * @since 0.0.1
154
+ */
155
+ export interface IsAvailableResult {
156
+ /**
157
+ * Whether step counting is available.
158
+ *
159
+ * @since 0.0.1
160
+ */
161
+ stepCounting: boolean;
162
+ /**
163
+ * Whether distance measurement is available.
164
+ *
165
+ * Only `true` on **iOS** devices that support distance tracking.
166
+ *
167
+ * @since 0.0.1
168
+ */
169
+ distance: boolean;
170
+ /**
171
+ * Whether pace measurement is available.
172
+ *
173
+ * Only `true` on **iOS** devices that support pace tracking.
174
+ *
175
+ * @since 0.0.1
176
+ */
177
+ pace: boolean;
178
+ /**
179
+ * Whether cadence measurement is available.
180
+ *
181
+ * Only `true` on **iOS** devices that support cadence tracking.
182
+ *
183
+ * @since 0.0.1
184
+ */
185
+ cadence: boolean;
186
+ /**
187
+ * Whether floor counting is available.
188
+ *
189
+ * Only `true` on **iOS** devices that support floor tracking.
190
+ *
191
+ * @since 0.0.1
192
+ */
193
+ floorCounting: boolean;
194
+ }
195
+ /**
196
+ * @since 0.0.1
197
+ */
198
+ export interface PermissionStatus {
199
+ /**
200
+ * Permission state for activity recognition.
201
+ *
202
+ * On **Android**, this is the `ACTIVITY_RECOGNITION` permission.
203
+ * On **iOS**, this is the motion usage permission.
204
+ *
205
+ * @since 0.0.1
206
+ */
207
+ activityRecognition: 'prompt' | 'prompt-with-rationale' | 'granted' | 'denied';
208
+ }
209
+ /**
210
+ * @since 0.0.1
211
+ */
212
+ export type MeasurementEvent = Measurement;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=definitions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["import type { PluginListenerHandle } from '@capacitor/core';\n\nexport interface CapacitorPedometerPlugin {\n /**\n * Get pedometer measurements for a specified time range.\n *\n * @since 0.0.1\n */\n getMeasurement(options?: GetMeasurementOptions): Promise<Measurement>;\n\n /**\n * Check which pedometer features are available on this device.\n *\n * @since 0.0.1\n */\n isAvailable(): Promise<IsAvailableResult>;\n\n /**\n * Start receiving real-time pedometer measurement updates.\n *\n * On **Android** and **iOS**, the `measurement` event is only fired after calling `startMeasurementUpdates()`.\n *\n * @since 0.0.1\n */\n startMeasurementUpdates(): Promise<void>;\n\n /**\n * Stop receiving real-time pedometer measurement updates.\n *\n * @since 0.0.1\n */\n stopMeasurementUpdates(): Promise<void>;\n\n /**\n * Check permission to access pedometer data.\n *\n * On **Android**, this checks the `ACTIVITY_RECOGNITION` permission.\n * On **iOS**, this checks the motion usage permission.\n *\n * @since 0.0.1\n */\n checkPermissions(): Promise<PermissionStatus>;\n\n /**\n * Request permission to access pedometer data.\n *\n * On **Android**, this requests the `ACTIVITY_RECOGNITION` permission.\n * On **iOS**, this requests motion usage permission.\n *\n * @since 0.0.1\n */\n requestPermissions(): Promise<PermissionStatus>;\n\n /**\n * Called when a new pedometer measurement is received.\n *\n * @since 0.0.1\n */\n addListener(eventName: 'measurement', listenerFunc: (event: MeasurementEvent) => void): Promise<PluginListenerHandle>;\n\n /**\n * Remove all listeners for this plugin.\n *\n * @since 0.0.1\n */\n removeAllListeners(): Promise<void>;\n}\n\n/**\n * @since 0.0.1\n */\nexport interface Measurement {\n /**\n * The number of steps taken by the user.\n *\n * @since 0.0.1\n */\n numberOfSteps?: number;\n\n /**\n * The estimated distance (in meters) traveled by the user.\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n distance?: number;\n\n /**\n * The approximate number of floors ascended.\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n floorsAscended?: number;\n\n /**\n * The approximate number of floors descended.\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n floorsDescended?: number;\n\n /**\n * The current pace (in seconds per meter).\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n currentPace?: number;\n\n /**\n * The current cadence (steps per second).\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n currentCadence?: number;\n\n /**\n * The average active pace (in seconds per meter).\n *\n * Only available on **iOS**.\n *\n * @since 0.0.1\n */\n averageActivePace?: number;\n\n /**\n * The start time of this measurement (milliseconds since epoch).\n *\n * @since 0.0.1\n */\n startDate?: number;\n\n /**\n * The end time of this measurement (milliseconds since epoch).\n *\n * @since 0.0.1\n */\n endDate?: number;\n}\n\n/**\n * @since 0.0.1\n */\nexport interface GetMeasurementOptions {\n /**\n * The start time for the measurement query (milliseconds since epoch).\n *\n * Required on **iOS**.\n *\n * @since 0.0.1\n */\n start?: number;\n\n /**\n * The end time for the measurement query (milliseconds since epoch).\n *\n * Required on **iOS**.\n *\n * @since 0.0.1\n */\n end?: number;\n}\n\n/**\n * @since 0.0.1\n */\nexport interface IsAvailableResult {\n /**\n * Whether step counting is available.\n *\n * @since 0.0.1\n */\n stepCounting: boolean;\n\n /**\n * Whether distance measurement is available.\n *\n * Only `true` on **iOS** devices that support distance tracking.\n *\n * @since 0.0.1\n */\n distance: boolean;\n\n /**\n * Whether pace measurement is available.\n *\n * Only `true` on **iOS** devices that support pace tracking.\n *\n * @since 0.0.1\n */\n pace: boolean;\n\n /**\n * Whether cadence measurement is available.\n *\n * Only `true` on **iOS** devices that support cadence tracking.\n *\n * @since 0.0.1\n */\n cadence: boolean;\n\n /**\n * Whether floor counting is available.\n *\n * Only `true` on **iOS** devices that support floor tracking.\n *\n * @since 0.0.1\n */\n floorCounting: boolean;\n}\n\n/**\n * @since 0.0.1\n */\nexport interface PermissionStatus {\n /**\n * Permission state for activity recognition.\n *\n * On **Android**, this is the `ACTIVITY_RECOGNITION` permission.\n * On **iOS**, this is the motion usage permission.\n *\n * @since 0.0.1\n */\n activityRecognition: 'prompt' | 'prompt-with-rationale' | 'granted' | 'denied';\n}\n\n/**\n * @since 0.0.1\n */\nexport type MeasurementEvent = Measurement;\n"]}
@@ -0,0 +1,4 @@
1
+ import type { CapacitorPedometerPlugin } from './definitions';
2
+ declare const CapacitorPedometer: CapacitorPedometerPlugin;
3
+ export * from './definitions';
4
+ export { CapacitorPedometer };
@@ -0,0 +1,7 @@
1
+ import { registerPlugin } from '@capacitor/core';
2
+ const CapacitorPedometer = registerPlugin('CapacitorPedometer', {
3
+ web: () => import('./web').then((m) => new m.CapacitorPedometerWeb()),
4
+ });
5
+ export * from './definitions';
6
+ export { CapacitorPedometer };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,MAAM,kBAAkB,GAAG,cAAc,CAA2B,oBAAoB,EAAE;IACxF,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,qBAAqB,EAAE,CAAC;CACtE,CAAC,CAAC;AAEH,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import { registerPlugin } from '@capacitor/core';\n\nimport type { CapacitorPedometerPlugin } from './definitions';\n\nconst CapacitorPedometer = registerPlugin<CapacitorPedometerPlugin>('CapacitorPedometer', {\n web: () => import('./web').then((m) => new m.CapacitorPedometerWeb()),\n});\n\nexport * from './definitions';\nexport { CapacitorPedometer };\n"]}