Package com.artifex.solib
Interface SOClipboardHandler
- All Known Implementing Classes:
DefaultClipboardHandler
public interface SOClipboardHandler
This interface specifies the basis for implementing a class to handle
clipboard actions for the document editor.
-
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) This method initializes the clipboard handlervoidThis method passes a string, cut or copied from the document, to be stored in the clipboard.voidThis method releases the clipboard handler
-
Method Details
-
putPlainTextToClipboard
This method passes a string, cut or copied from the document, to be stored in the clipboard.- Parameters:
text- The text to be stored in the clipboard.
-
getPlainTextFromClipoard
String getPlainTextFromClipoard()This method returns the contents of the clipboard.- Returns:
- The text stored in the clipboard.
-
clipboardHasPlaintext
boolean clipboardHasPlaintext()This method ascertains whether the clipboard has any data.- Returns:
- True if it has. False otherwise.
-
initClipboardHandler
void initClipboardHandler(android.app.Activity activity) This method initializes the clipboard handler- Parameters:
activity- the context
-
releaseClipboardHandler
void releaseClipboardHandler()This method releases the clipboard handler
-