1.0.0 • Published 5 years ago
capacitor-plugin-filesharer v1.0.0
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 |
1.0.0
5 years ago