User

data class User(    val userId: String,     val displayName: String? = null,     val avatarUrl: String? = null)

Data class which holds information about a user. It can be retrieved with org.matrix.android.sdk.api.session.user.UserService

Constructors

Link copied to clipboard
fun User(    userId: String,     displayName: String? = null,     avatarUrl: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val avatarUrl: String? = null
Link copied to clipboard
val displayName: String? = null

For usage in UI, consider converting to MatrixItem and call getBestName().

Link copied to clipboard
val userId: String

Extensions

Link copied to clipboard
fun User.toMatrixItem(): MatrixItem.UserItem