-
public final class SelectedChannelMenuKt
-
-
Method Summary
Modifier and Type Method Description final static UnitSelectedChannelMenu(Channel selectedChannel, Boolean isMuted, User currentUser, Function1<ChannelAction, Unit> onChannelOptionClick, Function0<Unit> onDismiss, Modifier modifier, List<ChannelOptionState> channelOptions, Shape shape, Color overlayColor, Function1<ColumnScope, Unit> headerContent, Function1<ColumnScope, Unit> centerContent)Shows special UI when an item is selected. -
-
Method Detail
-
SelectedChannelMenu
@Composable() final static Unit SelectedChannelMenu(Channel selectedChannel, Boolean isMuted, User currentUser, Function1<ChannelAction, Unit> onChannelOptionClick, Function0<Unit> onDismiss, Modifier modifier, List<ChannelOptionState> channelOptions, Shape shape, Color overlayColor, Function1<ColumnScope, Unit> headerContent, Function1<ColumnScope, Unit> centerContent)
Shows special UI when an item is selected. It also prepares the available options for the channel, based on if we're an admin or not.
- Parameters:
selectedChannel- The channel the user selected.isMuted- If the channel is muted for the current user.onChannelOptionClick- Handler for when the user selects a channel option.onDismiss- Handler called when the dialog is dismissed.modifier- Modifier for styling.channelOptions- The list of options to show in the UI, according to user permissions.shape- The shape of the component.overlayColor- The color applied to the overlay.headerContent- The content shown at the top of the dialog.centerContent- The content shown at the center of the dialog.
-
-
-
-