Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 688 Bytes

File metadata and controls

37 lines (25 loc) · 688 Bytes
title description url contributors
Clipboard
Clipboard API
/docs/apis/clipboard
mlynch
jcesarmobile

Clipboard

The Clipboard API enables copy and pasting to/from the clipboard. On iOS this API also allows copying images and URLs.

Example

import { Plugins } from '@capacitor/core';

const { Clipboard } = Plugins;

Clipboard.write({
  string: "Hello, Moto"
});

let result = await Clipboard.read();
console.log('Got', result.type, 'from clipboard:', result.value);

API