UnreadItemKey
@objc(SBDUnreadItemKey)
public final class UnreadItemKey : NSObject, OptionSet, Codable
The bitmask keys of count about unread messages or invitation.
-
Declaration
Swift
@objc public var rawValue: Int
-
Default constructor.
Declaration
Swift
@objc required public init(rawValue: Int)
-
The bitmask key for unread message count of non super channel.
Declaration
Swift
@objc public static let nonSuperUnreadMessageCount: UnreadItemKey
-
The bitmask key for unread message count of super channel.
Declaration
Swift
@objc public static let superUnreadMessageCount: UnreadItemKey
-
The bitmask key for invitation count of non super channel.
Declaration
Swift
@objc public static let nonSuperInvitationCount: UnreadItemKey
-
The bitmask key for invitation count of super channel.
Declaration
Swift
@objc public static let superInvitationCount: UnreadItemKey
-
The bitmask key for unread mention count of non super channel.
Declaration
Swift
@objc public static let nonSuperUnreadMentionCount: UnreadItemKey
-
The bitmask key for unread mention count of non super channel.
Declaration
Swift
@objc public static let superUnreadMentionCount: UnreadItemKey
-
The bitmask key for unread message count of group channel(super and non-super).
Declaration
Swift
@objc public static let groupChannelUnreadMessageCount: UnreadItemKey
-
The bitmask key for unread mention count of group channel(super and non-super).
Declaration
Swift
@objc public static let groupChannelUnreadMentionCount: UnreadItemKey
-
The bitmask key for invitation count of group channel(super and non-super).
Declaration
Swift
@objc public static let groupChannelInvitationCount: UnreadItemKey
-
Constructor
Declaration
Swift
public required convenience init(from decoder: Decoder) throws
-
Encodes this object.
Declaration
Swift
public func encode(to encoder: Encoder) throws
Parameters
encoder
Encoder
instance -
Parameter constructor
Declaration
Swift
@objc public convenience init(keys: [UnreadItemKey])
Parameters
keys
array of
UnreadItemKey
-
hash
Declaration
Swift
public override var hash: Int { get }
-
Compares this object with given other object.
Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool
Parameters
object
Any
instanceReturn Value
true
if same otherwisefalse
-
Union other into this key
Declaration
Swift
@objc public func formUnion(_ other: UnreadItemKey)
-
Intersects other into this key
Declaration
Swift
@objc public func formIntersection(_ other: UnreadItemKey)
-
Symmetric difference from other
Declaration
Swift
@objc public func formSymmetricDifference(_ other: UnreadItemKey)