getMembersStatusText

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.

Return

The text that represent the member status of the channel.

Parameters

context

The context to load string resources.

currentUser

The currently logged in user.