UAMessageCenterInbox
@objc
public final class UAMessageCenterInbox : NSObject, Sendable
Message center inbox.
-
getMessages()AsynchronousThe list of messages in the inbox.
Declaration
Swift
@objc public func getMessages() async -> [UAMessageCenterMessage] -
getUser()AsynchronousThe user associated to the Message Center
Declaration
Swift
@objc public func getUser() async -> UAMessageCenterUser? -
getUnreadCount()AsynchronousThe number of messages that are currently unread.
Declaration
Swift
@objc public func getUnreadCount() async -> Int -
message(forBodyURL:Asynchronous) Returns the message associated with a particular URL.
Declaration
Swift
@objc public func message(forBodyURL bodyURL: URL) async -> UAMessageCenterMessage?Parameters
bodyURLThe URL of the message.
Return Value
The associated
MessageCenterMessageobject or nil if a message was unable to be found. -
message(forID:Asynchronous) Returns the message associated with a particular ID.
Declaration
Swift
@objc public func message(forID messageID: String) async -> UAMessageCenterMessage?Parameters
messageIDThe message ID.
Return Value
The associated
MessageCenterMessageobject or nil if a message was unable to be found. -
refreshMessages()AsynchronousRefreshes the list of messages in the inbox.
Declaration
Swift
@discardableResult @objc public func refreshMessages() async -> BoolReturn Value
trueif the messages was refreshed, otherwisefalse. -
markRead(messages:Asynchronous) Marks messages read.
Declaration
Swift
@objc public func markRead(messages: [UAMessageCenterMessage]) asyncParameters
messagesThe list of messages to be marked read.
-
markRead(messageIDs:Asynchronous) Marks messages read by message IDs.
Declaration
Swift
@objc public func markRead(messageIDs: [String]) asyncParameters
messageIDsThe list of message IDs for the messages to be marked read.
-
delete(messages:Asynchronous) Marks messages deleted.
Declaration
Swift
@objc public func delete(messages: [UAMessageCenterMessage]) asyncParameters
messagesThe list of messages to be marked deleted.
-
delete(messageIDs:Asynchronous) Marks messages deleted by message IDs.
Declaration
Swift
@objc public func delete(messageIDs: [String]) asyncParameters
messageIDsThe list of message IDs for the messages to be marked deleted.
View on GitHub