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.
Downloads
20
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 sync
API
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 |