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
heading
Model defining the message heading
body
Model defining the message body
media
Model defining the message media
buttons
Message button models
buttonLayoutType
Button layout model
template
Layout template defining text position relative to media
backgroundColor
Background color
dismissButtonColor
Dismiss button color
borderRadius
Border radius of the message body
duration
Duration before message is dismissed
placement
Placement of message on its parent
actions
Actions to execute on message tap