MessageCenterMessage
public struct MessageCenterMessage : Sendable, Equatable, Identifiable
Message center message.
-
The message title.
Declaration
Swift
public var title: String
-
The Airship message ID. This ID may be used to match an incoming push notification to a specific message.
Declaration
Swift
public var id: String
-
The message’s extra dictionary. This dictionary can be populated with arbitrary key-value data at the time the message is composed.
Declaration
Swift
public var extra: [String : String]
-
The URL for the message body itself. This URL may only be accessed with Basic Auth credentials set to the user ID and password.
Declaration
Swift
public var bodyURL: URL
-
The date and time the message will expire. A nil value indicates it will never expire.
Declaration
Swift
public var expirationDate: Date?
-
The date and time the message was sent (UTC).
Declaration
Swift
public var sentDate: Date
-
The unread status of the message.
true
if the message is unread, otherwisefalse
.Declaration
Swift
public var unread: Bool
-
The list icon of the message.
nil
if there is none.Declaration
Swift
public var listIcon: String? { get }
-
The subtitle of the message.
nil
if there is none.Declaration
Swift
public var subtitle: String? { get }
-
Parses the message ID.
Declaration
Swift
public static func parseMessageID(userInfo: [AnyHashable : Any]) -> String?
Parameters
userInfo
The notification user info.
Return Value
The message ID.
-
Tells if the message is expired.
true
if the message is expired, otherwisefalse
.Declaration
Swift
public var isExpired: Bool { get }