UAInAppMessageTextInfo

Objective-C


@interface UAInAppMessageTextInfo : NSObject

Swift

class InAppMessageTextInfo : NSObject

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

Note

This object is built using UAInAppMessageTextInfoBuilder.
  • Text content.

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

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

    Swift

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

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGFloat sizePoints;

    Swift

    var sizePoints: CGFloat { get }
  • Text alignment.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UAInAppMessageTextInfoAlignmentType alignment;

    Swift

    var alignment: InAppMessageTextInfoAlignmentType { get }
  • Text styles.

    Declaration

    Objective-C

    @property (nonatomic, readonly) UAInAppMessageTextInfoStyleType style;

    Swift

    var style: InAppMessageTextInfoStyleType { get }
  • Font families.

    Declaration

    Objective-C

    @property (nonatomic, readonly, 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 (InAppMessageTextInfoBuilder) -> 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 (InAppMessageTextInfoBuilder) -> Void) -> InAppMessageTextInfo?

    Return Value

    An extended instance of UAInAppMessageTextInfo.