-
public interface ActivityStateAn 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. -
-
Method Detail
-
getActivity
abstract StateFlow<ActivityData> getActivity()
The current activity data.
-
getComments
abstract StateFlow<List<ThreadedCommentData>> getComments()
The list of comments for this activity, sorted by default sorting criteria.
-
-
-
-