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 protocolVersion
Version 1.0Copyright
SpringCard-
Contains the slot’s index
Remark
read-onlyDeclaration
Swift
public var index: Int { get } -
Contains the slot’s name
Remark
read-onlyDeclaration
Swift
public var name: String { get } -
Points to an
SCardReaderListobjectRemark
read-onlyDeclaration
Swift
public var parent: SCardReaderList! { get } -
Is card powered (by the application) ?
Remark
read-onlyDeclaration
Swift
public var cardPowered: Bool { get } -
Is a card present in the reader (slot) ?
Remark
read-onlyDeclaration
Swift
public var cardPresent: Bool { get } -
Send a direct command to the device
Declaration
Swift
public func control(command: [UInt8])Parameters
commandThe 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
SCardReader Class Reference