UAInAppMessageTextInfo

@interface UAInAppMessageTextInfo : NSObject

Defines the text that appears in an in-app message.

Note

This object is built using UAInAppMessageTextInfoBuilder.
  • Text content.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSString *text;

    Swift

    var text: String? { get }
  • Text color.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UIColor *color;

    Swift

    var color: UIColor? { get }
  • Text size.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGFloat sizePoints;

    Swift

    var sizePoints: CGFloat { get }
  • Text alignment.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageTextInfoAlignmentType alignment;

    Swift

    var alignment: UAInAppMessageTextInfoAlignmentType { get }
  • Text styles.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageTextInfoStyleType style;

    Swift

    var style: UAInAppMessageTextInfoStyleType { get }
  • Font families.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSArray<NSString *> *fontFamilies;

    Swift

    var fontFamilies: [String]? { get }
  • Creates an in-app message text info with a builder block.

    Declaration

    Objective-C

    + (nullable instancetype)textInfoWithBuilderBlock:
        (nonnull void (^)(UAInAppMessageTextInfoBuilder *_Nonnull))builderBlock;

    Swift

    convenience init?(builderBlock: @escaping (UAInAppMessageTextInfoBuilder) -> Void)

    Return Value

    The in-app message text info if the builder sucessfully built it, otherwise nil.

  • Extends an in-app message text info with a builder block.

    Declaration

    Objective-C

    - (nullable UAInAppMessageTextInfo *)extend:
        (nonnull void (^)(UAInAppMessageTextInfoBuilder *_Nonnull))builderBlock;

    Swift

    func extend(_ builderBlock: @escaping (UAInAppMessageTextInfoBuilder) -> Void) -> UAInAppMessageTextInfo?

    Return Value

    An extended instance of UAInAppMessageTextInfo.