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

    aContent

    content of the QR code as NSString.

    anError

    NSError if QR code does not have the expected format.

    Return Value

    Instance of EMEmvTransactionInfo class with transaction details read from the QR code.