Package 

Class ChannelInfoViewModel

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final StateFlow<ChannelInfoViewState> state
      private final SharedFlow<ChannelInfoViewEvent> events
    • 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 Unit onViewAction(ChannelInfoViewAction action)
      final Unit onMemberViewEvent(ChannelInfoMemberViewEvent event)
      • Methods inherited from class io.getstream.chat.android.compose.viewmodel.channel.ChannelInfoViewModel

        addCloseable, addCloseable, addCloseable, getCloseable
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.