McdCardDataImages
Objective-C
@interface McdCardDataImages : NSObject
Swift
class McdCardDataImages : NSObject
Provides API for interacting with received card data.
-
Returns UIImage with PAN.
Declaration
Objective-C
- (nonnull UIImage *)getPanImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;Swift
func getPanImage(_ font: UIFont, color: UIColor, spacing: CGFloat) -> UIImageParameters
fontThe font of the text.
colorThe color of the text.
spacingCharacter spacing.
Return Value
Returns UIImage with PAN.
-
Returns UIImage with part of a PAN.
Declaration
Objective-C
- (nonnull UIImage *)getPanImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing startDigit:(NSUInteger)startDigit length:(NSUInteger)length;Swift
func getPanImage(_ font: UIFont, color: UIColor, spacing: CGFloat, startDigit: UInt, length: UInt) -> UIImageParameters
fontThe font of the text.
colorThe color of the text.
spacingCharacter spacing.
startDigitThe beginning index.
lengthLength of the substring.
Return Value
Returns UIImage with PAN.
-
Returns
UIImagewith expiry date inMM/YYformat.Declaration
Objective-C
- (nonnull UIImage *)getExpiryImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;Swift
func getExpiryImage(_ font: UIFont, color: UIColor, spacing: CGFloat) -> UIImageParameters
fontThe font of the text.
colorThe color of the text.
spacingCharacter spacing.
Return Value
UIImagewith expiry date inMM/YYformat. -
Returns
UIImageimage with emboss name.Declaration
Objective-C
- (nonnull UIImage *)getEmbossNameImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;Swift
func getEmbossNameImage(_ font: UIFont, color: UIColor, spacing: CGFloat) -> UIImageParameters
fontThe font of the text.
colorThe color of the text.
spacingCharacter spacing.
Return Value
UIImageimage with emboss name. -
Returns
UIImageimage with CVV.Declaration
Objective-C
- (nonnull UIImage *)getCvvImage:(UIFont *_Nonnull)font color:(UIColor *_Nonnull)color spacing:(CGFloat)spacing;Swift
func getCvvImage(_ font: UIFont, color: UIColor, spacing: CGFloat) -> UIImageParameters
fontThe font of the text.
colorThe color of the text.
spacingCharacter spacing.
Return Value
UIImageimage with CVV. -
Copies PAN to clipboard.
Declaration
Objective-C
- (BOOL)copyPanToClipboard;Swift
func copyPanToClipboard() -> BoolReturn Value
True if card data copied to clipboard. False otherwise.
-
Copies Expiry date in
MM/YYformat to clipboard.Declaration
Objective-C
- (BOOL)copyExpiryToClipboard;Swift
func copyExpiryToClipboard() -> BoolReturn Value
True if card data copied to clipboard. False otherwise.
-
Copies emboss name to clipboard.
Declaration
Objective-C
- (BOOL)copyEmbossNameToClipboard;Swift
func copyEmbossNameToClipboard() -> BoolReturn Value
True if card data copied to clipboard. False otherwise.
-
Copies CVV to clipboard.
Declaration
Objective-C
- (BOOL)copyCvvToClipboard;Swift
func copyCvvToClipboard() -> BoolReturn Value
True if card data copied to clipboard. False otherwise.
-
Clears internal card data.
Declaration
Objective-C
- (void)clearData;Swift
func clearData() -
Sets handler for card data wipe event.
Declaration
Objective-C
@property (nullable) void (^)(void) cardDataClearedBlock;Swift
var cardDataClearedBlock: (() -> Void)? { get set } -
Constructs card data images from McdCardData object.
Declaration
Objective-C
+ (nonnull instancetype)cardDataImagesWithCardData: (McdCardData *_Nonnull)cardData;Swift
convenience init(cardData: McdCardData)Parameters
cardDataMcdCardData to create an instance of card data images.
Return Value
Card data images as instance of McdCardDataImages.
-
Verify if card data are valid.
Declaration
Objective-C
- (BOOL)isValid;Swift
func isValid() -> BoolReturn Value
Bool value if card data are valid.
McdCardDataImages Class Reference