Package com.artifex.solib
Class DefaultClipboardHandler
java.lang.Object
com.artifex.solib.DefaultClipboardHandler
- All Implemented Interfaces:
SOClipboardHandler
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis method ascertains whether the clipboard has any data.This method returns the contents of the clipboard.voidinitClipboardHandler(android.app.Activity activity) Initialise the class, installing the example system clipboard listener if available.voidThis method passes a string, cut or copied from the document, to be stored in the clipboard.voidThis method releases the clipboard handler
-
Constructor Details
-
DefaultClipboardHandler
public DefaultClipboardHandler()
-
-
Method Details
-
putPlainTextToClipboard
This method passes a string, cut or copied from the document, to be stored in the clipboard.- Specified by:
putPlainTextToClipboardin interfaceSOClipboardHandler- Parameters:
text- The text to be stored in the clipboard.
-
getPlainTextFromClipoard
This method returns the contents of the clipboard.- Specified by:
getPlainTextFromClipoardin interfaceSOClipboardHandler- Returns:
- The text read from the clipboard.
-
clipboardHasPlaintext
public boolean clipboardHasPlaintext()This method ascertains whether the clipboard has any data.- Specified by:
clipboardHasPlaintextin interfaceSOClipboardHandler- Returns:
- True if it has. False otherwise.
-
initClipboardHandler
public void initClipboardHandler(android.app.Activity activity) Initialise the class, installing the example system clipboard listener if available.- Specified by:
initClipboardHandlerin interfaceSOClipboardHandler- Parameters:
activity- The current activity.
-
releaseClipboardHandler
public void releaseClipboardHandler()This method releases the clipboard handler- Specified by:
releaseClipboardHandlerin interfaceSOClipboardHandler
-