UAInAppMessageTextInfoBuilder

@interface UAInAppMessageTextInfoBuilder : NSObject

Builder class for UAInAppMessageTextInfo.

  • Text content.

    Required.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable) NSString *text;
  • Text color.

    Optional. Defaults to black.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic) UIColor *_Nonnull color;
  • Text size.

    Optional. Defaults to 14sp.

    Declaration

    Objective-C

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

    Swift

    var sizePoints: Int32 { get set }
  • Text alignment.

    Optional. Defaults to UAInAppMessageTextInfoAlignmentNone.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        UAInAppMessageTextInfoAlignmentType alignment;

    Swift

    var alignment: Int32 { get set }
  • Text styles.

    Optional. Defaults to no style (UAInAppMessageTextInfoStyleNormal).

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) UAInAppMessageTextInfoStyleType style;

    Swift

    var style: Int32 { get set }
  • Font families - first valid font name in collection is used.

    Optional

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<NSString *> *fontFamilies;
  • Checks if the builder is valid and will produce a text info instance. - returns: YES if the builder is valid (requires text), otherwise NO.

    Declaration

    Objective-C

    - (BOOL)isValid;

    Swift

    func isValid() -> Any!

    Return Value

    YES if the builder is valid (requires text), otherwise NO.