User
@objc(SBCUser)
public class User : NSObject, Codable
extension User: NSCopying
Class for SendBirdCalls User.
Since
1.0.0-
The user ID of the call user.
Since
1.0.0Declaration
Swift
@objc public let userId: String -
The nickname of the user.
Since
1.0.0Declaration
Swift
@objc public internal(set) var nickname: String? { get } -
The profile image URL of the user.
Since
1.0.0Declaration
Swift
@objc public internal(set) var profileURL: String? { get } -
Metadata of the user.
Since
1.0.0Declaration
Swift
@objc public internal(set) var metadata: [String : String]? { get } -
Activity status of the user. If it is
false, the user is offline. The default value isfalse.Since
1.0.0Declaration
Swift
@objc public internal(set) var isActive: Bool { get } -
Declaration
Swift
required public init(from decoder: Decoder) throws -
The hash value of
User.Declaration
Swift
public override var hash: Int { get } -
Returns a Boolean value that indicates whether the
Userand a given object are equal.Declaration
Swift
public override func isEqual(_ object: Any?) -> Bool -
Returns a copied instance of the
User.Declaration
Swift
public func copy(with zone: NSZone? = nil) -> Any
View on GitHub
User Class Reference