| class info |
| com.huawei.hms.mlplugin.card.bcr.MLBcrCapture.Callback |
| Represents the recognition result callback. |
| Return type | Method name |
| void | onCanceled() |
| void | onDenied() |
| void | onFailure(int retCode, android.graphics.Bitmap bitmap) |
| void | onSuccess(MLBcrCaptureResult result) |
| Method |
| public void onCanceled() |
| The operation is canceled by the user. |
| Method |
| public void onDenied() |
| The camera is unavailable. |
| Method |
| public void onFailure(int retCode, android.graphics.Bitmap bitmap) |
| Recognition failure callback. |
Parameters
| Parameter name | Parameter desc |
| retCode | Error code. The value -1 indicates that the recognition fails. |
| bitmap | Bank card image that fails to be recognized. |
| Method |
| public void onSuccess(MLBcrCaptureResult result) |
| Recognition success callback. |
Parameters
| Parameter name | Parameter desc |
| result | Recognition result. |