FirebaseInAppMessaging Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
FIRInAppMessagingBannerDisplay
Class for defining a banner message for display.
This class is unavailable on macOS, macOS Catalyst, and watchOS.
-
Gets the title of a banner message.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) NSString *title;
-
Gets the image data for a banner message.
-
Gets the body text for a banner message.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nullable) NSString *bodyText;
-
Gets banner’s background color
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) UIColor *displayBackgroundColor;
-
Gets the color for text in banner fiam message. It would apply to both title and body text.
Declaration
Objective-C
@property (nonatomic, copy, readonly, nonnull) UIColor *textColor;
-
Gets the action URL for a banner fiam message.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSURL *actionURL;
-
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
actionURL:(nullable NSURL *)actionURL
appData:(nullable NSDictionary *)appData;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-04 UTC."],[],[],null,["# FirebaseInAppMessaging Framework Reference\n\nFIRInAppMessagingBannerDisplay\n==============================\n\n\n @interface FIRInAppMessagingBannerDisplay : ../Classes/FIRInAppMessagingDisplayMessage.html\n\nClass for defining a banner message for display.\nThis class is unavailable on macOS, macOS Catalyst, and watchOS.\n- `\n ``\n ``\n `\n\n ### [title](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)title)\n\n `\n ` \n Gets the title of a banner message. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nonnull) NSString *title;\n\n- `\n ``\n ``\n `\n\n ### [imageData](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)imageData)\n\n `\n ` \n Gets the image data for a banner message. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) ../Classes/FIRInAppMessagingImageData.html *imageData;\n\n- `\n ``\n ``\n `\n\n ### [bodyText](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)bodyText)\n\n `\n ` \n Gets the body text for a banner message. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nullable) NSString *bodyText;\n\n- `\n ``\n ``\n `\n\n ### [displayBackgroundColor](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)displayBackgroundColor)\n\n `\n ` \n Gets banner's background color \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nonnull) UIColor *displayBackgroundColor;\n\n- `\n ``\n ``\n `\n\n ### [textColor](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)textColor)\n\n `\n ` \n Gets the color for text in banner fiam message. It would apply to both title and body text. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, copy, readonly, nonnull) UIColor *textColor;\n\n- `\n ``\n ``\n `\n\n ### [actionURL](#/c:objc(cs)FIRInAppMessagingBannerDisplay(py)actionURL)\n\n `\n ` \n Gets the action URL for a banner fiam message. \n\n #### Declaration\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSURL *actionURL;\n\n- `\n ``\n ``\n `\n\n ### [-init](#/c:objc(cs)FIRInAppMessagingBannerDisplay(im)init)\n\n `\n ` \n Unavailable \n Unavailable. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)init;\n\n- `\n ``\n ``\n `\n\n ### [-initWithCampaignName:titleText:bodyText:textColor:backgroundColor:imageData:actionURL:appData:](#/c:objc(cs)FIRInAppMessagingBannerDisplay(im)initWithCampaignName:titleText:bodyText:textColor:backgroundColor:imageData:actionURL:appData:)\n\n `\n ` \n Exposed for unit testing only, or for use in SwiftUI previews. Don't instantiate this in your\n app directly. \n\n #### Declaration\n\n Objective-C \n\n - (nonnull instancetype)\n initWithCampaignName:(nonnull NSString *)campaignName\n titleText:(nonnull NSString *)title\n bodyText:(nullable NSString *)bodyText\n textColor:(nonnull UIColor *)textColor\n backgroundColor:(nonnull UIColor *)backgroundColor\n imageData:(nullable ../Classes/FIRInAppMessagingImageData.html *)imageData\n actionURL:(nullable NSURL *)actionURL\n appData:(nullable NSDictionary *)appData;"]]