Skip to content

Commit

Permalink
[TIDOC-2262] Fix Clipboard example
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Mathews committed Jul 29, 2015
1 parent 4ff99e0 commit 0d0f97d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions apidoc/Titanium/UI/Clipboard/Clipboard.yml
Expand Up @@ -111,10 +111,10 @@ examples:
Then, store the string, "hello", to the clipboard and output it from the clipboard to the
console.
Ti.API.log('Deleting all text in Clipboard');
Ti.API.info('Deleting all text in Clipboard');
Ti.UI.Clipboard.clearText();
Ti.API.log('Clipboard.getText(): ' + Ti.UI.Clipboard.getText()); // returns empty string on Android and undefined on iOS
Ti.API.log('Set text Clipboard to hello');
Ti.API.info('Clipboard.getText(): ' + Ti.UI.Clipboard.getText()); // returns empty string on Android and undefined on iOS
Ti.API.info('Set text Clipboard to hello');
Ti.UI.Clipboard.setText('hello');
Ti.API.log('Clipboard.hasText(), should be true: ' + Ti.UI.Clipboard.hasText()); // returns true on Android and 1 on iOS
Ti.API.log('Clipboard.getText(), should be hello: ' + Ti.UI.Clipboard.getText());
Ti.API.info('Clipboard.hasText(), should be true: ' + Ti.UI.Clipboard.hasText()); // returns true on Android and 1 on iOS
Ti.API.info('Clipboard.getText(), should be hello: ' + Ti.UI.Clipboard.getText());

0 comments on commit 0d0f97d

Please sign in to comment.