| class info |
| com.huawei.hms.mlplugin.card.icr.cn.MLCnIcrCapture.CallBack |
| Recognition result callback function. |
| Return type | Method name |
| void | onCanceled() |
| void | onDenied() |
| void | onFailure(int retCode, android.graphics.Bitmap bitmap) |
| void | onSuccess(mlplugin.card.icr.cn.MLCnIcrCaptureResult MLCnIcrCaptureResult) |
| Method |
| public void onCanceled() |
| The recognition is canceled by the user. |
| Method |
| public void onDenied() |
| The camera does not support recognition. |
| Method |
| public void onFailure(int retCode, android.graphics.Bitmap bitmap) |
| Recognition failure. |
Parameters
| Parameter name | Parameter desc |
| retCode | Result code. |
| bitmap | ID card image. |
| Method |
| public void onSuccess(mlplugin.card.icr.cn.MLCnIcrCaptureResult result) |
| Returns Chinese second-generation ID card information after the recognition is successful. |
Parameters
| Parameter name | Parameter desc |
| result | Recognition result. |