@capgo/capacitor-file-picker 8.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/CapgoCapacitorFilePicker.podspec +17 -0
- package/Package.swift +28 -0
- package/README.md +403 -0
- package/android/build.gradle +58 -0
- package/android/src/main/AndroidManifest.xml +2 -0
- package/android/src/main/java/app/capgo/capacitor/filepicker/CapgoFilePickerPlugin.java +473 -0
- package/dist/docs.json +804 -0
- package/dist/esm/definitions.d.ts +347 -0
- package/dist/esm/definitions.js +2 -0
- package/dist/esm/definitions.js.map +1 -0
- package/dist/esm/index.d.ts +4 -0
- package/dist/esm/index.js +7 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/web.d.ts +22 -0
- package/dist/esm/web.js +147 -0
- package/dist/esm/web.js.map +1 -0
- package/dist/plugin.cjs.js +161 -0
- package/dist/plugin.cjs.js.map +1 -0
- package/dist/plugin.js +164 -0
- package/dist/plugin.js.map +1 -0
- package/ios/Sources/CapgoFilePickerPlugin/CapgoFilePickerPlugin.swift +393 -0
- package/ios/Tests/CapgoFilePickerPluginTests/CapgoFilePickerPluginTests.swift +11 -0
- package/package.json +88 -0
package/dist/docs.json
ADDED
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
{
|
|
2
|
+
"api": {
|
|
3
|
+
"name": "CapgoFilePickerPlugin",
|
|
4
|
+
"slug": "capgofilepickerplugin",
|
|
5
|
+
"docs": "Capacitor File Picker Plugin interface for selecting files, images, videos, and directories.",
|
|
6
|
+
"tags": [
|
|
7
|
+
{
|
|
8
|
+
"text": "8.0.0",
|
|
9
|
+
"name": "since"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"methods": [
|
|
13
|
+
{
|
|
14
|
+
"name": "pickFiles",
|
|
15
|
+
"signature": "(options?: PickFilesOptions | undefined) => Promise<PickFilesResult>",
|
|
16
|
+
"parameters": [
|
|
17
|
+
{
|
|
18
|
+
"name": "options",
|
|
19
|
+
"docs": "- Options for picking files",
|
|
20
|
+
"type": "PickFilesOptions | undefined"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"returns": "Promise<PickFilesResult>",
|
|
24
|
+
"tags": [
|
|
25
|
+
{
|
|
26
|
+
"name": "param",
|
|
27
|
+
"text": "options - Options for picking files"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "returns",
|
|
31
|
+
"text": "Promise that resolves with the picked files"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "since",
|
|
35
|
+
"text": "8.0.0"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "example",
|
|
39
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.pickFiles({\n types: ['application/pdf', 'image/*'],\n limit: 5,\n readData: false\n});\nconsole.log('Picked files:', result.files);\n```"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"docs": "Pick one or more files from the device.",
|
|
43
|
+
"complexTypes": [
|
|
44
|
+
"PickFilesResult",
|
|
45
|
+
"PickFilesOptions"
|
|
46
|
+
],
|
|
47
|
+
"slug": "pickfiles"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "pickImages",
|
|
51
|
+
"signature": "(options?: PickMediaOptions | undefined) => Promise<PickFilesResult>",
|
|
52
|
+
"parameters": [
|
|
53
|
+
{
|
|
54
|
+
"name": "options",
|
|
55
|
+
"docs": "- Options for picking images",
|
|
56
|
+
"type": "PickMediaOptions | undefined"
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
"returns": "Promise<PickFilesResult>",
|
|
60
|
+
"tags": [
|
|
61
|
+
{
|
|
62
|
+
"name": "param",
|
|
63
|
+
"text": "options - Options for picking images"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "returns",
|
|
67
|
+
"text": "Promise that resolves with the picked images"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "since",
|
|
71
|
+
"text": "8.0.0"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "example",
|
|
75
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.pickImages({\n limit: 10,\n readData: false\n});\nconsole.log('Picked images:', result.files);\n```"
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"docs": "Pick one or more images from the gallery.\nAndroid/iOS only.",
|
|
79
|
+
"complexTypes": [
|
|
80
|
+
"PickFilesResult",
|
|
81
|
+
"PickMediaOptions"
|
|
82
|
+
],
|
|
83
|
+
"slug": "pickimages"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "pickVideos",
|
|
87
|
+
"signature": "(options?: PickMediaOptions | undefined) => Promise<PickFilesResult>",
|
|
88
|
+
"parameters": [
|
|
89
|
+
{
|
|
90
|
+
"name": "options",
|
|
91
|
+
"docs": "- Options for picking videos",
|
|
92
|
+
"type": "PickMediaOptions | undefined"
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
"returns": "Promise<PickFilesResult>",
|
|
96
|
+
"tags": [
|
|
97
|
+
{
|
|
98
|
+
"name": "param",
|
|
99
|
+
"text": "options - Options for picking videos"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "returns",
|
|
103
|
+
"text": "Promise that resolves with the picked videos"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "since",
|
|
107
|
+
"text": "8.0.0"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"name": "example",
|
|
111
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.pickVideos({\n limit: 3,\n skipTranscoding: true\n});\nconsole.log('Picked videos:', result.files);\n```"
|
|
112
|
+
}
|
|
113
|
+
],
|
|
114
|
+
"docs": "Pick one or more videos from the gallery.\nAndroid/iOS only.",
|
|
115
|
+
"complexTypes": [
|
|
116
|
+
"PickFilesResult",
|
|
117
|
+
"PickMediaOptions"
|
|
118
|
+
],
|
|
119
|
+
"slug": "pickvideos"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"name": "pickMedia",
|
|
123
|
+
"signature": "(options?: PickMediaOptions | undefined) => Promise<PickFilesResult>",
|
|
124
|
+
"parameters": [
|
|
125
|
+
{
|
|
126
|
+
"name": "options",
|
|
127
|
+
"docs": "- Options for picking media",
|
|
128
|
+
"type": "PickMediaOptions | undefined"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"returns": "Promise<PickFilesResult>",
|
|
132
|
+
"tags": [
|
|
133
|
+
{
|
|
134
|
+
"name": "param",
|
|
135
|
+
"text": "options - Options for picking media"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "returns",
|
|
139
|
+
"text": "Promise that resolves with the picked media files"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "since",
|
|
143
|
+
"text": "8.0.0"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"name": "example",
|
|
147
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.pickMedia({\n limit: 5,\n readData: true\n});\nconsole.log('Picked media:', result.files);\n```"
|
|
148
|
+
}
|
|
149
|
+
],
|
|
150
|
+
"docs": "Pick one or more images or videos from the gallery.\nAndroid/iOS only.",
|
|
151
|
+
"complexTypes": [
|
|
152
|
+
"PickFilesResult",
|
|
153
|
+
"PickMediaOptions"
|
|
154
|
+
],
|
|
155
|
+
"slug": "pickmedia"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"name": "pickDirectory",
|
|
159
|
+
"signature": "() => Promise<PickDirectoryResult>",
|
|
160
|
+
"parameters": [],
|
|
161
|
+
"returns": "Promise<PickDirectoryResult>",
|
|
162
|
+
"tags": [
|
|
163
|
+
{
|
|
164
|
+
"name": "returns",
|
|
165
|
+
"text": "Promise that resolves with the picked directory path"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "since",
|
|
169
|
+
"text": "8.0.0"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"name": "example",
|
|
173
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.pickDirectory();\nconsole.log('Selected directory:', result.path);\n```"
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
"docs": "Pick a directory from the device.\nAndroid/iOS only.",
|
|
177
|
+
"complexTypes": [
|
|
178
|
+
"PickDirectoryResult"
|
|
179
|
+
],
|
|
180
|
+
"slug": "pickdirectory"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "convertHeicToJpeg",
|
|
184
|
+
"signature": "(options: ConvertHeicToJpegOptions) => Promise<ConvertHeicToJpegResult>",
|
|
185
|
+
"parameters": [
|
|
186
|
+
{
|
|
187
|
+
"name": "options",
|
|
188
|
+
"docs": "- Options for the conversion",
|
|
189
|
+
"type": "ConvertHeicToJpegOptions"
|
|
190
|
+
}
|
|
191
|
+
],
|
|
192
|
+
"returns": "Promise<ConvertHeicToJpegResult>",
|
|
193
|
+
"tags": [
|
|
194
|
+
{
|
|
195
|
+
"name": "param",
|
|
196
|
+
"text": "options - Options for the conversion"
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"name": "returns",
|
|
200
|
+
"text": "Promise that resolves with the converted file path"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"name": "since",
|
|
204
|
+
"text": "8.0.0"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"name": "example",
|
|
208
|
+
"text": "```typescript\nconst result = await CapgoFilePicker.convertHeicToJpeg({\n path: '/path/to/image.heic',\n quality: 0.9\n});\nconsole.log('Converted file:', result.path);\n```"
|
|
209
|
+
}
|
|
210
|
+
],
|
|
211
|
+
"docs": "Convert a HEIC image to JPEG format.\niOS only.",
|
|
212
|
+
"complexTypes": [
|
|
213
|
+
"ConvertHeicToJpegResult",
|
|
214
|
+
"ConvertHeicToJpegOptions"
|
|
215
|
+
],
|
|
216
|
+
"slug": "convertheictojpeg"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"name": "copyFile",
|
|
220
|
+
"signature": "(options: CopyFileOptions) => Promise<void>",
|
|
221
|
+
"parameters": [
|
|
222
|
+
{
|
|
223
|
+
"name": "options",
|
|
224
|
+
"docs": "- Options for copying the file",
|
|
225
|
+
"type": "CopyFileOptions"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"returns": "Promise<void>",
|
|
229
|
+
"tags": [
|
|
230
|
+
{
|
|
231
|
+
"name": "param",
|
|
232
|
+
"text": "options - Options for copying the file"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "returns",
|
|
236
|
+
"text": "Promise that resolves when the copy is complete"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"name": "since",
|
|
240
|
+
"text": "8.0.0"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"name": "example",
|
|
244
|
+
"text": "```typescript\nawait CapgoFilePicker.copyFile({\n from: '/source/file.pdf',\n to: '/destination/file.pdf',\n overwrite: true\n});\n```"
|
|
245
|
+
}
|
|
246
|
+
],
|
|
247
|
+
"docs": "Copy a file to a new location.",
|
|
248
|
+
"complexTypes": [
|
|
249
|
+
"CopyFileOptions"
|
|
250
|
+
],
|
|
251
|
+
"slug": "copyfile"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "checkPermissions",
|
|
255
|
+
"signature": "() => Promise<PermissionStatus>",
|
|
256
|
+
"parameters": [],
|
|
257
|
+
"returns": "Promise<PermissionStatus>",
|
|
258
|
+
"tags": [
|
|
259
|
+
{
|
|
260
|
+
"name": "returns",
|
|
261
|
+
"text": "Promise that resolves with the permission status"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "since",
|
|
265
|
+
"text": "8.0.0"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "example",
|
|
269
|
+
"text": "```typescript\nconst status = await CapgoFilePicker.checkPermissions();\nconsole.log('Read permission:', status.readExternalStorage);\n```"
|
|
270
|
+
}
|
|
271
|
+
],
|
|
272
|
+
"docs": "Check permissions for reading files.\nAndroid only.",
|
|
273
|
+
"complexTypes": [
|
|
274
|
+
"PermissionStatus"
|
|
275
|
+
],
|
|
276
|
+
"slug": "checkpermissions"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "requestPermissions",
|
|
280
|
+
"signature": "() => Promise<PermissionStatus>",
|
|
281
|
+
"parameters": [],
|
|
282
|
+
"returns": "Promise<PermissionStatus>",
|
|
283
|
+
"tags": [
|
|
284
|
+
{
|
|
285
|
+
"name": "returns",
|
|
286
|
+
"text": "Promise that resolves with the permission status"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "since",
|
|
290
|
+
"text": "8.0.0"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "example",
|
|
294
|
+
"text": "```typescript\nconst status = await CapgoFilePicker.requestPermissions();\nif (status.readExternalStorage === 'granted') {\n console.log('Permission granted');\n}\n```"
|
|
295
|
+
}
|
|
296
|
+
],
|
|
297
|
+
"docs": "Request permissions for reading files.\nAndroid only.",
|
|
298
|
+
"complexTypes": [
|
|
299
|
+
"PermissionStatus"
|
|
300
|
+
],
|
|
301
|
+
"slug": "requestpermissions"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "addListener",
|
|
305
|
+
"signature": "(eventName: 'pickerDismissed', listenerFunc: PickerDismissedListener) => Promise<PluginListenerHandle>",
|
|
306
|
+
"parameters": [
|
|
307
|
+
{
|
|
308
|
+
"name": "eventName",
|
|
309
|
+
"docs": "- The event name",
|
|
310
|
+
"type": "'pickerDismissed'"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
"name": "listenerFunc",
|
|
314
|
+
"docs": "- The listener function",
|
|
315
|
+
"type": "PickerDismissedListener"
|
|
316
|
+
}
|
|
317
|
+
],
|
|
318
|
+
"returns": "Promise<PluginListenerHandle>",
|
|
319
|
+
"tags": [
|
|
320
|
+
{
|
|
321
|
+
"name": "param",
|
|
322
|
+
"text": "eventName - The event name"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "param",
|
|
326
|
+
"text": "listenerFunc - The listener function"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "returns",
|
|
330
|
+
"text": "Promise that resolves with the listener handle"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "since",
|
|
334
|
+
"text": "8.0.0"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"docs": "Add a listener for the picker dismissed event.\niOS only.",
|
|
338
|
+
"complexTypes": [
|
|
339
|
+
"PluginListenerHandle",
|
|
340
|
+
"PickerDismissedListener"
|
|
341
|
+
],
|
|
342
|
+
"slug": "addlistenerpickerdismissed-"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
"name": "removeAllListeners",
|
|
346
|
+
"signature": "() => Promise<void>",
|
|
347
|
+
"parameters": [],
|
|
348
|
+
"returns": "Promise<void>",
|
|
349
|
+
"tags": [
|
|
350
|
+
{
|
|
351
|
+
"name": "since",
|
|
352
|
+
"text": "8.0.0"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"docs": "Remove all listeners for this plugin.",
|
|
356
|
+
"complexTypes": [],
|
|
357
|
+
"slug": "removealllisteners"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"name": "getPluginVersion",
|
|
361
|
+
"signature": "() => Promise<{ version: string; }>",
|
|
362
|
+
"parameters": [],
|
|
363
|
+
"returns": "Promise<{ version: string; }>",
|
|
364
|
+
"tags": [
|
|
365
|
+
{
|
|
366
|
+
"name": "returns",
|
|
367
|
+
"text": "Promise that resolves with the plugin version"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
"name": "since",
|
|
371
|
+
"text": "8.0.0"
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "example",
|
|
375
|
+
"text": "```typescript\nconst { version } = await CapgoFilePicker.getPluginVersion();\nconsole.log('Plugin version:', version);\n```"
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"docs": "Get the native Capacitor plugin version.",
|
|
379
|
+
"complexTypes": [],
|
|
380
|
+
"slug": "getpluginversion"
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
"properties": []
|
|
384
|
+
},
|
|
385
|
+
"interfaces": [
|
|
386
|
+
{
|
|
387
|
+
"name": "PickFilesResult",
|
|
388
|
+
"slug": "pickfilesresult",
|
|
389
|
+
"docs": "Result of picking files.",
|
|
390
|
+
"tags": [
|
|
391
|
+
{
|
|
392
|
+
"text": "8.0.0",
|
|
393
|
+
"name": "since"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"methods": [],
|
|
397
|
+
"properties": [
|
|
398
|
+
{
|
|
399
|
+
"name": "files",
|
|
400
|
+
"tags": [],
|
|
401
|
+
"docs": "Array of picked files",
|
|
402
|
+
"complexTypes": [
|
|
403
|
+
"PickedFile"
|
|
404
|
+
],
|
|
405
|
+
"type": "PickedFile[]"
|
|
406
|
+
}
|
|
407
|
+
]
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
"name": "PickedFile",
|
|
411
|
+
"slug": "pickedfile",
|
|
412
|
+
"docs": "Represents a picked file.",
|
|
413
|
+
"tags": [
|
|
414
|
+
{
|
|
415
|
+
"text": "8.0.0",
|
|
416
|
+
"name": "since"
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"methods": [],
|
|
420
|
+
"properties": [
|
|
421
|
+
{
|
|
422
|
+
"name": "name",
|
|
423
|
+
"tags": [],
|
|
424
|
+
"docs": "The name of the file",
|
|
425
|
+
"complexTypes": [],
|
|
426
|
+
"type": "string"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
"name": "path",
|
|
430
|
+
"tags": [],
|
|
431
|
+
"docs": "The path to the file",
|
|
432
|
+
"complexTypes": [],
|
|
433
|
+
"type": "string | undefined"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"name": "mimeType",
|
|
437
|
+
"tags": [],
|
|
438
|
+
"docs": "The MIME type of the file",
|
|
439
|
+
"complexTypes": [],
|
|
440
|
+
"type": "string"
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
"name": "size",
|
|
444
|
+
"tags": [],
|
|
445
|
+
"docs": "The size of the file in bytes",
|
|
446
|
+
"complexTypes": [],
|
|
447
|
+
"type": "number"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"name": "data",
|
|
451
|
+
"tags": [],
|
|
452
|
+
"docs": "The base64 encoded data of the file.\nOnly present if readData was true.",
|
|
453
|
+
"complexTypes": [],
|
|
454
|
+
"type": "string | undefined"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"name": "blob",
|
|
458
|
+
"tags": [],
|
|
459
|
+
"docs": "The Blob instance of the file.\nWeb only.",
|
|
460
|
+
"complexTypes": [
|
|
461
|
+
"Blob"
|
|
462
|
+
],
|
|
463
|
+
"type": "Blob"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"name": "width",
|
|
467
|
+
"tags": [],
|
|
468
|
+
"docs": "Width in pixels (images/videos only)",
|
|
469
|
+
"complexTypes": [],
|
|
470
|
+
"type": "number | undefined"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"name": "height",
|
|
474
|
+
"tags": [],
|
|
475
|
+
"docs": "Height in pixels (images/videos only)",
|
|
476
|
+
"complexTypes": [],
|
|
477
|
+
"type": "number | undefined"
|
|
478
|
+
},
|
|
479
|
+
{
|
|
480
|
+
"name": "duration",
|
|
481
|
+
"tags": [],
|
|
482
|
+
"docs": "Duration in seconds (videos only)",
|
|
483
|
+
"complexTypes": [],
|
|
484
|
+
"type": "number | undefined"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"name": "modifiedAt",
|
|
488
|
+
"tags": [],
|
|
489
|
+
"docs": "Last modified timestamp in milliseconds",
|
|
490
|
+
"complexTypes": [],
|
|
491
|
+
"type": "number | undefined"
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "PickFilesOptions",
|
|
497
|
+
"slug": "pickfilesoptions",
|
|
498
|
+
"docs": "Options for picking files.",
|
|
499
|
+
"tags": [
|
|
500
|
+
{
|
|
501
|
+
"text": "8.0.0",
|
|
502
|
+
"name": "since"
|
|
503
|
+
}
|
|
504
|
+
],
|
|
505
|
+
"methods": [],
|
|
506
|
+
"properties": [
|
|
507
|
+
{
|
|
508
|
+
"name": "types",
|
|
509
|
+
"tags": [],
|
|
510
|
+
"docs": "List of accepted MIME types or file extensions.\nOn iOS, only MIME types are supported.\nExamples: ['image/*'], ['application/pdf'], ['.pdf', '.doc']",
|
|
511
|
+
"complexTypes": [],
|
|
512
|
+
"type": "string[] | undefined"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "limit",
|
|
516
|
+
"tags": [
|
|
517
|
+
{
|
|
518
|
+
"text": "0",
|
|
519
|
+
"name": "default"
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"docs": "Maximum number of files to pick.\nSet to 0 for unlimited (platform default).",
|
|
523
|
+
"complexTypes": [],
|
|
524
|
+
"type": "number | undefined"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"name": "readData",
|
|
528
|
+
"tags": [
|
|
529
|
+
{
|
|
530
|
+
"text": "false",
|
|
531
|
+
"name": "default"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"docs": "Whether to read the file data as base64.\nNote: Reading large files may cause memory issues.",
|
|
535
|
+
"complexTypes": [],
|
|
536
|
+
"type": "boolean | undefined"
|
|
537
|
+
}
|
|
538
|
+
]
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "PickMediaOptions",
|
|
542
|
+
"slug": "pickmediaoptions",
|
|
543
|
+
"docs": "Options for picking media (images/videos).",
|
|
544
|
+
"tags": [
|
|
545
|
+
{
|
|
546
|
+
"text": "8.0.0",
|
|
547
|
+
"name": "since"
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
"methods": [],
|
|
551
|
+
"properties": [
|
|
552
|
+
{
|
|
553
|
+
"name": "limit",
|
|
554
|
+
"tags": [
|
|
555
|
+
{
|
|
556
|
+
"text": "0",
|
|
557
|
+
"name": "default"
|
|
558
|
+
}
|
|
559
|
+
],
|
|
560
|
+
"docs": "Maximum number of files to pick.\nSet to 0 for unlimited (platform default).",
|
|
561
|
+
"complexTypes": [],
|
|
562
|
+
"type": "number | undefined"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"name": "readData",
|
|
566
|
+
"tags": [
|
|
567
|
+
{
|
|
568
|
+
"text": "false",
|
|
569
|
+
"name": "default"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"docs": "Whether to read the file data as base64.\nNote: Reading large files may cause memory issues.",
|
|
573
|
+
"complexTypes": [],
|
|
574
|
+
"type": "boolean | undefined"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "skipTranscoding",
|
|
578
|
+
"tags": [
|
|
579
|
+
{
|
|
580
|
+
"text": "false",
|
|
581
|
+
"name": "default"
|
|
582
|
+
}
|
|
583
|
+
],
|
|
584
|
+
"docs": "iOS only: Skip transcoding of videos.",
|
|
585
|
+
"complexTypes": [],
|
|
586
|
+
"type": "boolean | undefined"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"name": "ordered",
|
|
590
|
+
"tags": [
|
|
591
|
+
{
|
|
592
|
+
"text": "false",
|
|
593
|
+
"name": "default"
|
|
594
|
+
}
|
|
595
|
+
],
|
|
596
|
+
"docs": "iOS 15+ only: Show ordered selection badges.",
|
|
597
|
+
"complexTypes": [],
|
|
598
|
+
"type": "boolean | undefined"
|
|
599
|
+
}
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "PickDirectoryResult",
|
|
604
|
+
"slug": "pickdirectoryresult",
|
|
605
|
+
"docs": "Result of picking a directory.",
|
|
606
|
+
"tags": [
|
|
607
|
+
{
|
|
608
|
+
"text": "8.0.0",
|
|
609
|
+
"name": "since"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"methods": [],
|
|
613
|
+
"properties": [
|
|
614
|
+
{
|
|
615
|
+
"name": "path",
|
|
616
|
+
"tags": [],
|
|
617
|
+
"docs": "The path to the selected directory",
|
|
618
|
+
"complexTypes": [],
|
|
619
|
+
"type": "string"
|
|
620
|
+
}
|
|
621
|
+
]
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "ConvertHeicToJpegResult",
|
|
625
|
+
"slug": "convertheictojpegresult",
|
|
626
|
+
"docs": "Result of HEIC to JPEG conversion.",
|
|
627
|
+
"tags": [
|
|
628
|
+
{
|
|
629
|
+
"text": "8.0.0",
|
|
630
|
+
"name": "since"
|
|
631
|
+
}
|
|
632
|
+
],
|
|
633
|
+
"methods": [],
|
|
634
|
+
"properties": [
|
|
635
|
+
{
|
|
636
|
+
"name": "path",
|
|
637
|
+
"tags": [],
|
|
638
|
+
"docs": "The path to the converted JPEG file",
|
|
639
|
+
"complexTypes": [],
|
|
640
|
+
"type": "string"
|
|
641
|
+
}
|
|
642
|
+
]
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
"name": "ConvertHeicToJpegOptions",
|
|
646
|
+
"slug": "convertheictojpegoptions",
|
|
647
|
+
"docs": "Options for converting HEIC to JPEG.",
|
|
648
|
+
"tags": [
|
|
649
|
+
{
|
|
650
|
+
"text": "8.0.0",
|
|
651
|
+
"name": "since"
|
|
652
|
+
}
|
|
653
|
+
],
|
|
654
|
+
"methods": [],
|
|
655
|
+
"properties": [
|
|
656
|
+
{
|
|
657
|
+
"name": "path",
|
|
658
|
+
"tags": [],
|
|
659
|
+
"docs": "The path to the HEIC file to convert",
|
|
660
|
+
"complexTypes": [],
|
|
661
|
+
"type": "string"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
"name": "quality",
|
|
665
|
+
"tags": [
|
|
666
|
+
{
|
|
667
|
+
"text": "0.9",
|
|
668
|
+
"name": "default"
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
"docs": "The compression quality for JPEG (0.0 - 1.0).",
|
|
672
|
+
"complexTypes": [],
|
|
673
|
+
"type": "number | undefined"
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"name": "CopyFileOptions",
|
|
679
|
+
"slug": "copyfileoptions",
|
|
680
|
+
"docs": "Options for copying a file.",
|
|
681
|
+
"tags": [
|
|
682
|
+
{
|
|
683
|
+
"text": "8.0.0",
|
|
684
|
+
"name": "since"
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"methods": [],
|
|
688
|
+
"properties": [
|
|
689
|
+
{
|
|
690
|
+
"name": "from",
|
|
691
|
+
"tags": [],
|
|
692
|
+
"docs": "Source file path",
|
|
693
|
+
"complexTypes": [],
|
|
694
|
+
"type": "string"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "to",
|
|
698
|
+
"tags": [],
|
|
699
|
+
"docs": "Destination file path",
|
|
700
|
+
"complexTypes": [],
|
|
701
|
+
"type": "string"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"name": "overwrite",
|
|
705
|
+
"tags": [
|
|
706
|
+
{
|
|
707
|
+
"text": "false",
|
|
708
|
+
"name": "default"
|
|
709
|
+
}
|
|
710
|
+
],
|
|
711
|
+
"docs": "Whether to overwrite if destination exists.",
|
|
712
|
+
"complexTypes": [],
|
|
713
|
+
"type": "boolean | undefined"
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
"name": "PermissionStatus",
|
|
719
|
+
"slug": "permissionstatus",
|
|
720
|
+
"docs": "Permission status for file access.",
|
|
721
|
+
"tags": [
|
|
722
|
+
{
|
|
723
|
+
"text": "8.0.0",
|
|
724
|
+
"name": "since"
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
"methods": [],
|
|
728
|
+
"properties": [
|
|
729
|
+
{
|
|
730
|
+
"name": "readExternalStorage",
|
|
731
|
+
"tags": [],
|
|
732
|
+
"docs": "Whether permission to read media files is granted",
|
|
733
|
+
"complexTypes": [
|
|
734
|
+
"PermissionState"
|
|
735
|
+
],
|
|
736
|
+
"type": "PermissionState"
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"name": "accessMediaLocation",
|
|
740
|
+
"tags": [],
|
|
741
|
+
"docs": "Whether permission to access media location is granted",
|
|
742
|
+
"complexTypes": [
|
|
743
|
+
"PermissionState"
|
|
744
|
+
],
|
|
745
|
+
"type": "PermissionState"
|
|
746
|
+
}
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
{
|
|
750
|
+
"name": "PluginListenerHandle",
|
|
751
|
+
"slug": "pluginlistenerhandle",
|
|
752
|
+
"docs": "",
|
|
753
|
+
"tags": [],
|
|
754
|
+
"methods": [],
|
|
755
|
+
"properties": [
|
|
756
|
+
{
|
|
757
|
+
"name": "remove",
|
|
758
|
+
"tags": [],
|
|
759
|
+
"docs": "",
|
|
760
|
+
"complexTypes": [],
|
|
761
|
+
"type": "() => Promise<void>"
|
|
762
|
+
}
|
|
763
|
+
]
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
"enums": [],
|
|
767
|
+
"typeAliases": [
|
|
768
|
+
{
|
|
769
|
+
"name": "PermissionState",
|
|
770
|
+
"slug": "permissionstate",
|
|
771
|
+
"docs": "",
|
|
772
|
+
"types": [
|
|
773
|
+
{
|
|
774
|
+
"text": "'prompt'",
|
|
775
|
+
"complexTypes": []
|
|
776
|
+
},
|
|
777
|
+
{
|
|
778
|
+
"text": "'prompt-with-rationale'",
|
|
779
|
+
"complexTypes": []
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
"text": "'granted'",
|
|
783
|
+
"complexTypes": []
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
"text": "'denied'",
|
|
787
|
+
"complexTypes": []
|
|
788
|
+
}
|
|
789
|
+
]
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
"name": "PickerDismissedListener",
|
|
793
|
+
"slug": "pickerdismissedlistener",
|
|
794
|
+
"docs": "Listener callback for picker dismissed event.",
|
|
795
|
+
"types": [
|
|
796
|
+
{
|
|
797
|
+
"text": "(event: null): void",
|
|
798
|
+
"complexTypes": []
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"pluginConfigs": []
|
|
804
|
+
}
|