Package 

Class ChannelScreenKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelScreen(ChannelViewModelFactory viewModelFactory, Function0<Unit> onBackPressed, Function1<Channel, Unit> onHeaderTitleClick, String onHeaderTitleClickLabel, Function1<Channel, Unit> onChannelAvatarClick, String onChannelAvatarClickLabel, Boolean skipPushNotification, Boolean skipEnrichUrl, Arrangement.Vertical verticalArrangement, Arrangement.Vertical threadsVerticalArrangement, Function1<Function0<Unit>, Unit> topBarContent, Function0<Unit> bottomBarContent) Default root Channel screen component, that provides the necessary ViewModels and connects all the data handling operations, as well as some basic actions, like back pressed handling.
      final static Unit MessageMenus(BoxScope $self, MessageListViewModel listViewModel, MessageComposerViewModel composerViewModel, Boolean skipPushNotification, Boolean skipEnrichUrl) Contains the various menus and pickers the user can use to interact with messages.
      final static Unit MessageModerationDialog(MessageListViewModel listViewModel, MessageComposerViewModel composerViewModel, Boolean skipPushNotification, Boolean skipEnrichUrl) Contains the dialog for a message that needs to be moderated.
      final static Unit MessageDialogs(MessageListViewModel listViewModel) Contains the message dialogs used to prompt the user with message flagging and deletion actions
      final static Unit PollDialogs(MessageListViewModel listViewModel) Displays poll-related dialogs based on the current poll selection state in listViewModel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • ChannelScreen

        @Composable() final static Unit ChannelScreen(ChannelViewModelFactory viewModelFactory, Function0<Unit> onBackPressed, Function1<Channel, Unit> onHeaderTitleClick, String onHeaderTitleClickLabel, Function1<Channel, Unit> onChannelAvatarClick, String onChannelAvatarClickLabel, Boolean skipPushNotification, Boolean skipEnrichUrl, Arrangement.Vertical verticalArrangement, Arrangement.Vertical threadsVerticalArrangement, Function1<Function0<Unit>, Unit> topBarContent, Function0<Unit> bottomBarContent)

        Default root Channel screen component, that provides the necessary ViewModels and connects all the data handling operations, as well as some basic actions, like back pressed handling.

        Because this screen can be shown only if there is an active/selected Channel, the user must provide a viewModelFactory that contains the channel ID, in order to load up all the data. Otherwise, we can't show the UI.

        Parameters:
        viewModelFactory - The factory used to build ViewModels and power the behavior.
        onBackPressed - Handler for when the user taps on the Back button and/or the system back button.
        onHeaderTitleClick - Handler for when the user taps on the header section.
        onHeaderTitleClickLabel - Semantic / accessibility label for onHeaderTitleClick.
        onChannelAvatarClick - Handler called when the user taps on the channel avatar.
        onChannelAvatarClickLabel - Semantic / accessibility label for onChannelAvatarClick.
        skipPushNotification - If new messages should skip triggering a push notification when sent.
        skipEnrichUrl - If new messages being sent, or existing ones being updated should skip enriching the URL.
        verticalArrangement - Vertical arrangement of the regular message list.
        threadsVerticalArrangement - Vertical arrangement of the thread message list.
        topBarContent - custom top bar content to be displayed on top of the messages list.
        bottomBarContent - custom bottom bar content to be displayed at the bottom of the messages list.
      • MessageMenus

        @Composable() final static Unit MessageMenus(BoxScope $self, MessageListViewModel listViewModel, MessageComposerViewModel composerViewModel, Boolean skipPushNotification, Boolean skipEnrichUrl)

        Contains the various menus and pickers the user can use to interact with messages.

        Parameters:
        listViewModel - The MessageListViewModel used to read state from.
        composerViewModel - The MessageComposerViewModel used to read state from.
        skipPushNotification - If the message should skip triggering a push notification when sent.
        skipEnrichUrl - If the message should skip enriching the URL.
      • PollDialogs

        @Composable() final static Unit PollDialogs(MessageListViewModel listViewModel)

        Displays poll-related dialogs based on the current poll selection state in listViewModel.

        Parameters:
        listViewModel - The MessageListViewModel that provides the current poll dialog state.