SCardReader

public class SCardReader : Equatable

Represents a slot

You can get this object with a call to SCardReaderList.getReader()

Remark

This object implements the Equatable protocol

Version

Version 1.0

Author

SpringCard
  • Contains the slot’s index

    Remark

    read-only

    Declaration

    Swift

    public var index: Int { get }
  • Contains the slot’s name

    Remark

    read-only

    Declaration

    Swift

    public var name: String { get }
  • Points to an SCardReaderList object

    Remark

    read-only

    Declaration

    Swift

    public var parent: SCardReaderList! { get }
  • Is card powered (by the application) ?

    Remark

    read-only

    Declaration

    Swift

    public var cardPowered: Bool { get }
  • Is a card present in the reader (slot) ?

    Remark

    read-only

    Declaration

    Swift

    public var cardPresent: Bool { get }
  • Send a direct command to the device

    Declaration

    Swift

    public func control(command: [UInt8])

    Parameters

    command

    The command to send to the reader

    Return Value

    Nothing, answer is available in the onControlDidResponse() callback

  • Connect to the card (power up + open a communication channel with the card)

    Declaration

    Swift

    public func cardConnect()

    Return Value

    Nothing, answer is available in the onCardDidConnect() callback