UAInAppMessageButtonInfoBuilder
@interface UAInAppMessageButtonInfoBuilder : NSObject
Builder class for UAInAppMessageButtonInfo.
-
Button label.
Required
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) UAInAppMessageTextInfo *label;
Swift
var label: UAInAppMessageTextInfo? { get set }
-
Button identifier.
Required. Must be between [1-100] characters.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSString *identifier;
Swift
var identifier: String? { get set }
-
Button tap behavior.
Optional. Defaults to UAInAppMessageButtonInfoBehaviorDismiss.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UAInAppMessageButtonInfoBehaviorType behavior;
Swift
var behavior: UAInAppMessageButtonInfoBehaviorType { get set }
-
The button’s border radius. Use to set the border radius to non-integer values.
Optional. Defaults to 0.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) CGFloat borderRadiusPoints;
Swift
var borderRadiusPoints: CGFloat { get set }
-
Button background color.
Optional. Defaults to transparent.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get set }
-
Button border color.
Optional. Defaults to transparent.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull borderColor;
Swift
var borderColor: UIColor { get set }
-
Button actions.
Optional.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSDictionary *actions;
Swift
var actions: [AnyHashable : Any]? { get set }
-
Checks if the builder is valid and will produce a text info instance.
Declaration
Objective-C
- (BOOL)isValid;
Swift
func isValid() -> Bool
Return Value
YES if the builder is valid (requires label and id), otherwise NO.