Package 

Interface ActivityState


  • 
    public interface ActivityState
    
                        

    An observable object representing the current state of an activity.

    This class manages the state of a single activity including its comments, poll data, and real-time updates. It automatically updates when WebSocket events are received and provides change handlers for state modifications.

    • Method Summary

      Modifier and Type Method Description
      abstract StateFlow<ActivityData> getActivity() The current activity data.
      abstract StateFlow<List<ThreadedCommentData>> getComments() The list of comments for this activity, sorted by default sorting criteria.
      abstract StateFlow<PollData> getPoll() The poll data associated with this activity, if any.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait