UAInAppMessage

@interface UAInAppMessage : NSObject

Model object representing in-app message data.

Note

This object is built using UAInAppMessageBuilder.
  • The unique identifier for the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSString *_Nonnull identifier;

    Swift

    var identifier: String { get }
  • Message name. Optional. Must be between [1-100] characters.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic, nullable) NSString *name;

    Swift

    var name: String? { get }
  • The display type.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessageDisplayType displayType;

    Swift

    var displayType: UAInAppMessageDisplayType { get }
  • The display content for the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic)
        UAInAppMessageDisplayContent *_Nonnull displayContent;

    Swift

    var displayContent: UAInAppMessageDisplayContent { get }
  • Extra information for the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDictionary *extras;

    Swift

    var extras: [AnyHashable : Any]? { get }
  • Display actions.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) NSDictionary *actions;

    Swift

    var actions: [AnyHashable : Any]? { get }
  • The audience conditions for the message.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UAInAppMessageAudience *audience;

    Swift

    var audience: UAInAppMessageAudience? { get }
  • Display behavior. Defaults to UAInAppMessageDisplayBehaviorDefault.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull displayBehavior;

    Swift

    var displayBehavior: String { get }
  • Flag indicating if reporting is enabled. Defaults to YES.

    Declaration

    Objective-C

    @property (readonly, assign, nonatomic) BOOL isReportingEnabled;

    Swift

    var isReportingEnabled: Bool { get }
  • Class factory method for constructing an in-app message model with an in-app message builder block.

    Declaration

    Objective-C

    + (nullable instancetype)messageWithBuilderBlock:
        (nonnull void (^)(UAInAppMessageBuilder *_Nonnull))builderBlock;

    Swift

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

    Parameters

    builderBlock

    the builder block.

    Return Value

    A fully configured instance of UAInAppMessage.

  • Extends a message with a builder block.

    Declaration

    Objective-C

    - (nullable UAInAppMessage *)extend:
        (nonnull void (^)(UAInAppMessageBuilder *_Nonnull))builderBlock;

    Swift

    func extend(_ builderBlock: @escaping (UAInAppMessageBuilder) -> Void) -> UAInAppMessage?

    Parameters

    builderBlock

    The builder block.

    Return Value

    An extended instance of UAInAppMessage.