UAInAppMessageModalDisplayContentBuilder
Objective-C
@interface UAInAppMessageModalDisplayContentBuilder : NSObject
Swift
class InAppMessageModalDisplayContentBuilder : NSObject
Builder class for UAInAppMessageModalDisplayContent.
-
The modal message’s heading.
Optional.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UAInAppMessageTextInfo *heading;
Swift
var heading: InAppMessageTextInfo? { get set }
-
The modal message’s body.
Optional.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UAInAppMessageTextInfo *body;
Swift
var body: InAppMessageTextInfo? { get set }
-
The modal message’s media.
Optional.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UAInAppMessageMediaInfo *media;
Swift
var media: InAppMessageMediaInfo? { get set }
-
The modal message’s footer.
Optional. Defaults to nil.
Declaration
Objective-C
@property (nonatomic, strong, nullable) UAInAppMessageButtonInfo *footer;
Swift
var footer: InAppMessageButtonInfo? { get set }
-
The modal message’s buttons.
Required
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSArray<UAInAppMessageButtonInfo *> *buttons;
Swift
var buttons: [InAppMessageButtonInfo]? { get set }
-
The modal message’s button layout.
Optional. Defaults to UAInAppMessageButtonLayoutSeparate.
Declaration
Objective-C
@property (nonatomic) UAInAppMessageButtonLayoutType buttonLayout;
Swift
var buttonLayout: InAppMessageButtonLayoutType { get set }
-
The modal message’s layout for the text and media.
Optional. Defaults to UAInAppMessageModalContentLayoutHeaderMediaBody.
Declaration
Objective-C
@property (nonatomic) UAInAppMessageModalContentLayoutType contentLayout;
Swift
var contentLayout: InAppMessageModalContentLayoutType { get set }
-
The modal message’s background color.
Optional. Defaults to white.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get set }
-
The modal message’s dismiss button color.
Optional. Defaults to black.
Declaration
Objective-C
@property (nonatomic, strong) 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 (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 (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.