Package 

Class ChannelsKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit Channels(ChannelsState channelsState, LazyListState lazyListState, Function0<Unit> onLastItemReached, Modifier modifier, PaddingValues contentPadding, Function1<BoxScope, Unit> helperContent, Function1<LazyItemScope, Unit> loadingMoreContent, Function2<LazyItemScope, ItemState, Unit> itemContent, Function1<LazyItemScope, Unit> divider) Builds a list of ChannelItem elements, based on channelsState and action handlers that it receives.
      • Methods inherited from class java.lang.Object

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

      • Channels

        @Composable() final static Unit Channels(ChannelsState channelsState, LazyListState lazyListState, Function0<Unit> onLastItemReached, Modifier modifier, PaddingValues contentPadding, Function1<BoxScope, Unit> helperContent, Function1<LazyItemScope, Unit> loadingMoreContent, Function2<LazyItemScope, ItemState, Unit> itemContent, Function1<LazyItemScope, Unit> divider)

        Builds a list of ChannelItem elements, based on channelsState and action handlers that it receives.

        Parameters:
        channelsState - Exposes if we're loading more items, reaches the end of the list and the current list of channels to show.
        lazyListState - State of the lazy list that represents the list of channels.
        onLastItemReached - Handler for when the user reaches the end of the list.
        modifier - Modifier for styling.
        contentPadding - Padding values to be applied to the channel list surrounding the content inside.
        helperContent - Composable that represents the helper content.
        loadingMoreContent - Composable that represents the loading more content, when we're loading the next page.
        itemContent - Customizable UI component, that represents each item in the list.
        divider - Customizable UI component, that represents item dividers.