UAInAppMessageBannerDisplayContentBuilder
@interface UAInAppMessageBannerDisplayContentBuilder : NSObject
Builder class for UAInAppMessageBannerDisplayContent.
-
The banner’s heading.
Optional. Defaults to nil.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) UAInAppMessageTextInfo *heading;
Swift
var heading: UAInAppMessageTextInfo? { get set }
-
The banner’s body.
Optional. Defaults to nil.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) UAInAppMessageTextInfo *body;
Swift
var body: UAInAppMessageTextInfo? { get set }
-
The banner’s media.
Optional. Defaults to nil.
Declaration
Objective-C
@property (readwrite, strong, nonatomic, nullable) UAInAppMessageMediaInfo *media;
Swift
var media: UAInAppMessageMediaInfo? { get set }
-
The banner’s buttons.
Required.
Declaration
Objective-C
@property (readwrite, copy, nonatomic, nullable) NSArray<UAInAppMessageButtonInfo *> *buttons;
Swift
var buttons: [UAInAppMessageButtonInfo]? { get set }
-
The banner’s button layout.
Optional. Defaults to UAInAppMessageButtonLayoutSeparate.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UAInAppMessageButtonLayoutType buttonLayout;
Swift
var buttonLayout: UAInAppMessageButtonLayoutType { get set }
-
The banner’s placement.
Optional. Defaults to UAInAppMessageBannerPlacementBottom.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UAInAppMessageBannerPlacementType placement;
Swift
var placement: UAInAppMessageBannerPlacementType { get set }
-
The banner’s layout for the text and media.
Optional. Defaults to UAInAppMessageBannerContentLayoutTypeMediaLeft.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) UAInAppMessageBannerContentLayoutType contentLayout;
Swift
var contentLayout: UAInAppMessageBannerContentLayoutType { get set }
-
The banner’s display duration in seconds.
Optional. Defaults to 30 seconds.
Declaration
Objective-C
@property (assign, readwrite, nonatomic) NSTimeInterval durationSeconds;
Swift
var durationSeconds: TimeInterval { get set }
-
The banner’s background color.
Optional. Defaults to white.
Declaration
Objective-C
@property (readwrite, strong, nonatomic) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get set }
-
The banner’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 banner’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 }
-
The banner’s actions. Only supported for Legacy In-App Messaging.
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 an display content instance.
Declaration
Objective-C
- (BOOL)isValid;
Swift
func isValid() -> Bool
Return Value
YES if the builder is valid, otherwise NO.