capacitor-plugin-filesharer
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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

Param Type
opts FileShareSingleOptions

Returns: any

Since: 0.0.1


shareMultiple(...)

shareMultiple(opts: FileShareMultiOptions) => any

Open 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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i capacitor-plugin-filesharer

    Weekly Downloads

    43

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    46.8 kB

    Total Files

    29

    Last publish

    Collaborators

    • mpat8121