ATR

@objcMembers
public class ATR : BaseClass

SmartCardIO - ATR class

A Smart Card’s answer-to-reset bytes. A Card’s ATR object can be obtained by calling Card.getATR().

  • Returns a copy of the bytes contained in this ATR.

    Declaration

    Swift

    public func getBytes() -> Data

    Return Value

    Data containing the ATR

  • Returns a copy of the historical bytes in this ATR. If this ATR does not contain historical bytes, an Data buffer of length zero is returned.

    Declaration

    Swift

    public func getHistoricalBytes() -> Data

    Return Value

    Data containing the ATR historical bytes

  • Returns a string representation of this ATR.

    Declaration

    Swift

    public func toString() -> String

    Return Value

    String representation of this ATR