1.0.0 • Published 4 years ago

capacitor-plugin-filesharer v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

capacitor-plugin-filesharer

Allows sharing of files

Install

npm install capacitor-plugin-filesharer
npx cap sync

API

share(...)

share(opts: FileShareSingleOptions) => any

Open share activity card with an attached base64Data

ParamType
optsFileShareSingleOptions

Returns: any

Since: 0.0.1


shareMultiple(...)

shareMultiple(opts: FileShareMultiOptions) => any

Open share activity with multiple base64Data strings

ParamType
optsFileShareMultiOptions

Returns: any

Since: 0.0.1


Interfaces

FileShareSingleOptions

PropTypeDescription
headerstringTitle of the share window popup

FileShareResult

PropType
resultboolean
messagestring

FileShareMultiOptions

PropTypeDescription
headerstringTitle of the share window popup
files{}Array of files for uploading

FileShareOptions

PropTypeDescription
filenamestringFilename
base64Datastringbase64Data string
contentTypestringContent type using FileShareContentType of string for advanced types