Package com.artifex.solib
Class ArDkLib
java.lang.Object
com.artifex.solib.ArDkLib
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringstatic final intstatic final intstatic final intstatic final intstatic final intA password is required to open this document.static final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanfind out if the system clipboard has textabstract ArDkBitmapcreateBitmap(int w, int h) static voidenumeratePdfToc(ArDkDoc doc, ArDkLib.EnumeratePdfTocListener listener) static ConfigOptionsstatic SOClipboardHandlerstatic Stringget text from the system clipboardstatic SOSecureFSstatic booleanisNightMode(android.content.Context context) abstract ArDkDocopenDocument(String path, SODocLoadListener listener, android.content.Context context, ConfigOptions cfg) static voidputTextToClipboard(String text) copy text to the system clipboardvoidstatic final voidrunOnUiThread(Runnable action) Function to delay an action until it can be run on the UiThreadstatic voidstatic voidsetClipboardHandler(SOClipboardHandler handler) static void
-
Field Details
-
mDebugTag
- See Also:
-
SmartOfficeDocErrorType_NoError
public static final int SmartOfficeDocErrorType_NoError- See Also:
-
SmartOfficeDocErrorType_UnsupportedDocumentType
public static final int SmartOfficeDocErrorType_UnsupportedDocumentType- See Also:
-
SmartOfficeDocErrorType_EmptyDocument
public static final int SmartOfficeDocErrorType_EmptyDocument- See Also:
-
SmartOfficeDocErrorType_UnableToLoadDocument
public static final int SmartOfficeDocErrorType_UnableToLoadDocument- See Also:
-
SmartOfficeDocErrorType_UnsupportedEncryption
public static final int SmartOfficeDocErrorType_UnsupportedEncryption- See Also:
-
SmartOfficeDocErrorType_Aborted
public static final int SmartOfficeDocErrorType_Aborted- See Also:
-
SmartOfficeDocErrorType_OutOfMemory
public static final int SmartOfficeDocErrorType_OutOfMemory- See Also:
-
SmartOfficeDocErrorType_PasswordRequest
public static final int SmartOfficeDocErrorType_PasswordRequestA password is required to open this document. The app should provide it using SmartOffice_providePassword or if it doesn't want to proceed call SmartOfficeDoc_destroy or SmartOfficeDoc_abortLoad.- See Also:
-
-
Constructor Details
-
ArDkLib
public ArDkLib()
-
-
Method Details
-
openDocument
public abstract ArDkDoc openDocument(String path, SODocLoadListener listener, android.content.Context context, ConfigOptions cfg) -
enumeratePdfToc
-
setSecureFS
-
getSecureFS
-
setAppConfigOptions
-
getAppConfigOptions
-
createBitmap
-
setClipboardHandler
-
getClipboardHandler
-
putTextToClipboard
copy text to the system clipboard -
clipboardHasText
public static boolean clipboardHasText()find out if the system clipboard has text -
getClipboardText
get text from the system clipboard -
reclaimMemory
public void reclaimMemory() -
isNightMode
public static boolean isNightMode(android.content.Context context) -
runOnUiThread
Function to delay an action until it can be run on the UiThread- Parameters:
action- Action to run on the UiThread
-