InAppMessagingCardDisplay
class InAppMessagingCardDisplay : InAppMessagingDisplayMessage
A displayable in-app card message. This class is unavailable on macOS, macOS Catalyst, and watchOS.
-
Gets the title text for a card FIAM message.
Declaration
Swift
var title: String { get }
-
Gets the body text for a card FIAM message.
Declaration
Swift
var body: String? { get }
-
Gets the color for text in card FIAM message. It applies to both title and body text.
Declaration
Swift
@NSCopying var textColor: UIColor { get }
-
Image data for the supplied portrait image for a card FIAM messasge.
Declaration
Swift
@NSCopying var portraitImageData: InAppMessagingImageData { get }
-
Image data for the supplied landscape image for a card FIAM message.
Declaration
Swift
@NSCopying var landscapeImageData: InAppMessagingImageData? { get }
-
The background color for a card FIAM message.
Declaration
Swift
@NSCopying var displayBackgroundColor: UIColor { get }
-
Metadata for a card FIAM message’s primary action button.
Declaration
Swift
var primaryActionButton: InAppMessagingActionButton { get }
-
The action URL for a card FIAM message’s primary action button.
Declaration
Swift
var primaryActionURL: URL? { get }
-
Metadata for a card FIAM message’s secondary action button.
Declaration
Swift
var secondaryActionButton: InAppMessagingActionButton? { get }
-
The action URL for a card FIAM message’s secondary action button.
Declaration
Swift
var secondaryActionURL: URL? { get }
-
Unavailable
Unavailable.
-
init(campaignName:titleText:bodyText:textColor:portraitImageData:landscapeImageData:backgroundColor:primaryActionButton:secondaryActionButton:primaryActionURL:secondaryActionURL:appData:)
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, portraitImageData: InAppMessagingImageData, landscapeImageData: InAppMessagingImageData?, backgroundColor: UIColor, primaryActionButton: InAppMessagingActionButton, secondaryActionButton: InAppMessagingActionButton?, primaryActionURL: URL?, secondaryActionURL: URL?, appData: [AnyHashable : Any]?)