-
public final class ChatThemeKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static ProvidableCompositionLocal<ChatComponentFactory>LocalComponentFactory
-
Method Summary
Modifier and Type Method Description final ProvidableCompositionLocal<ChatComponentFactory>getLocalComponentFactory()The local composition containing the current ChatComponentFactory. final static UnitChatTheme(Boolean isInDarkMode, Boolean autoTranslationEnabled, Boolean showOriginalTranslationEnabled, Boolean isComposerLinkPreviewEnabled, Boolean useDefaultSystemMediaPicker, SystemAttachmentsPickerConfig systemAttachmentsPickerConfig, StreamColors colors, StreamDimens dimens, StreamTypography typography, StreamShapes shapes, StreamRippleConfiguration rippleConfiguration, UserPresence userPresence, ChatComponentFactory componentFactory, List<AttachmentFactory> attachmentFactories, MessageContentFactory messageContentFactory, Boolean useDocumentGView, List<AttachmentPreviewHandler> attachmentPreviewHandlers, List<AttachmentFactory> quotedAttachmentFactories, ReactionIconFactory reactionIconFactory, ReactionPushEmojiFactory reactionPushEmojiFactory, ReactionOptionsTheme reactionOptionsTheme, MessagePreviewIconFactory messagePreviewIconFactory, PollSwitchItemFactory pollSwitchItemFactory, Boolean allowUIAutomationTest, DateFormatter dateFormatter, TimeProvider timeProvider, DurationFormatter durationFormatter, ChannelNameFormatter channelNameFormatter, MessagePreviewFormatter messagePreviewFormatter, SearchResultNameFormatter searchResultNameFormatter, StreamCoilImageLoaderFactory imageLoaderFactory, ImageHeadersProvider imageHeadersProvider, AsyncImageHeadersProvider asyncImageHeadersProvider, DownloadAttachmentUriGenerator downloadAttachmentUriGenerator, DownloadRequestInterceptor downloadRequestInterceptor, ImageAssetTransformer imageAssetTransformer, MessageAlignmentProvider messageAlignmentProvider, MessageOptionsTheme messageOptionsTheme, ChannelOptionsTheme channelOptionsTheme, MessageOptionsUserReactionAlignment messageOptionsUserReactionAlignment, List<AttachmentsPickerTabFactory> attachmentsPickerTabFactories, Boolean videoThumbnailsEnabled, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer, Boolean readCountEnabled, MessageTheme ownMessageTheme, MessageTheme otherMessageTheme, MessageDateSeparatorTheme messageDateSeparatorTheme, MessageUnreadSeparatorTheme messageUnreadSeparatorTheme, MessageComposerTheme messageComposerTheme, AttachmentPickerTheme attachmentPickerTheme, MessageTextFormatter messageTextFormatter, QuotedMessageTextFormatter quotedMessageTextFormatter, StreamMediaRecorder streamMediaRecorder, StreamKeyboardBehaviour keyboardBehaviour, MediaGalleryConfig mediaGalleryConfig, Function0<Unit> content)Our theme that provides all the important properties for styling to the user. -
-
Method Detail
-
getLocalComponentFactory
final ProvidableCompositionLocal<ChatComponentFactory> getLocalComponentFactory()
The local composition containing the current ChatComponentFactory.
-
ChatTheme
final static Unit ChatTheme(Boolean isInDarkMode, Boolean autoTranslationEnabled, Boolean showOriginalTranslationEnabled, Boolean isComposerLinkPreviewEnabled, Boolean useDefaultSystemMediaPicker, SystemAttachmentsPickerConfig systemAttachmentsPickerConfig, StreamColors colors, StreamDimens dimens, StreamTypography typography, StreamShapes shapes, StreamRippleConfiguration rippleConfiguration, UserPresence userPresence, ChatComponentFactory componentFactory, List<AttachmentFactory> attachmentFactories, MessageContentFactory messageContentFactory, Boolean useDocumentGView, List<AttachmentPreviewHandler> attachmentPreviewHandlers, List<AttachmentFactory> quotedAttachmentFactories, ReactionIconFactory reactionIconFactory, ReactionPushEmojiFactory reactionPushEmojiFactory, ReactionOptionsTheme reactionOptionsTheme, MessagePreviewIconFactory messagePreviewIconFactory, PollSwitchItemFactory pollSwitchItemFactory, Boolean allowUIAutomationTest, DateFormatter dateFormatter, TimeProvider timeProvider, DurationFormatter durationFormatter, ChannelNameFormatter channelNameFormatter, MessagePreviewFormatter messagePreviewFormatter, SearchResultNameFormatter searchResultNameFormatter, StreamCoilImageLoaderFactory imageLoaderFactory, ImageHeadersProvider imageHeadersProvider, AsyncImageHeadersProvider asyncImageHeadersProvider, DownloadAttachmentUriGenerator downloadAttachmentUriGenerator, DownloadRequestInterceptor downloadRequestInterceptor, ImageAssetTransformer imageAssetTransformer, MessageAlignmentProvider messageAlignmentProvider, MessageOptionsTheme messageOptionsTheme, ChannelOptionsTheme channelOptionsTheme, MessageOptionsUserReactionAlignment messageOptionsUserReactionAlignment, List<AttachmentsPickerTabFactory> attachmentsPickerTabFactories, Boolean videoThumbnailsEnabled, StreamCdnImageResizing streamCdnImageResizing, StreamCdnImageResizer streamCdnImageResizer, Boolean readCountEnabled, MessageTheme ownMessageTheme, MessageTheme otherMessageTheme, MessageDateSeparatorTheme messageDateSeparatorTheme, MessageUnreadSeparatorTheme messageUnreadSeparatorTheme, MessageComposerTheme messageComposerTheme, AttachmentPickerTheme attachmentPickerTheme, MessageTextFormatter messageTextFormatter, QuotedMessageTextFormatter quotedMessageTextFormatter, StreamMediaRecorder streamMediaRecorder, StreamKeyboardBehaviour keyboardBehaviour, MediaGalleryConfig mediaGalleryConfig, 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.autoTranslationEnabled- Whether messages auto translation is enabled or not.showOriginalTranslationEnabled- Whether the option to show the original translation is enabled or not.isComposerLinkPreviewEnabled- Whether the composer link preview is enabled or not.useDefaultSystemMediaPicker- Flag that determines which attachment picker should be used.systemAttachmentsPickerConfig- Configuration for the system attachments picker.colors- The set of colors we provide, wrapped in StreamColors.dimens- The set of dimens we provide, wrapped in StreamDimens.typography- The set of typography styles we provide, wrapped in StreamTypography.shapes- The set of shapes we provide, wrapped in StreamShapes.rippleConfiguration- Defines the appearance for ripples.userPresence- The user presence display configuration.componentFactory- Provide to customize the stateless components that are used throughout the UIattachmentFactories- Attachment factories that we provide.useDocumentGView- Whether to use Google Docs Viewer (gview) for document attachments.attachmentPreviewHandlers- Attachment preview handlers we provide.quotedAttachmentFactories- Quoted attachment factories that we provide.reactionIconFactory- Used to create an icon Painter for the given reaction type.reactionPushEmojiFactory- Used to create an emoji code for a given reaction type (used for push notifications).reactionOptionsTheme- ReactionOptionsTheme Theme for the reaction option list in the selected message menu.messagePreviewIconFactory- Used to create a preview icon for the given message type.allowUIAutomationTest- Allow to simulate ui automation with given test tags.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.imageLoaderFactory- A factory that creates new Coil ImageLoader instances.imageHeadersProvider- ImageHeadersProvider Deprecated.asyncImageHeadersProvider- AsyncImageHeadersProvider Used to provide headers for image requests.downloadAttachmentUriGenerator- DownloadAttachmentUriGenerator Used to generate download URIs for attachments.downloadRequestInterceptor- DownloadRequestInterceptor Used to intercept download requests.imageAssetTransformer- ImageAssetTransformer Used to transform image assets.messageAlignmentProvider- MessageAlignmentProvider Used to provide message alignment for the given message.messageOptionsTheme- MessageOptionsTheme Theme for the message option list in the selected message menu.messageOptionsUserReactionAlignment- Alignment of the user reaction inside the message options.attachmentsPickerTabFactories- Attachments picker tab factories that we provide.videoThumbnailsEnabled- Dictates whether video thumbnails will be displayed inside video previews.streamCdnImageResizing- Sets the strategy for resizing images hosted on Stream's CDN.streamCdnImageResizer- Sets the strategy for resizing images hosted on Stream's CDN.ownMessageTheme- Theme of the current user messages.otherMessageTheme- Theme of the other users messages.messageDateSeparatorTheme- Theme of the message date separator.messageUnreadSeparatorTheme- Theme of the message unread separator.messageComposerTheme- Theme of the message composer.attachmentPickerTheme- Theme of the attachment picker.streamMediaRecorder- Used for recording audio messages.keyboardBehaviour- Configuration for different keyboard behaviours.mediaGalleryConfig- Configuration for the media gallery screen.content- The content shown within the theme wrapper.
-
-
-
-