UAInAppMessageHTMLDisplayContentBuilder

@interface UAInAppMessageHTMLDisplayContentBuilder : NSObject

Builder class for UAInAppMessageHTMLDisplayContent.

  • url

    The message’s URL.

    Required

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *url;

    Swift

    var url: String? { get set }
  • The 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 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 HTML 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 HTML view 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 }
  • The height of the manually sized HTML view.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat height;

    Swift

    var height: CGFloat { get set }
  • The width of the manually sized HTML view.

    Declaration

    Objective-C

    @property (assign, readwrite, 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 (assign, readwrite, nonatomic) BOOL aspectLock;

    Swift

    var aspectLock: Bool { get set }
  • Flag indicating if the content requires connectivity to display correctly.

    Declaration

    Objective-C

    @property (assign, readwrite, 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.