clipboard allows you to
setString() from the system clipboard.
Not long ago, We’re still suffering from such a situation that we got a verification code sent by SMS, and we had no way to get the code from the SMS text but to typed it by our hands. How frustrated it is! But now you can enable your app to get the code from the system clipboard by calling
- only support text.
- only works on Android and iOS. NOT works for html5, for web security reason.
reads from clipboard.
callback(function): the callback function after executing this action.
data is the return value.
sets the text to clipboard, having the same effect as copying manually.
text(string): the text copied to clipboard.