Package 

Class ChannelOptionsKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelOptions(List<ChannelOptionState> options, Function1<ChannelAction, Unit> onChannelOptionClick, Modifier modifier) This is the default bottom drawer UI that shows up when the user long taps on a channel item.
      final static List<ChannelOptionState> buildDefaultChannelOptionsState(Channel selectedChannel, Boolean isMuted, Set<String> ownCapabilities) Builds the default list of channel options, based on the current user and the state of the channel.
      • Methods inherited from class java.lang.Object

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

      • ChannelOptions

        @Composable() final static Unit ChannelOptions(List<ChannelOptionState> options, Function1<ChannelAction, Unit> onChannelOptionClick, Modifier modifier)

        This is the default bottom drawer UI that shows up when the user long taps on a channel item.

        It sets up different actions that we provide, based on user permissions.

        Parameters:
        options - The list of options to show in the UI, according to user permissions.
        onChannelOptionClick - Handler for when the user selects a channel action.
        modifier - Modifier for styling.
      • buildDefaultChannelOptionsState

        @Composable() final static List<ChannelOptionState> buildDefaultChannelOptionsState(Channel selectedChannel, Boolean isMuted, Set<String> ownCapabilities)

        Builds the default list of channel options, based on the current user and the state of the channel.

        Parameters:
        selectedChannel - The currently selected channel.
        isMuted - If the channel is muted or not.
        ownCapabilities - Set of capabilities the user is given for the current channel.