MessageCenterInboxProtocol
public protocol MessageCenterInboxProtocol : MessageCenterInboxBaseProtocol
Airship Message Center inbox protocol.
-
Publisher that emits messages.
Declaration
Swift
var messagePublisher: AnyPublisher<[MessageCenterMessage], Never> { get }
-
Async Stream on messages’ updates
Declaration
Swift
var messageUpdates: AsyncStream<[MessageCenterMessage]> { get }
-
Publisher that emits unread counts.
Declaration
Swift
var unreadCountPublisher: AnyPublisher<Int, Never> { get }
-
Async Stream of unread count updates
Declaration
Swift
var unreadCountUpdates: AsyncStream<Int> { get }
-
messages
AsynchronousThe list of messages in the inbox.
Declaration
Swift
var messages: [MessageCenterMessage] { get async }
-
user
AsynchronousThe user associated to the Message Center
Declaration
Swift
var user: MessageCenterUser? { get async }
-
unreadCount
AsynchronousThe number of messages that are currently unread.
Declaration
Swift
var unreadCount: Int { get async }
-
refreshMessages(timeout:
Asynchronous) Refreshes the list of messages in the inbox.
Declaration
Swift
@discardableResult func refreshMessages(timeout: TimeInterval) async throws -> Bool
Return Value
true
if the messages was refreshed, otherwisefalse
.