public abstract class BaseScanner
extends java.lang.Object
implements com.gigatms.scanChannel.listener.OnScanBehaviorStopCallback
Constructor and Description |
---|
BaseScanner() |
Modifier and Type | Method and Description |
---|---|
CommunicationType |
getCurrentCommunicationType() |
void |
onDestroy() |
void |
onScanStop(CommunicationType type) |
boolean |
setCommunicationType(CommunicationType type)
This method change the Communication Type of the Scanner.
|
void |
setScanDebugCallback(com.gigatms.ScanDebugCallback scanDebugCallback) |
void |
startScan()
Start to scan devices with a default timeout(10000ms)
or a timeout which is set through
startScan(int timeout)
If a device is scanned, ScannerCallback would call didDiscoveredDevice . |
void |
startScan(int timeout)
Set timeout and scan UHF device through this timeout.
|
void |
stopScan()
Stop Scanning UHF devices.
|
public void setScanDebugCallback(com.gigatms.ScanDebugCallback scanDebugCallback)
public boolean setCommunicationType(CommunicationType type)
Returns true if the Communication Type is supported. Return false if the Communication Type is not supported.
type
- The Communication Type of UHFScannerpublic CommunicationType getCurrentCommunicationType()
public void startScan()
startScan(int timeout)
If a device is scanned, ScannerCallback
would call didDiscoveredDevice
.
If a scanning process is stopped, ScannerCallback
would call didScanStop
.
public void startScan(int timeout)
startScan()
will scan device with this timeout.
If a UHF device is scanned, ScannerCallback
would call didDiscoveredDevice
.
If a scanning process is stopped, ScannerCallback
would call didScanStop
.
public void stopScan()
public void onDestroy()
public void onScanStop(CommunicationType type)
onScanStop
in interface com.gigatms.scanChannel.listener.OnScanBehaviorStopCallback