EMEmvMpmDecoder
Objective-C
@protocol EMEmvMpmDecoder <NSObject>
Swift
protocol EMEmvMpmDecoder : NSObjectProtocol
Decoder class providing method to decode a given content of a QR code.
Since
5.0-
Decodes qr code.
Declaration
Objective-C
- (nullable id<EMEmvTransactionInfo>)decode:(nonnull NSString *)aContent error:(EMEmvError *_Nullable *_Nullable) anError;Swift
func decode(_ aContent: String, error anError: AutoreleasingUnsafeMutablePointer<EMEmvError?>?) -> (any EMEmvTransactionInfo)?Parameters
aContentcontent of the QR code as NSString.
anErrorNSError if QR code does not have the expected format.
Return Value
Instance of
EMEmvTransactionInfoclass with transaction details read from the QR code.
EMEmvMpmDecoder Protocol Reference