Package-level declarations

Properties

Link copied to clipboard

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

Link copied to clipboard

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun View.showToast(@StringRes resId: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard