FirebaseInAppMessaging Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
InAppMessagingModalDisplay
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
Swift
var title: String { get }
-
Gets the image data for a modal fiam message.
-
Gets the body text for a modal fiam message.
Declaration
Swift
var bodyText: String? { get }
-
Gets the action button metadata for a modal fiam message.
-
Gets the action URL for a modal fiam message.
Declaration
Swift
var actionURL: URL? { get }
-
Gets the background color for a modal fiam message.
Declaration
Swift
@NSCopying var displayBackgroundColor: UIColor { get }
-
Gets the color for text in modal fiam message. It would apply to both title and body text.
Declaration
Swift
@NSCopying var textColor: UIColor { get }
-
-
Exposed for unit testing only, or for use in SwiftUI previews. Don’t instantiate this in your
app directly.
Declaration
Swift
init(campaignName: String, titleText title: String, bodyText: String?, textColor: UIColor, backgroundColor: UIColor, imageData: InAppMessagingImageData?, actionButton: InAppMessagingActionButton?, actionURL: URL?, appData: [AnyHashable : Any]?)
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.
[null,null,["Last updated 2025-08-04 UTC."],[],[],null,["InAppMessagingModalDisplay \n\n class InAppMessagingModalDisplay : ../Classes/InAppMessagingDisplayMessage.html\n\nClass for defining a modal message for display.\nThis class is unavailable on macOS, macOS Catalyst, and watchOS.\n- `\n ``\n ``\n `\n\n [title](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)title)`\n ` \n Gets the title for a modal fiam message. \n\n Declaration \n Swift \n\n var title: String { get }\n\n- `\n ``\n ``\n `\n\n [imageData](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)imageData)`\n ` \n Gets the image data for a modal fiam message. \n\n Declaration \n Swift \n\n @NSCopying var imageData: ../Classes/InAppMessagingImageData.html? { get }\n\n- `\n ``\n ``\n `\n\n [bodyText](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)bodyText)`\n ` \n Gets the body text for a modal fiam message. \n\n Declaration \n Swift \n\n var bodyText: String? { get }\n\n- `\n ``\n ``\n `\n\n [actionButton](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)actionButton)`\n ` \n Gets the action button metadata for a modal fiam message. \n\n Declaration \n Swift \n\n var actionButton: ../Classes/InAppMessagingActionButton.html? { get }\n\n- `\n ``\n ``\n `\n\n [actionURL](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)actionURL)`\n ` \n Gets the action URL for a modal fiam message. \n\n Declaration \n Swift \n\n var actionURL: URL? { get }\n\n- `\n ``\n ``\n `\n\n [displayBackgroundColor](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)displayBackgroundColor)`\n ` \n Gets the background color for a modal fiam message. \n\n Declaration \n Swift \n\n @NSCopying var displayBackgroundColor: UIColor { get }\n\n- `\n ``\n ``\n `\n\n [textColor](#/c:objc(cs)FIRInAppMessagingModalDisplay(py)textColor)`\n ` \n Gets the color for text in modal fiam message. It would apply to both title and body text. \n\n Declaration \n Swift \n\n @NSCopying var textColor: UIColor { get }\n\n- `\n ``\n ``\n `\n\n [-init](#/c:objc(cs)FIRInAppMessagingModalDisplay(im)init)`\n ` \n Unavailable \n Unavailable.\n- `\n ``\n ``\n `\n\n [init(campaignName:titleText:bodyText:textColor:backgroundColor:imageData:actionButton:actionURL:appData:)](#/c:objc(cs)FIRInAppMessagingModalDisplay(im)initWithCampaignName:titleText:bodyText:textColor:backgroundColor:imageData:actionButton:actionURL:appData:)`\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 Swift \n\n init(campaignName: String, titleText title: String, bodyText: String?, textColor: UIColor, backgroundColor: UIColor, imageData: ../Classes/InAppMessagingImageData.html?, actionButton: ../Classes/InAppMessagingActionButton.html?, actionURL: URL?, appData: [AnyHashable : Any]?)"]]