UserDetails
@available(iOS 12.0, *)
@objc(BDKUserDetails)
public class UserDetails : NSObject
A class holding user profile information.
-
The user’s ID in the Kaleyra Video platform.
Declaration
Swift
@objc public let userID: String -
The user’s first name.
Declaration
Swift
@objc public var firstname: String? { get } -
The user’s last name.
Declaration
Swift
@objc public var lastname: String? { get } -
The user’s display name.
Since
3.5.0Declaration
Swift
@objc public var displayName: String? { get } -
The user’s email.
Declaration
Swift
@objc public var email: String? { get } -
The user’s nickname.
Declaration
Swift
@objc public var nickname: String? { get } -
The user’s image URL. The URL may be a remote URL.
Declaration
Swift
@objc public var imageURL: URL? { get }
-
Convenience initializer initializing a UserDetails object with the userID provided as argument.
Declaration
Swift
@objc(initWithUserID:) public convenience init(userID: String)Parameters
userIDThe user’s ID.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the userID and the nickname provided as arguments.
Declaration
Swift
@objc(initWithUserID:nickname:) public convenience init(userID: String, nickname: String?)Parameters
userIDThe user’s ID.
nicknameThe user’s nickname. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the userID and the display name provided as arguments.
Since
3.5.0Declaration
Swift
@objc(initWithUserID:displayName:) public convenience init(userID: String, displayName: String?)Parameters
userIDThe user’s ID.
displayNameThe user’s display name. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the userID and the display name provided as arguments.
Since
3.5.0Declaration
Swift
@objc(initWithUserID:displayName:imageURL:) public convenience init(userID: String, displayName: String?, imageURL: URL?)Parameters
userIDThe user’s ID.
displayNameThe user’s display name. May be nil.
imageURLThe user’s profile image URL. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the user’s userID, firstname and lastname provided as arguments.
Declaration
Swift
@objc(initWithUserID:firstname:lastname:) public convenience init(userID: String, firstname: String?, lastname: String?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname.
lastnameThe user’s lastname.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the user’s userID, firstname, lastname and the user’s profile image URL provided as arguments.
Declaration
Swift
@objc(initWithUserID:firstname:lastname:imageURL:) public convenience init(userID: String, firstname: String?, lastname: String?, imageURL: URL?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname.
lastnameThe user’s lastname.
imageURLThe user’s profile image URL. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the user’s userID, firstname, lastname and email provided as arguments.
Declaration
Swift
@objc(initWithUserID:firstname:lastname:email:) public convenience init(userID: String, firstname: String?, lastname: String?, email: String?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname.
lastnameThe user’s lastname.
emailThe user’s email. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with the user’s userID, firstname, lastname, email and the user’s profile image URL provided as arguments.
Declaration
Swift
@objc(initWithUserID:firstname:lastname:email:imageURL:) public convenience init(userID: String, firstname: String?, lastname: String?, email: String?, imageURL: URL?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname. May be nil.
lastnameThe user’s lastname. May be nil.
emailThe user’s email. May be nil.
imageURLThe user’s profile image URL. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with all the user details provided as arguments.
Declaration
Swift
@objc(initWithUserID:firstname:lastname:email:nickname:imageURL:) public convenience init(userID: String, firstname: String?, lastname: String?, email: String?, nickname: String?, imageURL: URL?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname. May be nil.
lastnameThe user’s lastname. May be nil.
emailThe user’s email. May be nil.
nicknameThe user’s nickname. May be nil.
imageURLThe user’s profile image URL. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
-
Convenience initializer initializing a UserDetails object with all the user details provided as arguments.
Since
3.5.0Declaration
Swift
@objc(initWithUserID:firstname:lastname:displayName:email:nickname:imageURL:) public convenience init(userID: String, firstname: String?, lastname: String?, displayName: String?, email: String?, nickname: String?, imageURL: URL?)Parameters
userIDThe user’s ID.
firstnameThe user’s firstname. May be nil.
lastnameThe user’s lastname. May be nil.
displayNameThe user’s displayName. May be nil.
emailThe user’s email. May be nil.
nicknameThe user’s nickname. May be nil.
imageURLThe user’s profile image URL. May be nil.
Return Value
An initialized UserDetails object with the values provided as arguments stored in the corresponding properties.
View on GitHub
UserDetails Class Reference