Package 

Class UserAvatarKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit UserAvatar(User user, Modifier modifier, Shape shape, TextStyle textStyle, String contentDescription, Boolean showOnlineIndicator, Painter placeholderPainter, Painter errorPlaceholderPainter, OnlineIndicatorAlignment onlineIndicatorAlignment, DpOffset initialsAvatarOffset, Function1<BoxScope, Unit> onlineIndicator, Function0<Unit> onClick) Represents the User avatar that's shown on the Messages screen or in headers of DMs.
      • Methods inherited from class java.lang.Object

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

      • UserAvatar

        @Composable() final static Unit UserAvatar(User user, Modifier modifier, Shape shape, TextStyle textStyle, String contentDescription, Boolean showOnlineIndicator, Painter placeholderPainter, Painter errorPlaceholderPainter, OnlineIndicatorAlignment onlineIndicatorAlignment, DpOffset initialsAvatarOffset, Function1<BoxScope, Unit> onlineIndicator, Function0<Unit> onClick)

        Represents the User avatar that's shown on the Messages screen or in headers of DMs.

        Based on the state within the User, we either show an image or their initials.

        Parameters:
        user - The user whose avatar we want to show.
        modifier - Modifier for styling.
        shape - The shape of the avatar.
        textStyle - The TextStyle that will be used for the initials.
        contentDescription - The content description of the avatar.
        showOnlineIndicator - If we show online indicator or not.
        onlineIndicatorAlignment - The alignment of online indicator.
        initialsAvatarOffset - The initials offset to apply to the avatar.
        onlineIndicator - Custom composable that allows to replace the default online indicator.
        onClick - The handler when the user clicks on the avatar.