-
public class DocutainSDK
-
-
Field Summary
Fields Modifier and Type Field Description private Applicationcontextpublic final static DocutainSDKINSTANCE
-
Method Summary
Modifier and Type Method Description final static BooleaninitSDK(Application context, String licenseKey)Initializes the Docutain SDK. final Integerversion()This method returns the currently used Docutain SDK version. final IntegerpageCount()This method returns the page count of the currently loaded document. final static FilegetTraceFile()This method returns the Trace file which includes logging and error messages. final static StringgetLastError()This method returns the latest error message, if any error occurred. final ApplicationgetContext()final UnitsetContext(Application context)-
-
Method Detail
-
initSDK
final static Boolean initSDK(Application context, String licenseKey)
Initializes the Docutain SDK.
This method needs to be called prior to using any functionality of the Docutain SDK. Put it in your Application class onCreate method.
- Parameters:
context- the Application context.licenseKey- your Docutain SDK license key.
-
pageCount
final Integer pageCount()
This method returns the page count of the currently loaded document.
-
getTraceFile
final static File getTraceFile()
This method returns the Trace file which includes logging and error messages.
-
getLastError
final static String getLastError()
This method returns the latest error message, if any error occurred.
-
getContext
final Application getContext()
-
setContext
final Unit setContext(Application context)
-
-
-
-