Skip to content

Capacitor clipboard implementation supporting html

Notifications You must be signed in to change notification settings

BricksInc/brx-clipboard

Repository files navigation

brx-clipboard

clipboard implementation supporting html

Install

npm install brx-clipboard
npx cap sync

API

write(...)

write(options: WriteOptions) => Promise<void>

Write a value to the clipboard (the "copy" action)

Param Type
options WriteOptions

read()

read() => Promise<ReadResult>

Read a value from the clipboard (the "paste" action)

Returns: Promise<ReadResult>


Interfaces

WriteOptions

Represents the data to be written to the clipboard.

Prop Type Description
text string Text value to copy.
html string HTML value to copy.
image string Image in Data URL format to copy.
url string URL string to copy.
label string User visible label to accompany the copied data (Android Only).

ReadResult

Represents the data read from the clipboard.

Prop Type Description
text string Text reprensentation of data from the clipboard
value string Data read from the clipboard.
type string Type of data in the clipboard.

About

Capacitor clipboard implementation supporting html

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published