TagFinder
public class TagFinder:CommonReaderDelegate
An instance of the TagFinder class can receive tags from the reader,compute the positions of tags and show them on RadarViews.
-
The object of TagFinderDelegate.
Declaration
Swift
public var delegate:TagFinderDelegate?
-
Retuns an instance of the TagFinder class. If authentication failed,it will return nil.
Declaration
Swift
public static var shareInstance:TagFinder?
-
Initalizes an AsReader instance inside P2SDK.
Declaration
Swift
public func initReader()
-
Sets the filter by specifying the start bits and epc mask.
Declaration
Swift
public func setFilter(start:Int,mask:String)
-
Sets the target epc
Declaration
Swift
public func setEpcTarget(_ epc:String)
-
Removes the target epc.
Declaration
Swift
public func clearEpcTarget()
-
Clears values.
It should be called before calling addView method.
Declaration
Swift
public func clear()
-
The TagFinder instance will show positions of tags on RadarViews which are added.
Declaration
Swift
public func addView(_ view:RadarView)
-
Starts updating RadarViews and search status.
Declaration
Swift
public func startUpate()
-
Stops updating RadarViews.
Declaration
Swift
public func stopUpdate()
-
Clears all positions of tags and reset RadarViews to the inital status.
Declaration
Swift
public func reset()
-
Inherits from the CommonReaderDelegate protocol.
Declaration
Swift
public func reportTag(_ tag: TagData)
-
Inherits from the CommonReaderDelegate protocol.
Declaration
Swift
public func reportReaderStatus(_ command: ReaderStatus, result: Bool)
-
Sets a target tag for searching.
Declaration
Swift
public var targetEpc:String
-
A Bool value that specifies whether the sound is played when the search status changes.
Declaration
Swift
public var soundFlag = true
-
The TagManager object containing the positions of tags.
Declaration
Swift
public var tagManager:TagManager
-
The ASGunReader object offering some methods to handle the AsReader GUN instance.
Declaration
Swift
public var reader:ASGunReader