capacitor-ios-file-picker
v0.0.11
Published
Allows picking one or more files/directories on iOS, including files from outside your app's sandbox. Under the covers, we use the iOS UIDocumentPickerViewController and security-scoped URLs to accomplish this.
Readme
capacitor-ios-file-picker
Allows picking one or more files/directories on iOS, including files from outside your app's sandbox. Under the covers, we use the iOS UIDocumentPickerViewController and security-scoped URLs to accomplish this.
Install
npm install capacitor-ios-file-picker
npx cap syncAPI
chooseDirectory()
chooseDirectory() => Promise<UrlBookmark>Returns: Promise<UrlBookmark>
accessDirectory(...)
accessDirectory(options: UrlBookmark) => Promise<SecureUrl>| Param | Type |
| ------------- | --------------------------------------------------- |
| options | UrlBookmark |
Returns: Promise<SecureUrl>
releaseDirectory(...)
releaseDirectory(options: UrlBookmark) => Promise<void>| Param | Type |
| ------------- | --------------------------------------------------- |
| options | UrlBookmark |
Interfaces
UrlBookmark
| Prop | Type |
| ----------------- | ------------------- |
| urlBookmark | string |
SecureUrl
| Prop | Type |
| --------- | ------------------- |
| url | string |
