toDisplayName

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

Converts the UikitUser to a display name.

Receiver

The UikitUser.

Return

The display name.

Since

1.0.0-beta.1

Parameters

usePronouns

If true, the display name will be "You" if the user is the current user or the user's nickname otherwise. Defaults to false.

maxLength

The maximum length of the display name. Defaults to Int.MAX_VALUE.