Example Usage: public void onSimulScanData(SimulScanData simulscanData) { Date timestamp = new Date(simulscanData.getTimestamp()); List<SimulScanElement> simulscanDataElements = simulscanData.getElements(); List<SimulScanRegion> simulscanDataRegions = new ArrayList<SimulScanRegion>(); for (SimulScanElement curElement : simulscanDataElements) { if (curElement instanceof SimulScanRegion) { Log.d(TAG, ((SimulScanRegion) curElement).getName()); } else if (curElement instanceof SimulScanGroup) { List<SimulScanRegion> regionsInGroup = ((SimulScanGroup)curElement).getRegions(); for (SimulScanRegion curRegion : regionsInGroup){ Log.d(TAG, "Group:"+ ((SimulScanGroup)curElement).getName() +"Region:"+ ((SimulScanRegion) curRegion).getName()); } } } }
@Deprecated
public class SimulScanData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SimulScanData()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<SimulScanElement> |
getElements()
Deprecated.
Returns a list of scanned elements.
|
SimulScanTemplate |
getTemplate()
Deprecated.
Returns the scanned template.
|
java.lang.String |
getTimestamp()
Deprecated.
Returns the time at which the data was captured.
|
public java.lang.String getTimestamp()
public SimulScanTemplate getTemplate()
public java.util.List<SimulScanElement> getElements()