NPIInterfaceConfiguration
Objective-C
@interface NPIInterfaceConfiguration : NSObject
Swift
class NPIInterfaceConfiguration : NSObject
@NSObject NSObject that provides UI Customisation API
-
Font to be used for all buttons in the SDK. The point size will be overwritten, just the font name/family will be used.
Declaration
Objective-C
@property (nonatomic, strong) UIFont *buttonFont;Swift
var buttonFont: UIFont! { get set } -
Font to be used for all fields/textviews. The point size will be overwritten, just the font name/familly will be used.
Declaration
Objective-C
@property (nonatomic, strong) UIFont *textFieldFont;Swift
var textFieldFont: UIFont! { get set } -
Font to be used in the SDK for all labels. The point size will be overwritten, just the font name/family will be used.
Declaration
Objective-C
@property (nonatomic, strong) UIFont *labelFont;Swift
var labelFont: UIFont! { get set } -
Logo image to be displayed in the card form screen. Width equal to the screen, height = 70.
Declaration
Objective-C
@property (nonatomic, strong) UIImage *logoImage;Swift
var logoImage: UIImage! { get set } -
Whether or not the save card switch should be on by default.
Declaration
Objective-C
@property (nonatomic) BOOL saveCardOn;Swift
var saveCardOn: Bool { get set } -
Font to be used for Card IO’s “Entry card manually” button font.
Declaration
Objective-C
@property (nonatomic, strong) UIFont *cardIOButtonTextFont;Swift
var cardIOButtonTextFont: UIFont! { get set } -
Font to be used in the Card IO view for all labels. The point size will be overwritten, just the font name/family will be used.
Declaration
Objective-C
@property (nonatomic, strong) UIFont *cardIOTextFont;Swift
var cardIOTextFont: UIFont! { get set } -
Choose whether to disable CardIO/Card scanner or not
Declaration
Objective-C
@property (nonatomic) BOOL disableCardIO;Swift
var disableCardIO: Bool { get set } -
Use either light or dark content for status bar
Declaration
Objective-C
@property (nonatomic) BOOL useStatusBarLightContent;Swift
var useStatusBarLightContent: Bool { get set } -
Content view mode for logo image
Declaration
Objective-C
@property (nonatomic) UIViewContentMode logoImageContentMode;Swift
var logoImageContentMode: UIView.ContentMode { get set } -
Choose whether to disable save card for later user option
Declaration
Objective-C
@property (nonatomic) BOOL disableSaveCardOption;Swift
var disableSaveCardOption: Bool { get set } -
Supported language to use within PiA SDK
Declaration
Objective-C
@property (nonatomic) PiALanguage language;Swift
var language: PiALanguage { get set } -
Text to be used for save card Label
Declaration
Objective-C
@property (nonatomic, strong) NSAttributedString *attributedSaveCardText;Swift
var attributedSaveCardText: NSAttributedString! { get set } -
Left margin for all buttons used in the SDK.
Declaration
Objective-C
@property (nonatomic) CGFloat buttonLeftMargin;Swift
var buttonLeftMargin: CGFloat { get set } -
Right margin for all buttons used in the SDK.
Declaration
Objective-C
@property (nonatomic) CGFloat buttonRightMargin;Swift
var buttonRightMargin: CGFloat { get set } -
Bottom margin for all buttons used in the SDK.
Declaration
Objective-C
@property (nonatomic) CGFloat buttonBottomMargin;Swift
var buttonBottomMargin: CGFloat { get set } -
Rounding corners for all text fields of the SDK, value ranges from 0.0 - 0.5 (0.5 suggest full rounded corners).
Declaration
Objective-C
@property (nonatomic) CGFloat textFieldCornerRadius;Swift
var textFieldCornerRadius: CGFloat { get set } -
Rounding corners for all buttons of the SDK, value ranges from 0.0 - 0.5 (0.5 suggest full rounded corners).
Declaration
Objective-C
@property (nonatomic) CGFloat buttonCornerRadius;Swift
var buttonCornerRadius: CGFloat { get set } -
Declaration
Objective-C
+ (instancetype)sharedInstance;Swift
class func sharedInstance() -> Self!Return Value
Singleton instance used throughout the code
-
Supported text labels for pay button to use within PiA SDK
Declaration
Objective-C
@property (nonatomic) PayButtonTextLabelOption payButtonTextLabelOption;Swift
var payButtonTextLabelOption: PayButtonTextLabelOption { get set }
NPIInterfaceConfiguration Class Reference