clipboard implementation supporting html
npm install brx-clipboard
npx cap sync
write(options: WriteOptions) => Promise<void>
Write a value to the clipboard (the "copy" action)
Param | Type |
---|---|
options |
WriteOptions |
read() => Promise<ReadResult>
Read a value from the clipboard (the "paste" action)
Returns: Promise<ReadResult>
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). |
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. |