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;
  • Button tap behavior.

    Optional. Defaults to UAInAppMessageButtonInfoBehaviorDismiss.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        UAInAppMessageButtonInfoBehaviorType behavior;

    Swift

    var behavior: Int32 { 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: Int32 { get set }
  • Button background color.

    Optional. Defaults to transparent.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull backgroundColor;
  • Button border color.

    Optional. Defaults to transparent.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull borderColor;
  • Button actions.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSDictionary *actions;
  • Checks if the builder is valid and will produce a text info instance. - returns: YES if the builder is valid (requires label and id), otherwise NO.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Any!

    Return Value

    YES if the builder is valid (requires label and id), otherwise NO.