UikitUser

sealed interface UikitUser

Represents an interface for a user in Sendbird Compose Uikit.

Since

1.0.0

See also

Inheritors

Properties

Link copied to clipboard
abstract val nickname: String

The nickname of the user.

Link copied to clipboard
abstract val profileUrl: String?

The profile URL of the user.

Link copied to clipboard
abstract val userId: String

The userId.

Functions

Link copied to clipboard

Returns the annotated nickname of the user. If the user is the current user, it appends the "You" badge to the nickname.

Link copied to clipboard
fun UikitUser?.toDisplayName(usePronouns: Boolean = false, maxLength: Int = Int.MAX_VALUE): String

Converts the UikitUser to a display name.

Link copied to clipboard

Returns the nickname of the user or the unknown text if the nickname is empty.