SBSDKUIDialogButtonStyle

@interface SBSDKUIDialogButtonStyle : NSObject

The general style for an action button in a ScanbotSDK alert. Used to customize certain result alerts in SBSDKUI components.

  • The font of the button title. Defaults to System font Regular 17.0.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIFont *_Nonnull font;

    Swift

    var font: UIFont { get set }
  • The color of the buttons title while not pressed. Defaults to blue.

    Declaration

    Objective-C

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

    Swift

    var textColor: UIColor { get set }
  • The color of the buttons title while pressed. Defaults to blue.

    Declaration

    Objective-C

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

    Swift

    var highlightedTextColor: UIColor { get set }
  • The background color of the button while not pressed. Defaults to clear color, fully transparent.

    Declaration

    Objective-C

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

    Swift

    var backgroundColor: UIColor { get set }
  • The background color of the button while pressed. Defaults to a light grey color.

    Declaration

    Objective-C

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

    Swift

    var highlightedBackgroundColor: UIColor { get set }
  • The default action button style. Use for confirmative actions.

    Declaration

    Objective-C

    + (nonnull instancetype)defaultStyle;

    Swift

    class func `default`() -> Self
  • The cancel action button style. Use for cancel actions.

    Declaration

    Objective-C

    + (nonnull instancetype)cancelStyle;

    Swift

    class func cancel() -> Self
  • The destructive action button style. Use for actions that are not reversible, e.g. deletions.

    Declaration

    Objective-C

    + (nonnull instancetype)destructiveStyle;

    Swift

    class func destructive() -> Self