-
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 static Integerversion()This method returns the currently used Docutain SDK version. final static StringgetLastError()This method returns the latest error message, if any error occurred. final static BooleandeleteTempFiles(Boolean deleteTraceFileContent)This method deletes all temporary files created by the Docutain SDK. 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.
-
getLastError
final static String getLastError()
This method returns the latest error message, if any error occurred.
-
deleteTempFiles
final static Boolean deleteTempFiles(Boolean deleteTraceFileContent)
This method deletes all temporary files created by the Docutain SDK.
- Parameters:
deleteTraceFileContent- If true, the content of the Trace file which you can send us in order to solve any problems will also be deleted
-
getContext
final Application getContext()
-
setContext
final Unit setContext(Application context)
-
-
-
-