@capgo/capacitor-audio-recorder 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,646 @@
1
+ {
2
+ "api": {
3
+ "name": "CapacitorAudioRecorderPlugin",
4
+ "slug": "capacitoraudiorecorderplugin",
5
+ "docs": "Capacitor plugin contract for recording audio.",
6
+ "tags": [
7
+ {
8
+ "text": "1.0.0",
9
+ "name": "since"
10
+ }
11
+ ],
12
+ "methods": [
13
+ {
14
+ "name": "startRecording",
15
+ "signature": "(options?: StartRecordingOptions | undefined) => Promise<void>",
16
+ "parameters": [
17
+ {
18
+ "name": "options",
19
+ "docs": "Recording configuration options.",
20
+ "type": "StartRecordingOptions | undefined"
21
+ }
22
+ ],
23
+ "returns": "Promise<void>",
24
+ "tags": [
25
+ {
26
+ "name": "param",
27
+ "text": "options Recording configuration options."
28
+ },
29
+ {
30
+ "name": "since",
31
+ "text": "1.0.0"
32
+ }
33
+ ],
34
+ "docs": "Start recording audio using the device microphone.",
35
+ "complexTypes": [
36
+ "StartRecordingOptions"
37
+ ],
38
+ "slug": "startrecording"
39
+ },
40
+ {
41
+ "name": "pauseRecording",
42
+ "signature": "() => Promise<void>",
43
+ "parameters": [],
44
+ "returns": "Promise<void>",
45
+ "tags": [
46
+ {
47
+ "name": "since",
48
+ "text": "1.0.0"
49
+ }
50
+ ],
51
+ "docs": "Pause the ongoing recording. Only available on Android (API 24+), iOS, and Web.",
52
+ "complexTypes": [],
53
+ "slug": "pauserecording"
54
+ },
55
+ {
56
+ "name": "resumeRecording",
57
+ "signature": "() => Promise<void>",
58
+ "parameters": [],
59
+ "returns": "Promise<void>",
60
+ "tags": [
61
+ {
62
+ "name": "since",
63
+ "text": "1.0.0"
64
+ }
65
+ ],
66
+ "docs": "Resume a previously paused recording.",
67
+ "complexTypes": [],
68
+ "slug": "resumerecording"
69
+ },
70
+ {
71
+ "name": "stopRecording",
72
+ "signature": "() => Promise<StopRecordingResult>",
73
+ "parameters": [],
74
+ "returns": "Promise<StopRecordingResult>",
75
+ "tags": [
76
+ {
77
+ "name": "returns",
78
+ "text": "Recording metadata such as duration and URI/blob."
79
+ },
80
+ {
81
+ "name": "since",
82
+ "text": "1.0.0"
83
+ }
84
+ ],
85
+ "docs": "Stop the current recording and persist the recorded audio.",
86
+ "complexTypes": [
87
+ "StopRecordingResult"
88
+ ],
89
+ "slug": "stoprecording"
90
+ },
91
+ {
92
+ "name": "cancelRecording",
93
+ "signature": "() => Promise<void>",
94
+ "parameters": [],
95
+ "returns": "Promise<void>",
96
+ "tags": [
97
+ {
98
+ "name": "since",
99
+ "text": "1.0.0"
100
+ }
101
+ ],
102
+ "docs": "Cancel the current recording and discard any captured audio.",
103
+ "complexTypes": [],
104
+ "slug": "cancelrecording"
105
+ },
106
+ {
107
+ "name": "getRecordingStatus",
108
+ "signature": "() => Promise<GetRecordingStatusResult>",
109
+ "parameters": [],
110
+ "returns": "Promise<GetRecordingStatusResult>",
111
+ "tags": [
112
+ {
113
+ "name": "since",
114
+ "text": "1.0.0"
115
+ }
116
+ ],
117
+ "docs": "Retrieve the current recording status.",
118
+ "complexTypes": [
119
+ "GetRecordingStatusResult"
120
+ ],
121
+ "slug": "getrecordingstatus"
122
+ },
123
+ {
124
+ "name": "checkPermissions",
125
+ "signature": "() => Promise<PermissionStatus>",
126
+ "parameters": [],
127
+ "returns": "Promise<PermissionStatus>",
128
+ "tags": [
129
+ {
130
+ "name": "since",
131
+ "text": "1.0.0"
132
+ }
133
+ ],
134
+ "docs": "Return the current permission state for accessing the microphone.",
135
+ "complexTypes": [
136
+ "PermissionStatus"
137
+ ],
138
+ "slug": "checkpermissions"
139
+ },
140
+ {
141
+ "name": "requestPermissions",
142
+ "signature": "() => Promise<PermissionStatus>",
143
+ "parameters": [],
144
+ "returns": "Promise<PermissionStatus>",
145
+ "tags": [
146
+ {
147
+ "name": "since",
148
+ "text": "1.0.0"
149
+ }
150
+ ],
151
+ "docs": "Request permission to access the microphone.",
152
+ "complexTypes": [
153
+ "PermissionStatus"
154
+ ],
155
+ "slug": "requestpermissions"
156
+ },
157
+ {
158
+ "name": "addListener",
159
+ "signature": "(eventName: 'recordingError', listenerFunc: (event: RecordingErrorEvent) => void) => Promise<PluginListenerHandle>",
160
+ "parameters": [
161
+ {
162
+ "name": "eventName",
163
+ "docs": "",
164
+ "type": "'recordingError'"
165
+ },
166
+ {
167
+ "name": "listenerFunc",
168
+ "docs": "",
169
+ "type": "(event: RecordingErrorEvent) => void"
170
+ }
171
+ ],
172
+ "returns": "Promise<PluginListenerHandle>",
173
+ "tags": [
174
+ {
175
+ "name": "since",
176
+ "text": "1.0.0"
177
+ }
178
+ ],
179
+ "docs": "Listen for recording errors.",
180
+ "complexTypes": [
181
+ "PluginListenerHandle",
182
+ "RecordingErrorEvent"
183
+ ],
184
+ "slug": "addlistenerrecordingerror-"
185
+ },
186
+ {
187
+ "name": "addListener",
188
+ "signature": "(eventName: 'recordingPaused', listenerFunc: () => void) => Promise<PluginListenerHandle>",
189
+ "parameters": [
190
+ {
191
+ "name": "eventName",
192
+ "docs": "",
193
+ "type": "'recordingPaused'"
194
+ },
195
+ {
196
+ "name": "listenerFunc",
197
+ "docs": "",
198
+ "type": "() => void"
199
+ }
200
+ ],
201
+ "returns": "Promise<PluginListenerHandle>",
202
+ "tags": [
203
+ {
204
+ "name": "since",
205
+ "text": "1.0.0"
206
+ }
207
+ ],
208
+ "docs": "Listen for pause events emitted when a recording is paused.",
209
+ "complexTypes": [
210
+ "PluginListenerHandle"
211
+ ],
212
+ "slug": "addlistenerrecordingpaused-"
213
+ },
214
+ {
215
+ "name": "addListener",
216
+ "signature": "(eventName: 'recordingStopped', listenerFunc: (event: RecordingStoppedEvent) => void) => Promise<PluginListenerHandle>",
217
+ "parameters": [
218
+ {
219
+ "name": "eventName",
220
+ "docs": "",
221
+ "type": "'recordingStopped'"
222
+ },
223
+ {
224
+ "name": "listenerFunc",
225
+ "docs": "",
226
+ "type": "(event: StopRecordingResult) => void"
227
+ }
228
+ ],
229
+ "returns": "Promise<PluginListenerHandle>",
230
+ "tags": [
231
+ {
232
+ "name": "since",
233
+ "text": "1.0.0"
234
+ }
235
+ ],
236
+ "docs": "Listen for recording completion events.",
237
+ "complexTypes": [
238
+ "PluginListenerHandle",
239
+ "RecordingStoppedEvent"
240
+ ],
241
+ "slug": "addlistenerrecordingstopped-"
242
+ },
243
+ {
244
+ "name": "removeAllListeners",
245
+ "signature": "() => Promise<void>",
246
+ "parameters": [],
247
+ "returns": "Promise<void>",
248
+ "tags": [
249
+ {
250
+ "name": "since",
251
+ "text": "1.0.0"
252
+ }
253
+ ],
254
+ "docs": "Remove all registered listeners.",
255
+ "complexTypes": [],
256
+ "slug": "removealllisteners"
257
+ }
258
+ ],
259
+ "properties": []
260
+ },
261
+ "interfaces": [
262
+ {
263
+ "name": "StartRecordingOptions",
264
+ "slug": "startrecordingoptions",
265
+ "docs": "Options accepted by {@link CapacitorAudioRecorderPlugin.startRecording}.",
266
+ "tags": [
267
+ {
268
+ "text": "1.0.0",
269
+ "name": "since"
270
+ }
271
+ ],
272
+ "methods": [],
273
+ "properties": [
274
+ {
275
+ "name": "audioSessionCategoryOptions",
276
+ "tags": [
277
+ {
278
+ "text": "1.0.0",
279
+ "name": "since"
280
+ }
281
+ ],
282
+ "docs": "The audio session category options for recording. Only available on iOS.",
283
+ "complexTypes": [
284
+ "AudioSessionCategoryOption"
285
+ ],
286
+ "type": "AudioSessionCategoryOption[] | undefined"
287
+ },
288
+ {
289
+ "name": "audioSessionMode",
290
+ "tags": [
291
+ {
292
+ "text": "1.0.0",
293
+ "name": "since"
294
+ }
295
+ ],
296
+ "docs": "The audio session mode for recording. Only available on iOS.",
297
+ "complexTypes": [
298
+ "AudioSessionMode"
299
+ ],
300
+ "type": "AudioSessionMode"
301
+ },
302
+ {
303
+ "name": "bitRate",
304
+ "tags": [
305
+ {
306
+ "text": "1.0.0",
307
+ "name": "since"
308
+ }
309
+ ],
310
+ "docs": "The audio bit rate in bytes per second.\nOnly available on Android and iOS.",
311
+ "complexTypes": [],
312
+ "type": "number | undefined"
313
+ },
314
+ {
315
+ "name": "sampleRate",
316
+ "tags": [
317
+ {
318
+ "text": "1.0.0",
319
+ "name": "since"
320
+ }
321
+ ],
322
+ "docs": "The audio sample rate in Hz.\nOnly available on Android and iOS.",
323
+ "complexTypes": [],
324
+ "type": "number | undefined"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "StopRecordingResult",
330
+ "slug": "stoprecordingresult",
331
+ "docs": "Result returned by {@link CapacitorAudioRecorderPlugin.stopRecording}.",
332
+ "tags": [
333
+ {
334
+ "text": "1.0.0",
335
+ "name": "since"
336
+ }
337
+ ],
338
+ "methods": [],
339
+ "properties": [
340
+ {
341
+ "name": "blob",
342
+ "tags": [
343
+ {
344
+ "text": "1.0.0",
345
+ "name": "since"
346
+ }
347
+ ],
348
+ "docs": "The recorded audio as a Blob. Only available on Web.",
349
+ "complexTypes": [
350
+ "Blob"
351
+ ],
352
+ "type": "Blob"
353
+ },
354
+ {
355
+ "name": "duration",
356
+ "tags": [
357
+ {
358
+ "text": "1.0.0",
359
+ "name": "since"
360
+ }
361
+ ],
362
+ "docs": "The duration of the recording in milliseconds.",
363
+ "complexTypes": [],
364
+ "type": "number | undefined"
365
+ },
366
+ {
367
+ "name": "uri",
368
+ "tags": [
369
+ {
370
+ "text": "1.0.0",
371
+ "name": "since"
372
+ }
373
+ ],
374
+ "docs": "The URI pointing to the recorded file. Only available on Android and iOS.",
375
+ "complexTypes": [],
376
+ "type": "string | undefined"
377
+ }
378
+ ]
379
+ },
380
+ {
381
+ "name": "GetRecordingStatusResult",
382
+ "slug": "getrecordingstatusresult",
383
+ "docs": "Result returned by {@link CapacitorAudioRecorderPlugin.getRecordingStatus}.",
384
+ "tags": [
385
+ {
386
+ "text": "1.0.0",
387
+ "name": "since"
388
+ }
389
+ ],
390
+ "methods": [],
391
+ "properties": [
392
+ {
393
+ "name": "status",
394
+ "tags": [
395
+ {
396
+ "text": "1.0.0",
397
+ "name": "since"
398
+ }
399
+ ],
400
+ "docs": "The current recording status.",
401
+ "complexTypes": [
402
+ "RecordingStatus"
403
+ ],
404
+ "type": "RecordingStatus"
405
+ }
406
+ ]
407
+ },
408
+ {
409
+ "name": "PermissionStatus",
410
+ "slug": "permissionstatus",
411
+ "docs": "Permission information returned by {@link CapacitorAudioRecorderPlugin.checkPermissions}\nand {@link CapacitorAudioRecorderPlugin.requestPermissions}.",
412
+ "tags": [
413
+ {
414
+ "text": "1.0.0",
415
+ "name": "since"
416
+ }
417
+ ],
418
+ "methods": [],
419
+ "properties": [
420
+ {
421
+ "name": "recordAudio",
422
+ "tags": [
423
+ {
424
+ "text": "1.0.0",
425
+ "name": "since"
426
+ }
427
+ ],
428
+ "docs": "The permission state for audio recording.",
429
+ "complexTypes": [
430
+ "PermissionState"
431
+ ],
432
+ "type": "PermissionState"
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "name": "PluginListenerHandle",
438
+ "slug": "pluginlistenerhandle",
439
+ "docs": "",
440
+ "tags": [],
441
+ "methods": [],
442
+ "properties": [
443
+ {
444
+ "name": "remove",
445
+ "tags": [],
446
+ "docs": "",
447
+ "complexTypes": [],
448
+ "type": "() => Promise<void>"
449
+ }
450
+ ]
451
+ },
452
+ {
453
+ "name": "RecordingErrorEvent",
454
+ "slug": "recordingerrorevent",
455
+ "docs": "Event emitted when an error occurs during recording.",
456
+ "tags": [
457
+ {
458
+ "text": "1.0.0",
459
+ "name": "since"
460
+ }
461
+ ],
462
+ "methods": [],
463
+ "properties": [
464
+ {
465
+ "name": "message",
466
+ "tags": [
467
+ {
468
+ "text": "1.0.0",
469
+ "name": "since"
470
+ }
471
+ ],
472
+ "docs": "The error message.",
473
+ "complexTypes": [],
474
+ "type": "string"
475
+ }
476
+ ]
477
+ }
478
+ ],
479
+ "enums": [
480
+ {
481
+ "name": "AudioSessionCategoryOption",
482
+ "slug": "audiosessioncategoryoption",
483
+ "members": [
484
+ {
485
+ "name": "AllowAirPlay",
486
+ "value": "'ALLOW_AIR_PLAY'",
487
+ "tags": [],
488
+ "docs": ""
489
+ },
490
+ {
491
+ "name": "AllowBluetooth",
492
+ "value": "'ALLOW_BLUETOOTH'",
493
+ "tags": [],
494
+ "docs": ""
495
+ },
496
+ {
497
+ "name": "AllowBluetoothA2DP",
498
+ "value": "'ALLOW_BLUETOOTH_A2DP'",
499
+ "tags": [],
500
+ "docs": ""
501
+ },
502
+ {
503
+ "name": "DefaultToSpeaker",
504
+ "value": "'DEFAULT_TO_SPEAKER'",
505
+ "tags": [],
506
+ "docs": ""
507
+ },
508
+ {
509
+ "name": "DuckOthers",
510
+ "value": "'DUCK_OTHERS'",
511
+ "tags": [],
512
+ "docs": ""
513
+ },
514
+ {
515
+ "name": "InterruptSpokenAudioAndMixWithOthers",
516
+ "value": "'INTERRUPT_SPOKEN_AUDIO_AND_MIX_WITH_OTHERS'",
517
+ "tags": [],
518
+ "docs": ""
519
+ },
520
+ {
521
+ "name": "MixWithOthers",
522
+ "value": "'MIX_WITH_OTHERS'",
523
+ "tags": [],
524
+ "docs": ""
525
+ },
526
+ {
527
+ "name": "OverrideMutedMicrophoneInterruption",
528
+ "value": "'OVERRIDE_MUTED_MICROPHONE_INTERRUPTION'",
529
+ "tags": [],
530
+ "docs": ""
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "name": "AudioSessionMode",
536
+ "slug": "audiosessionmode",
537
+ "members": [
538
+ {
539
+ "name": "Default",
540
+ "value": "'DEFAULT'",
541
+ "tags": [],
542
+ "docs": ""
543
+ },
544
+ {
545
+ "name": "GameChat",
546
+ "value": "'GAME_CHAT'",
547
+ "tags": [],
548
+ "docs": ""
549
+ },
550
+ {
551
+ "name": "Measurement",
552
+ "value": "'MEASUREMENT'",
553
+ "tags": [],
554
+ "docs": ""
555
+ },
556
+ {
557
+ "name": "SpokenAudio",
558
+ "value": "'SPOKEN_AUDIO'",
559
+ "tags": [],
560
+ "docs": ""
561
+ },
562
+ {
563
+ "name": "VideoChat",
564
+ "value": "'VIDEO_CHAT'",
565
+ "tags": [],
566
+ "docs": ""
567
+ },
568
+ {
569
+ "name": "VideoRecording",
570
+ "value": "'VIDEO_RECORDING'",
571
+ "tags": [],
572
+ "docs": ""
573
+ },
574
+ {
575
+ "name": "VoiceChat",
576
+ "value": "'VOICE_CHAT'",
577
+ "tags": [],
578
+ "docs": ""
579
+ }
580
+ ]
581
+ },
582
+ {
583
+ "name": "RecordingStatus",
584
+ "slug": "recordingstatus",
585
+ "members": [
586
+ {
587
+ "name": "Inactive",
588
+ "value": "'INACTIVE'",
589
+ "tags": [],
590
+ "docs": ""
591
+ },
592
+ {
593
+ "name": "Recording",
594
+ "value": "'RECORDING'",
595
+ "tags": [],
596
+ "docs": ""
597
+ },
598
+ {
599
+ "name": "Paused",
600
+ "value": "'PAUSED'",
601
+ "tags": [],
602
+ "docs": ""
603
+ }
604
+ ]
605
+ }
606
+ ],
607
+ "typeAliases": [
608
+ {
609
+ "name": "PermissionState",
610
+ "slug": "permissionstate",
611
+ "docs": "",
612
+ "types": [
613
+ {
614
+ "text": "'prompt'",
615
+ "complexTypes": []
616
+ },
617
+ {
618
+ "text": "'prompt-with-rationale'",
619
+ "complexTypes": []
620
+ },
621
+ {
622
+ "text": "'granted'",
623
+ "complexTypes": []
624
+ },
625
+ {
626
+ "text": "'denied'",
627
+ "complexTypes": []
628
+ }
629
+ ]
630
+ },
631
+ {
632
+ "name": "RecordingStoppedEvent",
633
+ "slug": "recordingstoppedevent",
634
+ "docs": "Event emitted when a recording completes.",
635
+ "types": [
636
+ {
637
+ "text": "StopRecordingResult",
638
+ "complexTypes": [
639
+ "StopRecordingResult"
640
+ ]
641
+ }
642
+ ]
643
+ }
644
+ ],
645
+ "pluginConfigs": []
646
+ }