BatchInAppMessage

@interface BatchInAppMessage : BatchMessage

Represents a Batch Messaging message coming from an In-App Campaign

  • In-App message’s visual contents

    Since the content can greatly change between formats, you will need to cast it to one of the classes conforming to the BatchInAppMessageContent protocol, such as BatchAlertMessageContent or BatchInterstitialMessageContent.

    Use -contentType to help you in that task.

    More types might be added in the future, so don’t make any assuptions on the kind of class returned by this property.

    Can be nil if an error occurred or if not applicable

    Declaration

    Objective-C

    @property (readonly, nullable) id<BatchInAppMessageContent> content;
  • Get the campaign token. This is the same token as you see when opening the In-App Campaign in your browser, when on the dashboard. Can be nil.

    Declaration

    Objective-C

    @property (readonly, nullable) int *campaignToken;
  • The type of the content, used to cast to the right content class.

    Declaration

    Objective-C

    @property (readonly) int contentType;