UALegacyInAppMessageBuilderExtender

Objective-C

@protocol UALegacyInAppMessageBuilderExtender <NSObject>

Swift

protocol UALegacyInAppMessageBuilderExtender : NSObjectProtocol

A protocol for extending the default conversion between legacy in-app messages and v2 scheduled messages.

  • Extends the in-app automation schedule builder converted from a legacy in-app message model object. Use this method to make use of the default conversion with minor overrides as needed.

    Declaration

    Objective-C

    - (void)extendScheduleBuilder:(nonnull UAScheduleBuilder *)builder
                          message:(nonnull UALegacyInAppMessage *)message;

    Swift

    optional func extend(_ builder: UAScheduleBuilder, message: UALegacyInAppMessage)

    Parameters

    builder

    The automatically converted in-app schedule builder.

    message

    The legacy in-app message model object.

  • Extends the in-app message builder converted from a legacy in-app message model object. Use this method to make use of the automatic conversion process with minor overrides as needed.

    Declaration

    Objective-C

    - (void)extendMessageBuilder:(nonnull UAInAppMessageBuilder *)builder
                         message:(nonnull UALegacyInAppMessage *)message;

    Swift

    optional func extend(_ builder: UAInAppMessageBuilder, message: UALegacyInAppMessage)

    Parameters

    builder

    The automatically converted in-app message builder.

    message

    The legacy in-app message model object.