Class UserKt

  • All Implemented Interfaces:

    
    public final class UserKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static String getLastSeenText(User $self, Context context, @StringRes() Integer userOnlineResId, @StringRes() Integer userLastSeenJustNowResId, @StringRes() Integer userLastSeenResId) Returns a string describing the elapsed time since the user was online (was watching the channel).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • getLastSeenText

         final static String getLastSeenText(User $self, Context context, @StringRes() Integer userOnlineResId, @StringRes() Integer userLastSeenJustNowResId, @StringRes() Integer userLastSeenResId)

        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.
        userOnlineResId - Resource id for the online text.
        userLastSeenJustNowResId - Resource id for the just now text.
        userLastSeenResId - Resource id for the last seen text.
        Returns:

        A string that represents the elapsed time since the user was online.