-
public final class SelectedChannelMenuKt
-
-
Method Summary
Modifier and Type Method Description final static UnitSelectedChannelMenu(Channel selectedChannel, User currentUser, List<ChannelAction> channelActions, Function1<ChannelAction, Unit> onChannelOptionConfirm, Function0<Unit> onDismiss, Modifier modifier, Shape shape, Color overlayColor, Function1<ColumnScope, Unit> headerContent, Function1<ColumnScope, Unit> centerContent)Shows special UI when an item is selected. -
-
Method Detail
-
SelectedChannelMenu
@Deprecated(message = Use ChannelActionsSheet. Will be removed in v8., replaceWith = @ReplaceWith(imports = {}, expression = ChannelActionsSheet(selectedChannel, channelActions, onChannelOptionConfirm, onDismiss, modifier, currentUser)))@Composable() final static Unit SelectedChannelMenu(Channel selectedChannel, User currentUser, List<ChannelAction> channelActions, Function1<ChannelAction, Unit> onChannelOptionConfirm, Function0<Unit> onDismiss, Modifier modifier, 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.currentUser- The currently logged-in user data.channelActions- The list of actions to show in the menu.onChannelOptionConfirm- Handler for when the user selects a channel option.onDismiss- Handler called when the dialog is dismissed.modifier- Modifier for styling.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.
-
-
-
-