Package-level declarations

Inherited properties

Link copied to clipboard

Ensures the context being accessed in a View can be cast to Activity.

Link copied to clipboard

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Int.dpToPx(): Int

Transforms DP value integer to pixels, based on the screen density.

Link copied to clipboard

Uses the display metrics to transform the value of DP to pixels.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns channel's last regular or system message if exists. Deleted and silent messages, as well as messages from shadow-banned users, are not taken into account.

Link copied to clipboard

Returns a string describing the elapsed time since the user was online (was watching the channel).

Link copied to clipboard
fun Channel.getMembersStatusText(context: Context, currentUser: User? = ChatUI.currentUserProvider.getCurrentUser()): String

Returns a string describing the member status of the channel: either a member count for a group channel or the last seen text for a direct one-to-one conversation with the current user.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Checks if the message is the last in a group, meaning it has no messages below it. A message with MessagePosition.NONE is also considered the last in the group, as it represents a single isolated message.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun View.showToast(@StringRes resId: Int)
Link copied to clipboard

Converts the common MessageListState to ui-components MessageListItemWrapper.

Link copied to clipboard
Link copied to clipboard