setResultListener(). This call should happen as early as possible, ideally immediately after setting the API key. As an example, the following code will progress to the EnterCardActivity when scanning is complete, passing along the card details if we got them.
onSuccess()will be called when we successfully scan a card, and
onFailure()is called when we were not able to scan a card.
onFailure()is an indicator of why things failed; the various values that can be passed in are provided here:
setApiKey()and that it is the correct value.
onPermissionsGranted(), which takes no parameters. We will not attempt to start up any camera functionality prior to being told that permissions were granted.
onDestroy()functions you must make a call into our function of the exact same name with no arguments. We will not start up our preview until we have been informed that
onResume()has been called.
FLAG_SECUREon the window. For example:
CreditCardclass upon success. They are provided as
Rects and can be accessed with
card.dateBoundingBox. They are provided as bounding boxes using the DyScanView's coordinate system, so you will likely have to convert them to another coordinate system prior to use. Specifically, the View's coordinate system is a graphics coordinate system, where the origin is in the upper left corner, the x axis increases to the right, the y axis increases down the screen, and each dimension is measured in pixels.
ERRORlevel logs. If you want additional logging, you can get
INFOlevel logs to help in debugging by making the following call:
dynetinamespace as mentioned at the top of this page in order to use the custom attributes we provide.
showHelperTextis set to false.
onFailure()being called with
EXIT_REASON_USER_REQUESTED_MANUAL_ENTRYas the reason.