capacitor-plugin-filesharer
v1.0.0
Published
Capacitor plugin to allow file sharing on Android and iOS
Downloads
411
Maintainers
Readme
capacitor-plugin-filesharer
Allows sharing of files
Install
npm install capacitor-plugin-filesharer
npx cap syncAPI
share(...)
share(opts: FileShareSingleOptions) => anyOpen share activity card with an attached base64Data
| Param | Type |
| ---------- | ------------------------------------------------------------------------- |
| opts | FileShareSingleOptions |
Returns: any
Since: 0.0.1
shareMultiple(...)
shareMultiple(opts: FileShareMultiOptions) => anyOpen share activity with multiple base64Data strings
| Param | Type |
| ---------- | ----------------------------------------------------------------------- |
| opts | FileShareMultiOptions |
Returns: any
Since: 0.0.1
Interfaces
FileShareSingleOptions
| Prop | Type | Description |
| ------------ | ------------------- | ------------------------------- |
| header | string | Title of the share window popup |
FileShareResult
| Prop | Type |
| ------------- | -------------------- |
| result | boolean |
| message | string |
FileShareMultiOptions
| Prop | Type | Description |
| ------------ | ------------------- | ------------------------------- |
| header | string | Title of the share window popup |
| files | {} | Array of files for uploading |
FileShareOptions
| Prop | Type | Description |
| ----------------- | ------------------- | -------------------------------------------------------------------- |
| filename | string | Filename |
| base64Data | string | base64Data string |
| contentType | string | Content type using FileShareContentType of string for advanced types |
