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