P3SDK

public class P3SDK

Contains some constants and static methods

  • The storyboard ID of search view controller

    Usage Example:

    let sd = UIStoryboard(name: "P3Finder", bundle: Bundle(for:P3SDK.self))
    let vc = sd.instantiateViewController(withIdentifier: P3SDK.SearchVC_ID)
    self.navigationController?.pushViewController(vc, animated: true)
    

    Declaration

    Swift

    public static let SearchVC_ID = "navi"
  • The storyboard ID of taglist view controller

    Usage Example:

    let sd = UIStoryboard(name: "P3Finder", bundle: Bundle(for:P3SDK.self))
    let vc = sd.instantiateViewController(withIdentifier: P3SDK.TagListVC_ID)
    self.navigationController?.pushViewController(vc, animated: true)
    

    Declaration

    Swift

    public static let TagListVC_ID = "taglist"
  • The storyboard ID of settings view controller

    Usage Example:

    let sd = UIStoryboard(name: "P3Finder", bundle: Bundle(for:P3SDK.self))
    let vc = sd.instantiateViewController(withIdentifier: P3SDK.SettingVC_ID)
    self.navigationController?.pushViewController(vc, animated: true)
    

    Declaration

    Swift

    public static let SettingVC_ID = "settings"
  • The storyboard ID of rssi-range view controller

    Usage Example:

    let sd = UIStoryboard(name: "P3Finder", bundle: Bundle(for:P3SDK.self))
    let vc = sd.instantiateViewController(withIdentifier: P3SDK.RssiRangeVC_ID)
    self.navigationController?.pushViewController(vc, animated: true)
    

    Declaration

    Swift

    public static let RssiRangeVC_ID = "rssi-range"
  • Authentication result of P3SDK.

    Declaration

    Swift

    public static var authResult:Bool
  • The AsReader GUN instance.

    Remark

    The user can create the asReader GUN instance and pass it to P3SDK,and also can get the asReader GUN instance created inside P3SDK.

    Declaration

    Swift

    public static var asReader:AsReader?
  • If true,the App can get detailed log messages about reading tags and computing positions.

    Declaration

    Swift

    public static var DEBUG_MODE = false
  • A Bool value that specifies whether reader should initialize RF paramter when calling setReader method.

    • true:reader will always initialize RF paramter when calling setReader method
    • false: reader only initialize RF paramter once when calling setReader method for the first time.

    Declaration

    Swift

    public static var alwaysInitReaderParamter = true
  • Sets the target epc for the search view controller.

    Declaration

    Swift

    public static func setTargetEpc(_ epc:String, searchVC:UIViewController)

    Parameters

    epc

    EPC

    searchVC

    the instance of search view controller

  • The array containing rssi-range values

    Remark

    Because different tags and different environments have different RSSI values to distances Far/Near/Close, the user need to set rssi-range values.

    Declaration

    Swift

    public static var rssiRangeList:[RSSIRangeParameter]
  • Returns the version of P3SDK.

    Declaration

    Swift

    public static var sdkVersion:String
  • Verifies the authentication of P3SDK.

    • true:Success
    • false:Failed

    Declaration

    Swift

    public static func authenticate()->Bool

    Return Value

  • Remove the authentication of P3SDK.

    Important Notes

    P3SDK can not work after you called this method, but it will verify the authentication automatically when the application starts next time.

    Declaration

    Swift

    public static func removeAuthentication()