NFCCardReader
public class NFCCardReader : NSObject, CardReaderType
Undocumented
-
The Use-case message key for the
connect()
method to display to the userDeclaration
Swift
public static let keyDiscoveryMessage: String
-
The message to display to the user when the secure PACE channel is being setup
Declaration
Swift
public static let keyConnectMessage: String
-
The no card found error message when no card is found by
connect()
Declaration
Swift
public static let keyNoCardMessage: String
-
The multiple cards detected error message when more than 1 card is found by
connect()
Declaration
Swift
public static let keyMultipleCardMessage: String
-
The unsupported card message
Declaration
Swift
public static let keyUnsupportedCardMessage: String
-
The generic no connection message
Declaration
Swift
public static let keyConnectionError: String
-
Undocumented
See moreDeclaration
Swift
public enum Error : Swift.Error, Equatable
-
Declaration
Swift
public let name: String
-
Declaration
Swift
public var cardPresent: Bool { get }
-
Declaration
Swift
public func onCardPresenceChanged(_ block: @escaping (CardReaderType) -> Void)
-
Declaration
Swift
public func connect(_ params: [String : Any]) throws -> CardType?
-
(Re-)Start polling for NFC card
Declaration
Swift
public func startDiscovery(with messages: [String : String])
-
Close session when a session has been started
Declaration
Swift
public func invalidateSession(error: String? = nil)
Parameters
error
the error message or nil when the session has been successful
-
Declaration
Swift
@available(iOS 13.0, *) public func tagReaderSessionDidBecomeActive(_ session: NFCTagReaderSession)
-
Declaration
Swift
@available(iOS 13.0, *) public func tagReaderSession(_ session: NFCTagReaderSession, didInvalidateWithError error: Swift.Error)
-
Declaration
Swift
@available(iOS 13.0, *) public func tagReaderSession(_ session: NFCTagReaderSession, didDetect tags: [NFCTag])