-
public final class ChannelInfoMemberViewControllerController responsible for managing the state and events related to channel member information.
-
-
Field Summary
Fields Modifier and Type Field Description private final StateFlow<ChannelInfoMemberViewState>stateprivate final SharedFlow<ChannelInfoMemberViewEvent>events
-
Constructor Summary
Constructors Constructor Description ChannelInfoMemberViewController(String cid, String memberId, CoroutineScope scope, ChatClient chatClient, Flow<ChannelState> channelState)
-
Method Summary
Modifier and Type Method Description final StateFlow<ChannelInfoMemberViewState>getState()A StateFlow representing the current state of the channel info. final SharedFlow<ChannelInfoMemberViewEvent>getEvents()A SharedFlow that emits one-shot events related to channel info, such as errors or success events. final UnitonViewAction(ChannelInfoMemberViewAction action)Handles actions related to channel member information view. -
-
Constructor Detail
-
ChannelInfoMemberViewController
ChannelInfoMemberViewController(String cid, String memberId, CoroutineScope scope, ChatClient chatClient, Flow<ChannelState> channelState)
- Parameters:
cid- The full channel identifier (e.g., "messaging:123").memberId- The member ID of the user whose information is being managed.scope- The CoroutineScope used for launching coroutines.chatClient- The ChatClient instance used for interacting with the chat API.channelState- A Flow representing the state of the channel.
-
-
Method Detail
-
getState
final StateFlow<ChannelInfoMemberViewState> getState()
A StateFlow representing the current state of the channel info.
-
getEvents
final SharedFlow<ChannelInfoMemberViewEvent> getEvents()
A SharedFlow that emits one-shot events related to channel info, such as errors or success events.
-
onViewAction
final Unit onViewAction(ChannelInfoMemberViewAction action)
Handles actions related to channel member information view.
- Parameters:
action- The ChannelInfoMemberViewAction representing the action to be handled.
-
-
-
-