CustomAlertMessageProvider
public struct CustomAlertMessageProvider : NFCReaderAlertMessageProvider
Provides a custom alert message for the NFC reader, given the active-reading state
-
Creates a new
CustomAlertMessageProvider
Declaration
Swift
public init(provideMessage: @escaping (PassportChipReadingState) -> String?)
Parameters
provideMessage
Provides the custom alert message
-
Declaration
Swift
public func alertMessage(for state: PassportChipReadingState) -> String?