public interface DigifiedCallback<T extends DigifiedResult>
Modifier and Type | Method and Description |
---|---|
void |
onFailure(DigifiedError digifiedError)
This method is called when there is a problem with the API call
|
void |
onProcessing(int captureType)
This method is called when we the SDK sending and processing the API request
|
void |
onResult(T result)
This method is called when the API request was successful and we have the response
|
void onResult(T result)
result
- the result from the API request of type T
that extends DigifiedResult
void onProcessing(int captureType)
captureType
- the capture type of the CaptureResult you are sending to the API via
Digified.send(CaptureResult, IdExtractionCallback)
or
Digified.send(CaptureResult, FaceMatchCallback)
void onFailure(DigifiedError digifiedError)
digifiedError
- the error that caused the request to fail
(you can find error codes here ErrorConstants
)