User

open class User

Represents a user.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

The user connection status type.

Properties

Link copied to clipboard
Link copied to clipboard

Represents friend discovery key.

Link copied to clipboard

The friend name.

Link copied to clipboard

Whether the user is active.

Link copied to clipboard

The time this User has been last seen at. Zero if this User is online.

Link copied to clipboard

All meta data of the user.

Link copied to clipboard

The nickname of the user.

Link copied to clipboard

The User original profile URL.

Link copied to clipboard

The plain profile image URL, which does not contain SendbirdChat.eKey as a parameter. If the file encryption feature is enabled, accessing this plainProfileImageUrl will be denied.

Link copied to clipboard

The preferred languages of the user.

Link copied to clipboard

The profile image URL. If the file encryption feature is enabled, this will have SendbirdChat.eKey combined with the plainProfileImageUrl so the file can be accessed. For caching the file, it is recommended to use plainProfileImageUrl as the key of the file cache.

Link copied to clipboard

The ID of the user.

Functions

Link copied to clipboard
fun createMetaData(metaDataMap: Map<String, String>, handler: MetaDataHandler?)

Creates meta data. This can be used to customize the user.

Link copied to clipboard

Deletes all meta data.

Link copied to clipboard

Deletes a meta data.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard

Gets meta data.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open fun serialize(): ByteArray?

Serializes the User instance. This byte array can be stored in the database in your application. The instance can be restored by buildFromSerializedData.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
fun updateMetaData(metaDataMap: Map<String, String>, handler: MetaDataHandler?)

Updates meta data.