Files
demo-ickwrite/src/com/light/hard/scan/IHardScan.java
2018-05-20 21:07:42 +08:00

40 lines
609 B
Java

package com.light.hard.scan;
import com.light.hard.common.IHardBase;
import com.light.util.Event;
/**
* 扫描的实现接口
*
* @author Light
*
*/
public interface IHardScan extends IHardBase {
/**
* 打开之后自动连接
*/
boolean getAutoConnection();
/**
* 设置自动连接时间
*/
void setAutoConnection(boolean value);
/**
* 码类型
*/
CodeType getReadType();
/**
* 设置扫描类型,必须得支持
*
* @param value
*/
void setReadType(CodeType value);
/**
* 当扫描到数据的时候会触发该事件
*/
Event<DelegateScan> getOnRead();
}