SCardChannel
public class SCardChannel : Equatable
Represents a channel
You can get this object with a call to reader.cardConnect()
Version
Version 1.0Copyright
SpringCard-
Points to an
SCardReader
objectRemark
read-onlyDeclaration
Swift
public var parent: SCardReader { get }
-
Was the channel unpowered after the reader went to sleep?
Declaration
Swift
public var isUnpowered: Bool { get }
-
Card’s ATR
Remark
read-onlyDeclaration
Swift
public var atr: [UInt8] { get }
-
Declaration
Swift
public static func == (lhs: SCardChannel, rhs: SCardChannel) -> Bool
-
Transmit a C-APDU to the card, receive the R-APDU in response (in the callback)
Declaration
Swift
public func transmit(command: [UInt8])
Parameters
command
The C-APDU to send to the card
Return Value
Nothing, answer is available in the
onTransmitDidResponse()
callback -
Disconnect from the card (close the communication channel + power down)
Declaration
Swift
public func cardDisconnect()
Return Value
Nothing, answer is available in the
onCardDidDisconnect()
callback -
Connect to the card again (re-open an existing communication channel
Declaration
Swift
public func cardReconnect()
Return Value
Nothing, answer is available in the
onCardDidConnect()
callback