ASGunReader

open class ASGunReader:NSObject,AsReaderDelegate,CommonReader

An instance of the ASGunReader class provides some methods to handle the AsReader GUN instance.

  • The delegate object for receiving event notifications and tags from reader.

    Declaration

    Swift

    open var delegate:CommonReaderDelegate?
  • Initialize an AsReader GUN instance inside.

    Declaration

    Swift

    public func initReader()
  • Set the AsReader GUN instance from outside.

    Declaration

    Swift

    public func initReader(_ reader:AsReader,initParamterFlag:Bool)
  • close the connection

    Declaration

    Swift

    public func disconnect()
  • Starts reading tags

    Declaration

    Swift

    public func startInventory()
  • Stop reading tags.

    Declaration

    Swift

    public func stopInventory()
  • Sets the frequency with index.

    Declaration

    Swift

    open func setChannelIndex(_ index:Int)
  • Sets the epc filter.

    Declaration

    Swift

    public func setEpcFilter(start:Int,mask:String)
  • Returns tags.

    Declaration

    Swift

    public func readTag(_ tag: String!, rssi: Float, phase: Float, frequency: Float)
  • Called when the operational status of AsReader changed.

    Declaration

    Swift

    public func changedActionState(_ action: CommandType, resultCode: Int)
  • Called when the trigger button is pressed or released.

    Declaration

    Swift

    public func on(asReaderTriggerKeyEvent status: Bool) -> Bool
  • Sepcifies whether to use the trigger of the reader.

    Declaration

    Swift

    open var useTrigger = true
  • It will record log messages if P3SDK.debugMode is set to true.

    Declaration

    Swift

    open var logMsg:NSMutableString?
  • An bool value that indicates whether the reader is connected(true) or not(false).

    Declaration

    Swift

    public var isConnected:Bool
  • Returns the name of reader.

    Declaration

    Swift

    open var readerName:String
  • Returns the output power in dbm.

    Declaration

    Swift

    open var power: Float
  • returns all of the power values that can be set.

    Declaration

    Swift

    open var powerList:[Float]
  • Returns or sets the time taken for the antenna operation during the inventory

    Declaration

    Swift

    open var inventoryTime:Int32
  • Returns or sets the idle time when AsReader Device is running the inventory.

    Declaration

    Swift

    open var idleTime:Int32
  • Returns or sets the frequency with the table information.

    Declaration

    Swift

    open var channel:[SelectData]
  • Returns or sets the volume with the table information.

    Declaration

    Swift

    open var volume:[SelectData]
  • Returns or sets the vibrator with the table information.

    Declaration

    Swift

    open var vibrator:[SelectData]
  • Returns the status of the battery.

    Declaration

    Swift

    open var batteryStatus:Int
  • Returns or sets the session.

    Declaration

    Swift

    open var session:Int
  • Returns or sets the session Flag.

    Declaration

    Swift

    open var sessionFlag:Int
  • Returns or sets the linkProfile.

    Declaration

    Swift

    open var linkProfile:Int32
  • Returns the region name of RF module.

    Declaration

    Swift

    open var regionName:String
  • Returns or sets the inventory is continuous or singular.

    Declaration

    Swift

    open var continuousMode:Bool