Package-level declarations

Inherited functions

Link copied to clipboard

Small extension function designed to add a scheme to URLs that do not have one so that they can be opened using android.content.Intent.ACTION_VIEW

Link copied to clipboard

Checks if a message contains a link using a regular expression.

Link copied to clipboard

Create the default channel list filter for the given user.

Link copied to clipboard
fun Channel.getDisplayName(context: Context, currentUser: User? = ChatClient.instance().clientState.user.value, @StringRes fallback: Int, maxMembers: Int = 2): String

Returns the channel name if exists, or the list of member names if the channel is distinct.

Link copied to clipboard
fun User.getLastSeenText(context: Context, @StringRes userOnlineResId: Int, @StringRes userLastSeenJustNowResId: Int, @StringRes userLastSeenResId: Int): String

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?, @StringRes userOnlineResId: Int, @StringRes userLastSeenJustNowResId: Int, @StringRes userLastSeenResId: Int, @PluralsRes memberCountResId: Int, @StringRes memberCountWithOnlineResId: Int): 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
fun Channel.getPreviewMessage(currentUser: User?): Message?

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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

If the date is not older than one minute.

Link copied to clipboard