Package 

Class ChatThemeKt

    • Method Detail

      • 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.