Package icyllis.modernui.core
Class Clipboard
java.lang.Object
icyllis.modernui.core.Clipboard
A helper class to get/set clipboard text, methods are only expected
to be called from the main thread.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getText()
Get text from clipboard, ornull
if it is empty or cannot be converted to string.static void
setText
(CharSequence text) Set clipboard text.
-
Constructor Details
-
Clipboard
public Clipboard()
-
-
Method Details
-
getText
Get text from clipboard, ornull
if it is empty or cannot be converted to string.- Returns:
- the clipboard text
-
setText
Set clipboard text.- Parameters:
text
- the text to set, must be not null
-