InAppMessagingModalDisplay
class InAppMessagingModalDisplay : InAppMessagingDisplayMessage
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.
Declaration
Swift
@NSCopying var imageData: InAppMessagingImageData? { get }
-
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.
Declaration
Swift
var actionButton: InAppMessagingActionButton? { get }
-
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 }
-
Unavailable
Unavailable.
-
init(campaignName:titleText:bodyText:textColor:backgroundColor:imageData:actionButton:actionURL: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, backgroundColor: UIColor, imageData: InAppMessagingImageData?, actionButton: InAppMessagingActionButton?, actionURL: URL?, appData: [AnyHashable : Any]?)