Package 

Class GiniCaptureDebug


  • 
    public final class GiniCaptureDebug
    
                        

    This class allows you to enable and disable debugging for the Gini Capture SDK.

    Debugging is disabled by default.

    Warning: Don't forget to disable debugging before releasing.

    If debug is enabled:

    • The reviewed jpegs are written to a folder called {@code ginicapturesdk} in your app's external directory.
    • Method Summary

      Modifier and Type Method Description
      static void enable() Enables debugging for the Gini Capture SDK.
      static void disable() Disables debugging for the Gini Capture SDK.
      static void writeDocumentToFile(Context context, Document document, String suffix) Helper for writing a document to file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enable

         static void enable()

        Enables debugging for the Gini Capture SDK.

      • disable

         static void disable()

        Disables debugging for the Gini Capture SDK.

      • writeDocumentToFile

         static void writeDocumentToFile(Context context, Document document, String suffix)

        Helper for writing a document to file. Has no effect if debugging is disabled.

        The filename consists of a timestamp concatenated with the suffix. Ex.: if suffix is "_original" then {@code 1469541253_original.jpeg}

        Destination directory is {@code ginicapturesdk} inside your apps external files directory: {@code /sdcard/Android/data/your.app.id/files/ginicapturesdk/}