UAInAppMessageHTMLDisplayContentBuilder
Objective-C
@interface UAInAppMessageHTMLDisplayContentBuilder : NSObject
Swift
class InAppMessageHTMLDisplayContentBuilder : NSObject
Builder class for UAInAppMessageHTMLDisplayContent.
-
The message’s URL.
Required
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *url;
Swift
var url: String? { get set }
-
The message’s background color.
Optional. Defaults to white.
Declaration
Objective-C
@property (nonatomic, strong) UIColor *_Nonnull backgroundColor;
Swift
var backgroundColor: UIColor { get set }
-
The 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 HTML 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 HTML view 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 }
-
The height of the manually sized HTML view.
Declaration
Objective-C
@property (nonatomic) CGFloat height;
Swift
var height: CGFloat { get set }
-
The width of the manually sized HTML view.
Declaration
Objective-C
@property (nonatomic) CGFloat width;
Swift
var width: CGFloat { get set }
-
Flag indicating if the HTML view should lock its aspect ratio when resizing to fit the screen.
Note
This is only applicable when overriding the width and/or height.Optional. Defaults to
NO
.Declaration
Objective-C
@property (nonatomic) BOOL aspectLock;
Swift
var aspectLock: Bool { get set }
-
Flag indicating if the content requires connectivity to display correctly.
Declaration
Objective-C
@property (nonatomic) BOOL requiresConnectivity;
Swift
var requiresConnectivity: 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.