UAInAppMessageScheduleInfo

@interface UAInAppMessageScheduleInfo : UAScheduleInfo

Defines the schedule and content for an in-app message.

Note

This object is built using UAInAppMessageScheduleInfoBuilder.
  • Message to display when schedule is triggered.

    Declaration

    Objective-C

    @property (readonly, nonatomic) UAInAppMessage *_Nonnull message;

    Swift

    var message: UAInAppMessage { get }
  • Creates an in-app message schedule info with a builder block.

    Declaration

    Objective-C

    + (nullable instancetype)scheduleInfoWithBuilderBlock:
        (nonnull void (^)(UAInAppMessageScheduleInfoBuilder *_Nonnull))builderBlock;

    Swift

    convenience init?(builderBlock: @escaping (UAInAppMessageScheduleInfoBuilder) -> Void)
  • Return the message id from a JSON payload.

    Declaration

    Objective-C

    + (nullable NSString *)parseMessageID:(nonnull id)json;

    Swift

    class func parseMessageID(_ json: Any) -> String?

    Parameters

    json

    The JSON payload.

    Return Value

    The message id or nil if the JSON is invalid.