Interface CaptureCallback


public interface CaptureCallback
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onCancelled(int captureType)
    This method is called when the user pauses the app during capturing request
    void
    onCaptured(CaptureResult captureResult)
    This method is called when we have a successful CaptureResult
    void
    onFailed(DigifiedError digifiedError, int captureType)
    This method is called when there is a problem with the capture request
    void
    This method is called if the time out of the capture process has passed
  • Method Details

    • onCaptured

      void onCaptured(CaptureResult captureResult)
      This method is called when we have a successful CaptureResult
      Parameters:
      captureResult - the capture result of your capture request
    • onFailed

      void onFailed(DigifiedError digifiedError, int captureType)
      This method is called when there is a problem with the capture request
      Parameters:
      digifiedError - the error that caused the request to fail (you can find error codes here ErrorConstants)
      captureType - the capture type you wanted to capture (you can find capture types here DigifiedConstants.CaptureType
    • onCancelled

      void onCancelled(int captureType)
      This method is called when the user pauses the app during capturing request
      Parameters:
      captureType - the capture type you wanted to capture (you can find capture types here DigifiedConstants.CaptureType
    • onTimeout

      void onTimeout()
      This method is called if the time out of the capture process has passed