Banner
public struct Banner : Codable, Sendable, Equatable
Banner display content
-
Banner layout templates
See moreDeclaration
Swift
public enum Template : String, Codable, Sendable -
Banner placement
See moreDeclaration
Swift
public enum Placement : String, Codable, Sendable, Equatable -
The heading
Declaration
Swift
public var heading: InAppMessageTextInfo? -
The body
Declaration
Swift
public var body: InAppMessageTextInfo? -
The media
Declaration
Swift
public var media: InAppMessageMediaInfo? -
The buttons
Declaration
Swift
public var buttons: [InAppMessageButtonInfo]? -
The button layout type
Declaration
Swift
public var buttonLayoutType: InAppMessageButtonLayoutType? -
The template
Declaration
Swift
public var template: Template? -
The background color
Declaration
Swift
public var backgroundColor: InAppMessageColor? -
The dismiss button color
Declaration
Swift
public var dismissButtonColor: InAppMessageColor? -
The border radius
Declaration
Swift
public var borderRadius: Double? -
How long the banner displays
Declaration
Swift
public var duration: TimeInterval? -
Banner placement
Declaration
Swift
public var placement: Placement? -
Tap actions
Declaration
Swift
public var actions: AirshipJSON? -
init(heading:body: media: buttons: buttonLayoutType: template: backgroundColor: dismissButtonColor: borderRadius: duration: placement: actions: ) Banner in-app message model initializer
Declaration
Swift
public init( heading: InAppMessageTextInfo? = nil, body: InAppMessageTextInfo? = nil, media: InAppMessageMediaInfo? = nil, buttons: [InAppMessageButtonInfo]? = nil, buttonLayoutType: InAppMessageButtonLayoutType? = nil, template: Template? = nil, backgroundColor: InAppMessageColor? = nil, dismissButtonColor: InAppMessageColor? = nil, borderRadius: Double? = nil, duration: TimeInterval? = nil, placement: Placement? = nil, actions: AirshipJSON? = nil )Parameters
headingModel defining the message heading
bodyModel defining the message body
mediaModel defining the message media
buttonsMessage button models
buttonLayoutTypeButton layout model
templateLayout template defining text position relative to media
backgroundColorBackground color
dismissButtonColorDismiss button color
borderRadiusBorder radius of the message body
durationDuration before message is dismissed
placementPlacement of message on its parent
actionsActions to execute on message tap
View on GitHub