Search docs/
Getting StartedPlugins

Clipboard

Clipboard management plugin for Cordova that supports iOS, Android, and Windows Phone 8.

https://github.com/ihadeed/cordova-clipboard

Premier Version Available

Featuring regular release cycles, security and bug fixes, and guaranteed SLAs.

Available here

Installation

ionic cordova plugin add cordova-clipboardnpm install @ionic-native/clipboardnpm install cordova-clipboardnpm install @ionic-native/clipboardionic cap sync
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

React

See here.

Angular

import { Clipboard } from '@ionic-native/clipboard/ngx';

constructor(private clipboard: Clipboard) { }

...


this.clipboard.copy('Hello world');

this.clipboard.paste().then(
   (resolve: string) => {
      alert(resolve);
    },
    (reject: string) => {
      alert('Error: ' + reject);
    }
  );

this.clipboard.clear();
欧美牲交a欧美牲交aⅴ免费真_欧美日韩亚洲第一区在线_欧美日韩无线码免费