getMembersStatusText
fun Channel.getMembersStatusText( context: Context, currentUser: User?, countCurrentUserAsOnlineMember: Boolean = true, countOtherUsersAsOnlineMembers: Boolean = true, @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.
countCurrentUserAsOnlineMember
If true
, the current user will be counted as an online member.
countOtherUsersAsOnlineMembers
If true
, other users will be counted as online members.
userOnlineResId
The resource identifier of the string representing an online user.
userLastSeenJustNowResId
The resource identifier of the string representing a user who was last seen just now.
userLastSeenResId
The resource identifier of the string representing a user who was last seen.
memberCountResId
The resource identifier of the string representing the member count.