Sender

open class Sender : User

Represents a sender.

Since

3.0.82

Types

Link copied to clipboard
object Companion

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

Whether this sender is blocked by SendbirdChat.currentUser.

Link copied to clipboard

Indicates whether this User is a bot or not.

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
val role: Role

The Role of this sender in the current channel. If the sender's role status changes after the field value allocation, the value returned by this method may not reflect the latest role.

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 override fun serialize(): ByteArray

Serializes the Sender 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.