HealthCard

public class HealthCard : HealthCardType

HealthCard is the class that is used to bind the CardReaderProviderAPI channel to the HealthCardControl layer

  • The current card channel to use to send/receive APDUs over

    Declaration

    Swift

    public private(set) var currentCardChannel: CardChannelType
  • The status of the card and channel

    Declaration

    Swift

    public private(set) var status: HealthCardStatus
  • Initialize a HealthCard with a card channel and set its initial status

    Throws

    CardError when opening the basic channel throws

    Declaration

    Swift

    public init(card: CardType, status: HealthCardStatus = .unknown) throws

    Parameters

    card

    The associated Card

    status

    Initial status (default: .unknown)

  • The number of the current card channel.

    Declaration

    Swift

    public var channelNumber: Int { get }
  • Identify whether the current card channel supports APDU extended length commands/responses.

    Declaration

    Swift

    public var extendedLengthSupported: Bool { get }
  • Max length of a APDU body in bytes supported by the current card channel.

    Declaration

    Swift

    public var maxMessageLength: Int { get }
  • Max length of a APDU response supported by the current card channel.

    Declaration

    Swift

    public var maxResponseLength: Int { get }