FirebaseInAppMessaging Framework Reference

InAppMessagingBannerDisplay

class InAppMessagingBannerDisplay : InAppMessagingDisplayMessage

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

    Swift

    var title: String { get }
  • Gets the image data for a banner message.

    Declaration

    Swift

    @NSCopying var imageData: InAppMessagingImageData? { get }
  • Gets the body text for a banner message.

    Declaration

    Swift

    var bodyText: String? { get }
  • Gets banner’s background color

    Declaration

    Swift

    @NSCopying var displayBackgroundColor: UIColor { get }
  • Gets the color for text in banner fiam message. It would apply to both title and body text.

    Declaration

    Swift

    @NSCopying var textColor: UIColor { get }
  • Gets the action URL for a banner fiam message.

    Declaration

    Swift

    var actionURL: URL? { get }
  • Unavailable.

  • 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?, actionURL: URL?, appData: [AnyHashable : Any]?)