McdCardPinImage

@interface McdCardPinImage : NSObject

Provides API for interacting with received card PIN data.

  • Returns UIImage with PIN.

    Declaration

    Objective-C

    - (nonnull UIImage *)getPinImage:(UIFont *_Nonnull)font
                               color:(UIColor *_Nonnull)color
                             spacing:(CGFloat)spacing;

    Return Value

    Returns UIImage with PIN.

  • Copies PIN to clipboard.

    Declaration

    Objective-C

    - (BOOL)copyPinToClipboard;

    Return Value

    True if card data copied to clipboard. False otherwise.

  • Clears internal PIN data.

    Declaration

    Objective-C

    - (void)clearData;
  • Sets handler for card PIN data wipe event.

    Declaration

    Objective-C

    @property (nullable) void (^)(void) cardPinClearedBlock;
  • Constructs card pin image from values passed in dictionary.

    Declaration

    Objective-C

    + (nonnull instancetype)cardPinImageWithDictionary:
        (NSDictionary *_Nonnull)dictionary;

    Parameters

    dictionary

    Dictionary to create an instance of card pin image.

    Return Value

    Card data as instance of McdCardData.

  • Verify if card PIN data are valid.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Return Value

    Bool value if card data are valid.