MessageContext
@objc(SBDMessageContext)
public final class MessageContext : NSObject
Represents what happened to the messages.
Since
3.1.0-
Event source
Declaration
Swift
@objc public private(set) var source: CollectionEventSource { get }
-
Message sending status
Declaration
Swift
@objc public private(set) var sendingStatus: MessageSendingStatus { get }
-
Initializes with the message source.
Declaration
Swift
public init(source: CollectionEventSource, sendingStatus: MessageSendingStatus)
Parameters
source
Message source.
sendingStatus
Message sending status.
-
Checks whether the context is from an event or not.
Declaration
Swift
@objc public var fromEvent: Bool { get }
Return Value
true
if the context is from an event.