-
public final class ChannelAvatarKt
-
-
Method Summary
Modifier and Type Method Description final static UnitChannelAvatar(Channel channel, User currentUser, Modifier modifier, AvatarPresenceIndicator indicator, Boolean showBorder)The default avatar for a channel. final static UnitChannelAvatar(Channel channel, User currentUser, Modifier modifier, Boolean showIndicator, Boolean showBorder)The default avatar for a channel. -
-
Method Detail
-
ChannelAvatar
@Composable() final static Unit ChannelAvatar(Channel channel, User currentUser, Modifier modifier, AvatarPresenceIndicator indicator, Boolean showBorder)
The default avatar for a channel.
This component displays the channel image, the user avatar for direct messages, or a placeholder.
- Parameters:
channel- The channel whose avatar will be displayed.currentUser- The user currently logged in.modifier- The modifier to be applied to this layout.indicator- The presence indicator to overlay on the avatar.showBorder- Whether to draw a border around the avatar to provide contrast against the background.
-
ChannelAvatar
@Deprecated(message = Use the overload that takes an AvatarPresenceIndicator. showIndicator showed a grey dot when the channel was offline; pass an explicit indicator (AvatarPresenceIndicator.Online, Offline, or None) to control the presence states., level = DeprecationLevel.WARNING)@Composable() final static Unit ChannelAvatar(Channel channel, User currentUser, Modifier modifier, Boolean showIndicator, Boolean showBorder)
The default avatar for a channel.
- Parameters:
channel- The channel whose avatar will be displayed.currentUser- The user currently logged in.modifier- The modifier to be applied to this layout.showIndicator- Whether to overlay a status indicator to show whether the user is online for 1:1 channels.showBorder- Whether to draw a border around the avatar to provide contrast against the background.
-
-
-
-