001 /* 002 * =========================================================================================== 003 * = COPYRIGHT 004 * PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION 005 * This software is supplied under the terms of a license agreement or nondisclosure 006 * agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or 007 * disclosed except in accordance with the terms in that agreement. 008 * Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved. 009 * Description: // Detail description about the function of this module, 010 * // interfaces with the other modules, and dependencies. 011 * Revision History: 012 * Date Author Action 013 * 2017/04/01 PAX Create/Add/Modify/Delete 014 * =========================================================================================== 015 */ 016 017package com.pax.dal; 018 019import com.pax.dal.entity.IDReadResult; 020 021/** 022 * Currently only supports mainland China ID card 023 * 024 * @author Uni.W 025 * @since V2.00.03 026 * 027 */ 028public interface IIDReader { 029 030 public interface IDReadListener { 031 /** 032 * <div class="zh"> 读取内容成功时回调 </div> <div class="en"> the underlying called when read successful </div> 033 * 034 * @param result 035 * {@link IDReadResult} 036 * @since V2.00.03 037 */ 038 void onRead(IDReadResult result); 039 040 /** 041 * <div class="zh"> 读取结束回调 </div> <div class="en"> the underlying called when finish reading </div> 042 * 043 * @since V2.00.03 044 */ 045 void onComplete(); 046 } 047 048 /** 049 * <div class="zh"> 开始读取</div> <div class="en"> start reading </div> 050 * 051 * @param listener 052 * {@link IDReadListener} 053 * @since V2.00.03 054 */ 055 public void start(IDReadListener listener); 056}