Clipboard
Clipboard management plugin for Cordova that supports iOS, Android, and Windows Phone 8.
联系我们?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic's experts offer official maintenance, support, and integration help.
Ionic 剪切板 Clipboard插件的安装(Installation)
Ionic EE comes with fully supported and maintained plugins from the Ionic Team. Learn More or Contact Us
Ionic 剪切板 Clipboard插件支持的平台(Supported Platforms)
- Android
- iOS
- Windows Phone 8
Ionic 剪切板 Clipboard插件的用法(Usage)
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();