Skip to content

Latest commit

 

History

History
49 lines (33 loc) · 808 Bytes

clipboard.md

File metadata and controls

49 lines (33 loc) · 808 Bytes
id title
clipboard
Clipboard

Clipboard gives you an interface for setting and getting content from Clipboard on both iOS and Android

Methods


Reference

Methods

getString()

static getString()

Get content of string type, this method returns a Promise, so you can use following code to get clipboard content

async _getContent() {
  var content = await Clipboard.getString();
}

setString()

static setString(content)

Set content of string type. You can use following code to set clipboard content

_setContent() {
  Clipboard.setString('hello world');
}

@param the content to be stored in the clipboard.