FirebaseInAppMessaging Framework Reference

FIRInAppMessagingModalDisplay


@interface FIRInAppMessagingModalDisplay : FIRInAppMessagingDisplayMessage

Class for defining a modal message for display. This class is unavailable on macOS, macOS Catalyst, and watchOS.

  • Gets the title for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) NSString *title;
  • Gets the image data for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) FIRInAppMessagingImageData *imageData;
  • Gets the body text for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nullable) NSString *bodyText;
  • Gets the action button metadata for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) FIRInAppMessagingActionButton *actionButton;
  • Gets the action URL for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *actionURL;
  • Gets the background color for a modal fiam message.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) UIColor *displayBackgroundColor;
  • Gets the color for text in modal fiam message. It would apply to both title and body text.

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly, nonnull) UIColor *textColor;
  • Unavailable.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Exposed for unit testing only, or for use in SwiftUI previews. Don’t instantiate this in your app directly.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithCampaignName:(nonnull NSString *)campaignName
                   titleText:(nonnull NSString *)title
                    bodyText:(nullable NSString *)bodyText
                   textColor:(nonnull UIColor *)textColor
             backgroundColor:(nonnull UIColor *)backgroundColor
                   imageData:(nullable FIRInAppMessagingImageData *)imageData
                actionButton:(nullable FIRInAppMessagingActionButton *)actionButton
                   actionURL:(nullable NSURL *)actionURL
                     appData:(nullable NSDictionary *)appData;