Package 

Class ChannelAvatarKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit ChannelAvatar(Channel channel, User currentUser, Modifier modifier, Shape shape, TextStyle textStyle, TextStyle groupAvatarTextStyle, Boolean showOnlineIndicator, OnlineIndicatorAlignment onlineIndicatorAlignment, Function1<BoxScope, Unit> onlineIndicator, String contentDescription, Function0<Unit> onClick) Represents the Channel avatar that's shown when browsing channels or when you open the Messages screen.
      • Methods inherited from class java.lang.Object

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

      • ChannelAvatar

        @Composable() final static Unit ChannelAvatar(Channel channel, User currentUser, Modifier modifier, Shape shape, TextStyle textStyle, TextStyle groupAvatarTextStyle, Boolean showOnlineIndicator, OnlineIndicatorAlignment onlineIndicatorAlignment, Function1<BoxScope, Unit> onlineIndicator, String contentDescription, Function0<Unit> onClick)

        Represents the Channel avatar that's shown when browsing channels or when you open the Messages screen.

        Based on the state of the Channel and the number of members, it shows different types of images.

        Parameters:
        channel - The channel whose data we need to show.
        currentUser - The current user, used to determine avatar data.
        modifier - Modifier for styling.
        shape - The shape of the avatar.
        textStyle - The TextStyle that will be used for the initials.
        groupAvatarTextStyle - The TextStyle that will be used for the initials in sectioned avatar.
        showOnlineIndicator - If we show online indicator or not.
        onlineIndicatorAlignment - The alignment of online indicator.
        onlineIndicator - Custom composable that allows to replace the default online indicator.
        contentDescription - The description to use for the avatar.
        onClick - The handler when the user clicks on the avatar.