Class UserKt
-
- All Implemented Interfaces:
public final class UserKt
-
-
Method Summary
Modifier and Type Method Description final static StringgetLastSeenText(User $self, Context context)Returns a string describing the elapsed time since the user was online (was watching the channel). -
-
Method Detail
-
getLastSeenText
final static String getLastSeenText(User $self, Context context)
Returns a string describing the elapsed time since the user was online (was watching the channel).
Depending on the elapsed time, the string can have one of the following formats:
Online
Last seen just now
Last seen 13 hours ago
- Parameters:
context- The context to load string resources.- Returns:
A string that represents the elapsed time since the user was online.
-
-
-
-