MessageCenterInboxProtocol

public protocol MessageCenterInboxProtocol : MessageCenterInboxBaseProtocol

Airship Message Center inbox protocol.

  • Publisher that emits messages.

    Declaration

    Swift

    var messagePublisher: AnyPublisher<[MessageCenterMessage], Never> { get }
  • Publisher that emits unread counts.

    Declaration

    Swift

    var unreadCountPublisher: AnyPublisher<Int, Never> { get }
  • messages Asynchronous

    The list of messages in the inbox.

    Declaration

    Swift

    var messages: [MessageCenterMessage] { get async }
  • user Asynchronous

    The user associated to the Message Center

    Declaration

    Swift

    var user: MessageCenterUser? { get async }
  • unreadCount Asynchronous

    The number of messages that are currently unread.

    Declaration

    Swift

    var unreadCount: Int { get async }
  • 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, otherwise false.