Class ArDkLib

java.lang.Object
com.artifex.solib.ArDkLib
Direct Known Subclasses:
MuPDFLib, SOLib

public abstract class ArDkLib extends Object
  • Field Details

    • mDebugTag

      protected static final String 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_PasswordRequest
      A 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

      public static void enumeratePdfToc(ArDkDoc doc, ArDkLib.EnumeratePdfTocListener listener)
    • setSecureFS

      public static void setSecureFS(SOSecureFS fs)
    • getSecureFS

      public static SOSecureFS getSecureFS()
    • setAppConfigOptions

      public static void setAppConfigOptions(ConfigOptions co)
    • getAppConfigOptions

      public static ConfigOptions getAppConfigOptions()
    • createBitmap

      public abstract ArDkBitmap createBitmap(int w, int h)
    • setClipboardHandler

      public static void setClipboardHandler(SOClipboardHandler handler)
    • getClipboardHandler

      public static SOClipboardHandler getClipboardHandler()
    • putTextToClipboard

      public static void putTextToClipboard(String text)
      copy text to the system clipboard
    • clipboardHasText

      public static boolean clipboardHasText()
      find out if the system clipboard has text
    • getClipboardText

      public static String getClipboardText()
      get text from the system clipboard
    • reclaimMemory

      public void reclaimMemory()
    • isNightMode

      public static boolean isNightMode(android.content.Context context)
    • runOnUiThread

      public static final void runOnUiThread(Runnable action)
      Function to delay an action until it can be run on the UiThread
      Parameters:
      action - Action to run on the UiThread