-
public final class ChatThemeKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static ProvidableCompositionLocal<ChatUiConfig>LocalChatUiConfigprivate final static ProvidableCompositionLocal<ChatComponentFactory>LocalComponentFactory
-
Method Summary
Modifier and Type Method Description final ProvidableCompositionLocal<ChatUiConfig>getLocalChatUiConfig()The local composition containing the current ChatUiConfig. final ProvidableCompositionLocal<ChatComponentFactory>getLocalComponentFactory()The local composition containing the current ChatComponentFactory. final static UnitChatTheme(Boolean isInDarkMode, ChatUiConfig config, StreamDesign.Colors colors, StreamDesign.Typography typography, ChatComponentFactory componentFactory, List<AttachmentPreviewHandler> attachmentPreviewHandlers, ReactionResolver reactionResolver, MessagePreviewIconFactory messagePreviewIconFactory, DateFormatter dateFormatter, TimeProvider timeProvider, DurationFormatter durationFormatter, ChannelNameFormatter channelNameFormatter, MessagePreviewFormatter messagePreviewFormatter, SearchResultNameFormatter searchResultNameFormatter, StreamCoilImageLoaderFactory imageLoaderFactory, MessageAlignmentProvider messageAlignmentProvider, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer, MessageTextFormatter messageTextFormatter, StreamMediaRecorder streamMediaRecorder, Function0<Unit> content)Our theme that provides all the important properties for styling to the user. -
-
Method Detail
-
getLocalChatUiConfig
final ProvidableCompositionLocal<ChatUiConfig> getLocalChatUiConfig()
The local composition containing the current ChatUiConfig.
-
getLocalComponentFactory
final ProvidableCompositionLocal<ChatComponentFactory> getLocalComponentFactory()
The local composition containing the current ChatComponentFactory.
-
ChatTheme
final static Unit ChatTheme(Boolean isInDarkMode, ChatUiConfig config, StreamDesign.Colors colors, StreamDesign.Typography typography, ChatComponentFactory componentFactory, List<AttachmentPreviewHandler> attachmentPreviewHandlers, ReactionResolver reactionResolver, MessagePreviewIconFactory messagePreviewIconFactory, DateFormatter dateFormatter, TimeProvider timeProvider, DurationFormatter durationFormatter, ChannelNameFormatter channelNameFormatter, MessagePreviewFormatter messagePreviewFormatter, SearchResultNameFormatter searchResultNameFormatter, StreamCoilImageLoaderFactory imageLoaderFactory, MessageAlignmentProvider messageAlignmentProvider, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer, MessageTextFormatter messageTextFormatter, StreamMediaRecorder streamMediaRecorder, Function0<Unit> content)
Our theme that provides all the important properties for styling to the user.
- Parameters:
isInDarkMode- If we're currently in the dark mode or not.config- Central behavioral configuration for the Chat SDK.colors- The set of colors we provide, wrapped in StreamDesign.Colors.typography- The set of typography styles we provide, wrapped in StreamDesign.Typography.componentFactory- Provide to customize the stateless components that are used throughout the UI.attachmentPreviewHandlers- Attachment preview handlers we provide.reactionResolver- Provides available reactions and resolves reaction types to emoji codes.messagePreviewIconFactory- Used to create a preview icon for the given message type.dateFormatter- DateFormatter Used throughout the app for date and time information.timeProvider- TimeProvider Used throughout the app for time information.durationFormatter- DurationFormatter Used to format durations in the app.channelNameFormatter- ChannelNameFormatter Used throughout the app for channel names.messagePreviewFormatter- MessagePreviewFormatter Used to generate a string preview for the given message.searchResultNameFormatter- SearchResultNameFormatter Used to format names in search results.imageLoaderFactory- A factory that creates new Coil ImageLoader instances.messageAlignmentProvider- MessageAlignmentProvider Used to provide message alignment for the given message.streamCdnImageResizing- Sets the strategy for resizing images hosted on Stream's CDN.streamCdnImageResizer- Sets the strategy for resizing images hosted on Stream's CDN.messageTextFormatter- MessageTextFormatter Used to format message text for display.streamMediaRecorder- Used for recording audio messages.content- The content shown within the theme wrapper.
-
-
-
-