limited-access-file-picker
v0.2.0
Published
Limited Access File Picker
Readme
limited-access-file-picker
Limited Access File Picker
Install
npm install limited-access-file-picker
npx cap syncAPI
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
pickFiles(...)
pickFiles(options?: PickFilesOptions | undefined) => Promise<{ data: string; name: string; mimeType: string; path: string; }>| Param | Type |
| ------------- | ------------------------------------------------------------- |
| options | PickFilesOptions |
Returns: Promise<{ data: string; name: string; mimeType: string; path: string; }>
Interfaces
PickFilesOptions
| Prop | Type | Description |
| --------------- | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| mediaType | 'photos' | 'videos' | 'all' | Restricts the picker to a specific media type. - 'photos' — show only images. - 'videos' — show only videos. - 'all' — show both images and videos with a segmented toggle (default). |
