mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 08:23:00 +08:00
Added ability to clean clipboard ✨ (#2468)
- Added the possibility to clean the clipboard on Android, iOS and Windows.
This commit is contained in:
parent
5dede9b536
commit
30f5b71f4a
@ -25,6 +25,8 @@ import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
* alert('Error: ' + reject);
|
* alert('Error: ' + reject);
|
||||||
* }
|
* }
|
||||||
* );
|
* );
|
||||||
|
*
|
||||||
|
* this.clipboard.clear();
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
@ -52,4 +54,11 @@ export class Clipboard extends IonicNativePlugin {
|
|||||||
@Cordova()
|
@Cordova()
|
||||||
paste(): Promise<any> { return; }
|
paste(): Promise<any> { return; }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Clear the text stored in clipboard
|
||||||
|
* @returns {Promise<any>} Returns a promise after the text has been cleaned
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
clear(): Promise<any> { return; }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user