BTDropInUICustomization

Objective-C

@interface BTDropInUICustomization : NSObject

Swift

class BTDropInUICustomization : NSObject

Options for customizing Braintree Drop-in’s user interface.

  • Unavailable

    Please use initWithColorScheme:

    Undocumented

    Declaration

    Objective-C

    + (instancetype)new __attribute__((unavailable("Please use initWithColorScheme:")));
  • Unavailable

    Please use initWithColorScheme:

    Undocumented

    Declaration

    Objective-C

    - (instancetype)init __attribute__((unavailable("Please use initWithColorScheme:")));
  • Creates an instance of BTDropInUICustomization with the given color scheme.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithColorScheme:(BTDropInColorScheme)colorScheme;

    Swift

    init(colorScheme: BTDropInColorScheme)

    Parameters

    colorScheme

    The color scheme used to determine the default colors used. These defaults may be overriden by setting additional properties on BTDropInUICustomization.

    Return Value

    UI customization options for Braintree Drop-in

  • Fallback color for the overlay if blur is disabled

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull overlayColor;

    Swift

    var overlayColor: UIColor { get set }
  • Tint color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull tintColor;

    Swift

    var tintColor: UIColor { get set }
  • Bar color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull barBackgroundColor;

    Swift

    var barBackgroundColor: UIColor { get set }
  • Font family. When not set, system font will be used.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString *fontFamily;

    Swift

    var fontFamily: String? { get set }
  • Bold font family. When not set, bold system font will be used.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSString *boldFontFamily;

    Swift

    var boldFontFamily: String? { get set }
  • Sheet background color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull formBackgroundColor;

    Swift

    var formBackgroundColor: UIColor { get set }
  • Form field background color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull formFieldBackgroundColor;

    Swift

    var formFieldBackgroundColor: UIColor { get set }
  • Primary text color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull primaryTextColor;

    Swift

    var primaryTextColor: UIColor { get set }
  • Navigation title text color Defaults to nil. When not set, navigation titles will use primaryTextColor

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) UIColor *navigationBarTitleTextColor;

    Swift

    var navigationBarTitleTextColor: UIColor? { get set }
  • Secondary text color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull secondaryTextColor;

    Swift

    var secondaryTextColor: UIColor { get set }
  • Color of disabled buttons

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull disabledColor;

    Swift

    var disabledColor: UIColor { get set }
  • Placeholder text color for form fields

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull placeholderTextColor;

    Swift

    var placeholderTextColor: UIColor { get set }
  • Line and border color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull lineColor;

    Swift

    var lineColor: UIColor { get set }
  • Error foreground color

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull errorForegroundColor;

    Swift

    var errorForegroundColor: UIColor { get set }
  • Blur style

    Declaration

    Objective-C

    @property (nonatomic) UIBlurEffectStyle blurStyle;

    Swift

    var blurStyle: UIBlurEffect.Style { get set }
  • Activity indicator style

    Declaration

    Objective-C

    @property (nonatomic) UIActivityIndicatorViewStyle activityIndicatorViewStyle;

    Swift

    var activityIndicatorViewStyle: UIActivityIndicatorView.Style { get set }
  • Toggle blur effects

    Declaration

    Objective-C

    @property (nonatomic) BOOL useBlurs;

    Swift

    var useBlurs: Bool { get set }
  • The keyboard the postal code field should use

    Declaration

    Objective-C

    @property (nonatomic) UIKeyboardType postalCodeFormFieldKeyboardType;

    Swift

    var postalCodeFormFieldKeyboardType: UIKeyboardType { get set }
  • Tint color for UISwitch when in the on position

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull switchOnTintColor;

    Swift

    var switchOnTintColor: UIColor { get set }
  • Tint color for UISwitch thumb

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull switchThumbTintColor;

    Swift

    var switchThumbTintColor: UIColor { get set }
  • Appearance style of keyboards associated with text fields

    Declaration

    Objective-C

    @property (nonatomic) UIKeyboardAppearance keyboardAppearance;

    Swift

    var keyboardAppearance: UIKeyboardAppearance { get set }
  • Defaults to false. Disabling this feature is highly discouraged, as it prevents users from adjusting Drop-in’s text size to fit their needs.

    Declaration

    Objective-C

    @property (nonatomic) BOOL disableDynamicType;

    Swift

    var disableDynamicType: Bool { get set }