InAppMessage
public struct InAppMessage : Codable, Equatable, Sendable
In-App Message
-
Display behavior
See moreDeclaration
Swift
public enum DisplayBehavior : String, Codable, Equatable, Sendable -
The name.
Declaration
Swift
public var name: String -
Display content
Declaration
Swift
public var displayContent: InAppMessageDisplayContent { get set } -
Any message extras.
Declaration
Swift
public var extras: AirshipJSON? -
Display actions.
Declaration
Swift
public var actions: AirshipJSON? -
If reporting is enabled or not for the message.
Declaration
Swift
public var isReportingEnabled: Bool? -
Display behavior
Declaration
Swift
public var displayBehavior: DisplayBehavior? -
In-app message constructor
Declaration
Swift
public init( name: String, displayContent: InAppMessageDisplayContent, extras: AirshipJSON? = nil, actions: AirshipJSON? = nil, isReportingEnabled: Bool? = nil, displayBehavior: DisplayBehavior? = nil )Parameters
nameName of the message
displayContentContent model to be displayed in the message
extrasExtras payload as JSON
actionsActions to be executed by the message as JSON
isReportingEnabledReporting enabled flag
displayBehaviorDisplay behavior
-
Declaration
Swift
public init(from decoder: any Decoder) throws -
Declaration
Swift
public func encode(to encoder: any Encoder) throws
View on GitHub