-
public final class ChannelInfoViewModel extends ViewModel
ViewModel for managing channel information and its actions.
-
-
Constructor Summary
Constructors Constructor Description ChannelInfoViewModel(String cid, CopyToClipboardHandler copyToClipboardHandler, Function1<ChannelInfoViewState.Content.Option, Boolean> optionFilter, Function1<ViewModel, ChannelInfoViewController> controllerProvider)
-
Method Summary
Modifier and Type Method Description final StateFlow<ChannelInfoViewState>getState()final SharedFlow<ChannelInfoViewEvent>getEvents()final UnitonViewAction(ChannelInfoViewAction action)final UnitonMemberViewEvent(ChannelInfoMemberViewEvent event)-
-
Constructor Detail
-
ChannelInfoViewModel
ChannelInfoViewModel(String cid, CopyToClipboardHandler copyToClipboardHandler, Function1<ChannelInfoViewState.Content.Option, Boolean> optionFilter, Function1<ViewModel, ChannelInfoViewController> controllerProvider)
- Parameters:
cid- The full channel identifier (e.g., "messaging:123").copyToClipboardHandler- The handler for copying text to the clipboard.optionFilter- A filter function for channel options, allowing customization of which options are displayed.controllerProvider- The provider for ChannelInfoViewController.
-
-
Method Detail
-
getState
final StateFlow<ChannelInfoViewState> getState()
-
getEvents
final SharedFlow<ChannelInfoViewEvent> getEvents()
-
onViewAction
final Unit onViewAction(ChannelInfoViewAction action)
-
onMemberViewEvent
final Unit onMemberViewEvent(ChannelInfoMemberViewEvent event)
-
-
-
-