Skip to content

Commit 1d06ce8

Browse files
committed
add clipboard sample
1 parent fe9372a commit 1d06ce8

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

qpython-docs/source/en/guide_androidhelpers.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ Clipboard APIs
2525

2626
::
2727

28-
sample code to show setClipboard/getClipboard
28+
from androidhelper import Android
29+
droid = Android()
30+
31+
#setClipboard
32+
droid.setClipboard("Hello World")
33+
34+
#getClipboard
35+
clipboard = droid.getClipboard().result
2936

3037

3138
Intent & startActivity APIs

0 commit comments

Comments
 (0)