-
public interface DecoratorProviderFactoryA factory responsible for creating DecoratorProviders to be used in io.getstream.chat.android.ui.feature.messages.list.MessageListView.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classDecoratorProviderFactory.Companion
-
Method Summary
Modifier and Type Method Description abstract DecoratorProvidercreateDecoratorProvider(Channel channel, DateFormatter dateFormatter, MessageListViewStyle messageListViewStyle, MessageListView.ShowAvatarPredicate showAvatarPredicate, MessageBackgroundFactory messageBackgroundFactory, Function1<String, String> getLanguageDisplayName)Creates a new DecoratorProvider for the given channel. -
-
Method Detail
-
createDecoratorProvider
abstract DecoratorProvider createDecoratorProvider(Channel channel, DateFormatter dateFormatter, MessageListViewStyle messageListViewStyle, MessageListView.ShowAvatarPredicate showAvatarPredicate, MessageBackgroundFactory messageBackgroundFactory, Function1<String, String> getLanguageDisplayName)
Creates a new DecoratorProvider for the given channel.
- Parameters:
channel- The channel whose messages are being decorated.dateFormatter- Formatter used to render message timestamps.messageListViewStyle- Style configuration for the message list.showAvatarPredicate- Predicate invoked per message to decide avatar visibility.messageBackgroundFactory- Factory for message background drawables.getLanguageDisplayName- Resolves a language code to its display name.
-
-
-
-