UAInAppMessageModalDisplayContentBuilder

@interface UAInAppMessageModalDisplayContentBuilder : NSObject

Builder class for UAInAppMessageModalDisplayContent.

  • The modal message’s heading.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAInAppMessageTextInfo *heading;

    Swift

    var heading: UAInAppMessageTextInfo? { get set }
  • The modal message’s body.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UAInAppMessageTextInfo *body;

    Swift

    var body: UAInAppMessageTextInfo? { get set }
  • The modal message’s media.

    Optional.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAInAppMessageMediaInfo *media;

    Swift

    var media: UAInAppMessageMediaInfo? { get set }
  • The modal message’s footer.

    Optional. Defaults to nil.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        UAInAppMessageButtonInfo *footer;

    Swift

    var footer: UAInAppMessageButtonInfo? { get set }
  • The modal message’s buttons.

    Required

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UAInAppMessageButtonInfo *> *buttons;

    Swift

    var buttons: [UAInAppMessageButtonInfo]? { get set }
  • The modal message’s button layout.

    Optional. Defaults to UAInAppMessageButtonLayoutSeparate.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        UAInAppMessageButtonLayoutType buttonLayout;

    Swift

    var buttonLayout: UAInAppMessageButtonLayoutType { get set }
  • The modal message’s layout for the text and media.

    Optional. Defaults to UAInAppMessageModalContentLayoutHeaderMediaBody.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        UAInAppMessageModalContentLayoutType contentLayout;

    Swift

    var contentLayout: UAInAppMessageModalContentLayoutType { get set }
  • The modal message’s background color.

    Optional. Defaults to white.

    Declaration

    Objective-C

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

    Swift

    var backgroundColor: UIColor { get set }
  • The modal message’s dismiss button color.

    Optional. Defaults to black.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull dismissButtonColor;

    Swift

    var dismissButtonColor: UIColor { get set }
  • The modal message’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 }
  • Flag indicating the modal should display as full screen on compact devices.

    Optional. Defaults to NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowFullScreenDisplay;

    Swift

    var allowFullScreenDisplay: Bool { get set }
  • Checks if the builder is valid and will produce an display content instance.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Bool

    Return Value

    YES if the builder is valid, otherwise NO.