com.pax.dal
Interface ILivenessDetector.LivenessDetectListener
-
- Enclosing interface:
- ILivenessDetector
public static interface ILivenessDetector.LivenessDetectListener
活体检测监听者。Liveness detect listener.- Since:
- V3.19.00
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description voidonDetectTime(long time)活检耗时。Time taken for detection.voidonError(int errCode, java.lang.String msg)活体检测失败。Liveness detect fail.voidonInitTime(long time)相机初始化到可预览耗时。Time taken for camera initialization to be previewed.voidonSuccess(java.util.List<LivenessDetectResult> results)活体检测成功。Liveness detect success.
-
-
-
Method Detail
-
onSuccess
void onSuccess(java.util.List<LivenessDetectResult> results)
活体检测成功。Liveness detect success.- Parameters:
results-活体检测结果。LivenessDetectResultLiveness detect results.LivenessDetectResult- Since:
- V3.19.00
-
onError
void onError(int errCode, java.lang.String msg)
活体检测失败。Liveness detect fail.- Parameters:
errCode-异常码。- -1:设备未连接。
- -2:授权失败,请检查网络是否可用。
- -3:活体检测超时。
- -4:取消活体检测。
- -5:支付金额格式错误。
- -6:使用自定义UI界面时,未设置检测区域坐标。
- -7:未将FaceUIService添加到ServiceManager。
Error code.- -1:Device not connected.
- -2:Authorization failed. Please check whether the network is available.
- -3:Liveness detect timeout.
- -4:Cancel liveness detect.
- -4:Payment amount format error.
- -6:When using a custom UI interface, the detection area coordinates are not set.
- -7:FaceUIService was not added to the ServiceManager.
msg-错误信息。Error message.- Since:
- V3.19.00
-
onInitTime
void onInitTime(long time)
相机初始化到可预览耗时。Time taken for camera initialization to be previewed.- Parameters:
time-相机初始化到可预览耗时。Time taken for camera initialization to be previewed.- Since:
- V3.19.00
-
onDetectTime
void onDetectTime(long time)
活检耗时。Time taken for detection.- Parameters:
time-活检耗时。Time taken for detection.- Since:
- V3.19.00
-
-