@capgo/capacitor-ibeacon 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,542 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorIbeaconPlugin",
4
+ "slug": "capacitoribeaconplugin",
5
+ "docs": "Capacitor iBeacon Plugin - Proximity detection and beacon region monitoring.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "startMonitoringForRegion",
15
+ "signature": "(options: BeaconRegion) => Promise<void>",
16
+ "parameters": [
17
+ {
18
+ "name": "options",
19
+ "docs": "- Region to monitor",
20
+ "type": "BeaconRegion"
21
+ }
22
+ ],
23
+ "returns": "Promise<void>",
24
+ "tags": [
25
+ {
26
+ "name": "param",
27
+ "text": "options - Region to monitor"
28
+ },
29
+ {
30
+ "name": "returns",
31
+ "text": "Promise that resolves when monitoring starts"
32
+ },
33
+ {
34
+ "name": "throws",
35
+ "text": "Error if monitoring fails to start"
36
+ },
37
+ {
38
+ "name": "since",
39
+ "text": "1.0.0"
40
+ },
41
+ {
42
+ "name": "example",
43
+ "text": "```typescript\nawait CapacitorIbeacon.startMonitoringForRegion({\n identifier: 'MyBeaconRegion',\n uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D'\n});\n```"
44
+ }
45
+ ],
46
+ "docs": "Start monitoring for a beacon region. Triggers events when entering/exiting the region.",
47
+ "complexTypes": [
48
+ "BeaconRegion"
49
+ ],
50
+ "slug": "startmonitoringforregion"
51
+ },
52
+ {
53
+ "name": "stopMonitoringForRegion",
54
+ "signature": "(options: BeaconRegion) => Promise<void>",
55
+ "parameters": [
56
+ {
57
+ "name": "options",
58
+ "docs": "- Region to stop monitoring",
59
+ "type": "BeaconRegion"
60
+ }
61
+ ],
62
+ "returns": "Promise<void>",
63
+ "tags": [
64
+ {
65
+ "name": "param",
66
+ "text": "options - Region to stop monitoring"
67
+ },
68
+ {
69
+ "name": "returns",
70
+ "text": "Promise that resolves when monitoring stops"
71
+ },
72
+ {
73
+ "name": "throws",
74
+ "text": "Error if stopping monitoring fails"
75
+ },
76
+ {
77
+ "name": "since",
78
+ "text": "1.0.0"
79
+ },
80
+ {
81
+ "name": "example",
82
+ "text": "```typescript\nawait CapacitorIbeacon.stopMonitoringForRegion({\n identifier: 'MyBeaconRegion',\n uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D'\n});\n```"
83
+ }
84
+ ],
85
+ "docs": "Stop monitoring for a beacon region.",
86
+ "complexTypes": [
87
+ "BeaconRegion"
88
+ ],
89
+ "slug": "stopmonitoringforregion"
90
+ },
91
+ {
92
+ "name": "startRangingBeaconsInRegion",
93
+ "signature": "(options: BeaconRegion) => Promise<void>",
94
+ "parameters": [
95
+ {
96
+ "name": "options",
97
+ "docs": "- Region to range beacons in",
98
+ "type": "BeaconRegion"
99
+ }
100
+ ],
101
+ "returns": "Promise<void>",
102
+ "tags": [
103
+ {
104
+ "name": "param",
105
+ "text": "options - Region to range beacons in"
106
+ },
107
+ {
108
+ "name": "returns",
109
+ "text": "Promise that resolves when ranging starts"
110
+ },
111
+ {
112
+ "name": "throws",
113
+ "text": "Error if ranging fails to start"
114
+ },
115
+ {
116
+ "name": "since",
117
+ "text": "1.0.0"
118
+ },
119
+ {
120
+ "name": "example",
121
+ "text": "```typescript\nawait CapacitorIbeacon.startRangingBeaconsInRegion({\n identifier: 'MyBeaconRegion',\n uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D'\n});\n```"
122
+ }
123
+ ],
124
+ "docs": "Start ranging beacons in a region. Provides continuous distance updates.",
125
+ "complexTypes": [
126
+ "BeaconRegion"
127
+ ],
128
+ "slug": "startrangingbeaconsinregion"
129
+ },
130
+ {
131
+ "name": "stopRangingBeaconsInRegion",
132
+ "signature": "(options: BeaconRegion) => Promise<void>",
133
+ "parameters": [
134
+ {
135
+ "name": "options",
136
+ "docs": "- Region to stop ranging beacons in",
137
+ "type": "BeaconRegion"
138
+ }
139
+ ],
140
+ "returns": "Promise<void>",
141
+ "tags": [
142
+ {
143
+ "name": "param",
144
+ "text": "options - Region to stop ranging beacons in"
145
+ },
146
+ {
147
+ "name": "returns",
148
+ "text": "Promise that resolves when ranging stops"
149
+ },
150
+ {
151
+ "name": "throws",
152
+ "text": "Error if stopping ranging fails"
153
+ },
154
+ {
155
+ "name": "since",
156
+ "text": "1.0.0"
157
+ },
158
+ {
159
+ "name": "example",
160
+ "text": "```typescript\nawait CapacitorIbeacon.stopRangingBeaconsInRegion({\n identifier: 'MyBeaconRegion',\n uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D'\n});\n```"
161
+ }
162
+ ],
163
+ "docs": "Stop ranging beacons in a region.",
164
+ "complexTypes": [
165
+ "BeaconRegion"
166
+ ],
167
+ "slug": "stoprangingbeaconsinregion"
168
+ },
169
+ {
170
+ "name": "startAdvertising",
171
+ "signature": "(options: BeaconAdvertisingOptions) => Promise<void>",
172
+ "parameters": [
173
+ {
174
+ "name": "options",
175
+ "docs": "- Beacon advertising parameters",
176
+ "type": "BeaconAdvertisingOptions"
177
+ }
178
+ ],
179
+ "returns": "Promise<void>",
180
+ "tags": [
181
+ {
182
+ "name": "param",
183
+ "text": "options - Beacon advertising parameters"
184
+ },
185
+ {
186
+ "name": "returns",
187
+ "text": "Promise that resolves when advertising starts"
188
+ },
189
+ {
190
+ "name": "throws",
191
+ "text": "Error if advertising fails to start or on Android"
192
+ },
193
+ {
194
+ "name": "since",
195
+ "text": "1.0.0"
196
+ },
197
+ {
198
+ "name": "platform",
199
+ "text": "iOS"
200
+ },
201
+ {
202
+ "name": "example",
203
+ "text": "```typescript\nawait CapacitorIbeacon.startAdvertising({\n uuid: 'B9407F30-F5F8-466E-AFF9-25556B57FE6D',\n major: 1,\n minor: 2,\n identifier: 'MyBeacon'\n});\n```"
204
+ }
205
+ ],
206
+ "docs": "Start advertising the device as an iBeacon (iOS only).",
207
+ "complexTypes": [
208
+ "BeaconAdvertisingOptions"
209
+ ],
210
+ "slug": "startadvertising"
211
+ },
212
+ {
213
+ "name": "stopAdvertising",
214
+ "signature": "() => Promise<void>",
215
+ "parameters": [],
216
+ "returns": "Promise<void>",
217
+ "tags": [
218
+ {
219
+ "name": "returns",
220
+ "text": "Promise that resolves when advertising stops"
221
+ },
222
+ {
223
+ "name": "throws",
224
+ "text": "Error if stopping advertising fails"
225
+ },
226
+ {
227
+ "name": "since",
228
+ "text": "1.0.0"
229
+ },
230
+ {
231
+ "name": "platform",
232
+ "text": "iOS"
233
+ },
234
+ {
235
+ "name": "example",
236
+ "text": "```typescript\nawait CapacitorIbeacon.stopAdvertising();\n```"
237
+ }
238
+ ],
239
+ "docs": "Stop advertising the device as an iBeacon (iOS only).",
240
+ "complexTypes": [],
241
+ "slug": "stopadvertising"
242
+ },
243
+ {
244
+ "name": "requestWhenInUseAuthorization",
245
+ "signature": "() => Promise<{ status: string; }>",
246
+ "parameters": [],
247
+ "returns": "Promise<{ status: string; }>",
248
+ "tags": [
249
+ {
250
+ "name": "returns",
251
+ "text": "Promise that resolves with authorization status"
252
+ },
253
+ {
254
+ "name": "throws",
255
+ "text": "Error if request fails"
256
+ },
257
+ {
258
+ "name": "since",
259
+ "text": "1.0.0"
260
+ },
261
+ {
262
+ "name": "example",
263
+ "text": "```typescript\nconst { status } = await CapacitorIbeacon.requestWhenInUseAuthorization();\nconsole.log('Authorization status:', status);\n```"
264
+ }
265
+ ],
266
+ "docs": "Request \"When In Use\" location authorization (required for ranging/monitoring).",
267
+ "complexTypes": [],
268
+ "slug": "requestwheninuseauthorization"
269
+ },
270
+ {
271
+ "name": "requestAlwaysAuthorization",
272
+ "signature": "() => Promise<{ status: string; }>",
273
+ "parameters": [],
274
+ "returns": "Promise<{ status: string; }>",
275
+ "tags": [
276
+ {
277
+ "name": "returns",
278
+ "text": "Promise that resolves with authorization status"
279
+ },
280
+ {
281
+ "name": "throws",
282
+ "text": "Error if request fails"
283
+ },
284
+ {
285
+ "name": "since",
286
+ "text": "1.0.0"
287
+ },
288
+ {
289
+ "name": "example",
290
+ "text": "```typescript\nconst { status } = await CapacitorIbeacon.requestAlwaysAuthorization();\nconsole.log('Authorization status:', status);\n```"
291
+ }
292
+ ],
293
+ "docs": "Request \"Always\" location authorization (required for background monitoring).",
294
+ "complexTypes": [],
295
+ "slug": "requestalwaysauthorization"
296
+ },
297
+ {
298
+ "name": "getAuthorizationStatus",
299
+ "signature": "() => Promise<{ status: string; }>",
300
+ "parameters": [],
301
+ "returns": "Promise<{ status: string; }>",
302
+ "tags": [
303
+ {
304
+ "name": "returns",
305
+ "text": "Promise that resolves with authorization status"
306
+ },
307
+ {
308
+ "name": "throws",
309
+ "text": "Error if getting status fails"
310
+ },
311
+ {
312
+ "name": "since",
313
+ "text": "1.0.0"
314
+ },
315
+ {
316
+ "name": "example",
317
+ "text": "```typescript\nconst { status } = await CapacitorIbeacon.getAuthorizationStatus();\nconsole.log('Current status:', status);\n```"
318
+ }
319
+ ],
320
+ "docs": "Get current location authorization status.",
321
+ "complexTypes": [],
322
+ "slug": "getauthorizationstatus"
323
+ },
324
+ {
325
+ "name": "isBluetoothEnabled",
326
+ "signature": "() => Promise<{ enabled: boolean; }>",
327
+ "parameters": [],
328
+ "returns": "Promise<{ enabled: boolean; }>",
329
+ "tags": [
330
+ {
331
+ "name": "returns",
332
+ "text": "Promise that resolves with Bluetooth state"
333
+ },
334
+ {
335
+ "name": "throws",
336
+ "text": "Error if checking state fails"
337
+ },
338
+ {
339
+ "name": "since",
340
+ "text": "1.0.0"
341
+ },
342
+ {
343
+ "name": "example",
344
+ "text": "```typescript\nconst { enabled } = await CapacitorIbeacon.isBluetoothEnabled();\nif (!enabled) {\n console.log('Please enable Bluetooth');\n}\n```"
345
+ }
346
+ ],
347
+ "docs": "Check if Bluetooth is enabled on the device.",
348
+ "complexTypes": [],
349
+ "slug": "isbluetoothenabled"
350
+ },
351
+ {
352
+ "name": "isRangingAvailable",
353
+ "signature": "() => Promise<{ available: boolean; }>",
354
+ "parameters": [],
355
+ "returns": "Promise<{ available: boolean; }>",
356
+ "tags": [
357
+ {
358
+ "name": "returns",
359
+ "text": "Promise that resolves with availability status"
360
+ },
361
+ {
362
+ "name": "throws",
363
+ "text": "Error if checking availability fails"
364
+ },
365
+ {
366
+ "name": "since",
367
+ "text": "1.0.0"
368
+ },
369
+ {
370
+ "name": "example",
371
+ "text": "```typescript\nconst { available } = await CapacitorIbeacon.isRangingAvailable();\nif (available) {\n console.log('Ranging is supported');\n}\n```"
372
+ }
373
+ ],
374
+ "docs": "Check if ranging is available on the device.",
375
+ "complexTypes": [],
376
+ "slug": "israngingavailable"
377
+ },
378
+ {
379
+ "name": "enableARMAFilter",
380
+ "signature": "(options: { enabled: boolean; }) => Promise<void>",
381
+ "parameters": [
382
+ {
383
+ "name": "options",
384
+ "docs": "- ARMA filter configuration",
385
+ "type": "{ enabled: boolean; }"
386
+ }
387
+ ],
388
+ "returns": "Promise<void>",
389
+ "tags": [
390
+ {
391
+ "name": "param",
392
+ "text": "options - ARMA filter configuration"
393
+ },
394
+ {
395
+ "name": "returns",
396
+ "text": "Promise that resolves when filter is configured"
397
+ },
398
+ {
399
+ "name": "throws",
400
+ "text": "Error if configuration fails"
401
+ },
402
+ {
403
+ "name": "since",
404
+ "text": "1.0.0"
405
+ },
406
+ {
407
+ "name": "platform",
408
+ "text": "Android"
409
+ },
410
+ {
411
+ "name": "example",
412
+ "text": "```typescript\nawait CapacitorIbeacon.enableARMAFilter({\n enabled: true\n});\n```"
413
+ }
414
+ ],
415
+ "docs": "Enable ARMA filtering for distance calculations (Android only).",
416
+ "complexTypes": [],
417
+ "slug": "enablearmafilter"
418
+ },
419
+ {
420
+ "name": "getPluginVersion",
421
+ "signature": "() => Promise<{ version: string; }>",
422
+ "parameters": [],
423
+ "returns": "Promise<{ version: string; }>",
424
+ "tags": [
425
+ {
426
+ "name": "returns",
427
+ "text": "Promise that resolves with the plugin version"
428
+ },
429
+ {
430
+ "name": "throws",
431
+ "text": "Error if getting the version fails"
432
+ },
433
+ {
434
+ "name": "since",
435
+ "text": "1.0.0"
436
+ },
437
+ {
438
+ "name": "example",
439
+ "text": "```typescript\nconst { version } = await CapacitorIbeacon.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
440
+ }
441
+ ],
442
+ "docs": "Get the native Capacitor plugin version.",
443
+ "complexTypes": [],
444
+ "slug": "getpluginversion"
445
+ }
446
+ ],
447
+ "properties": []
448
+ },
449
+ "interfaces": [
450
+ {
451
+ "name": "BeaconRegion",
452
+ "slug": "beaconregion",
453
+ "docs": "Beacon region definition for monitoring and ranging.",
454
+ "tags": [],
455
+ "methods": [],
456
+ "properties": [
457
+ {
458
+ "name": "identifier",
459
+ "tags": [],
460
+ "docs": "Unique identifier for this region.",
461
+ "complexTypes": [],
462
+ "type": "string"
463
+ },
464
+ {
465
+ "name": "uuid",
466
+ "tags": [],
467
+ "docs": "UUID of the beacon(s) to detect.",
468
+ "complexTypes": [],
469
+ "type": "string"
470
+ },
471
+ {
472
+ "name": "major",
473
+ "tags": [],
474
+ "docs": "Major value for filtering (optional).",
475
+ "complexTypes": [],
476
+ "type": "number | undefined"
477
+ },
478
+ {
479
+ "name": "minor",
480
+ "tags": [],
481
+ "docs": "Minor value for filtering (optional).",
482
+ "complexTypes": [],
483
+ "type": "number | undefined"
484
+ },
485
+ {
486
+ "name": "notifyEntryStateOnDisplay",
487
+ "tags": [],
488
+ "docs": "Notify when device enters region (iOS only).",
489
+ "complexTypes": [],
490
+ "type": "boolean | undefined"
491
+ }
492
+ ]
493
+ },
494
+ {
495
+ "name": "BeaconAdvertisingOptions",
496
+ "slug": "beaconadvertisingoptions",
497
+ "docs": "Beacon advertising options for transmitting as an iBeacon (iOS only).",
498
+ "tags": [],
499
+ "methods": [],
500
+ "properties": [
501
+ {
502
+ "name": "uuid",
503
+ "tags": [],
504
+ "docs": "UUID to advertise.",
505
+ "complexTypes": [],
506
+ "type": "string"
507
+ },
508
+ {
509
+ "name": "major",
510
+ "tags": [],
511
+ "docs": "Major value (0-65535).",
512
+ "complexTypes": [],
513
+ "type": "number"
514
+ },
515
+ {
516
+ "name": "minor",
517
+ "tags": [],
518
+ "docs": "Minor value (0-65535).",
519
+ "complexTypes": [],
520
+ "type": "number"
521
+ },
522
+ {
523
+ "name": "identifier",
524
+ "tags": [],
525
+ "docs": "Identifier for the advertising beacon.",
526
+ "complexTypes": [],
527
+ "type": "string"
528
+ },
529
+ {
530
+ "name": "measuredPower",
531
+ "tags": [],
532
+ "docs": "Measured power (RSSI at 1 meter). Optional, defaults to -59.",
533
+ "complexTypes": [],
534
+ "type": "number | undefined"
535
+ }
536
+ ]
537
+ }
538
+ ],
539
+ "enums": [],
540
+ "typeAliases": [],
541
+ "pluginConfigs": []
542
+ }