ChatFlow

data class ChatFlow(var navigationBar: NavigationBarStyle, @ColorRes var backgroundColor: Int, @ColorRes var highlightingColor: Int, @ColorRes var iconsTintColor: Int, @ColorRes var disabledColor: Int, @ColorRes var separatorsColor: Int, @ColorRes var emptyStateBackgroundColor: Int, @ColorRes var unreadMsgStickerColor: Int, @ArrayRes var swipeRefreshColors: Int, @ColorRes var microphoneColor: Int, var welcomeScreenStyle: WelcomeScreenStyle, var dateText: ChatDateTextStyle, var typing: TextMessageStyle, var unreadMessagesCount: TextMessageStyle, var chip: TextMessageStyle, var buttonSurveyButton: TextMessageStyle, var buttonSurveyQuestion: TextMessageStyle, var loader: LoaderChatStyle, var incomeMessages: MessagesConfig, var outcomeMessages: MessagesConfig, var errorMessages: MessagesConfig, var settingsNotLoadedToastErrorText: BalloonsChatStyle, var attachmentSettingsNotLoadedToastErrorText: BalloonsChatStyle, var libraryNotInitializedToastErrorText: BalloonsChatStyle, var systemMessages: SystemMessagesConfig, var inputView: InputViewStyle, var quoteView: QuoteViewStyle, var quickReplies: QuickRepliesStyle, var surveyStyle: SurveyStyle? = null, var permissionDescriptionPopupStyle: PermissionDescriptionPopupStyle? = null, var retryChatInitButton: TextButtonChatStyle, var errorScreenMessage: TextMessageStyle, var errorScreenImage: ImagesChatStyle, var scrollDownButton: ImagesChatStyle, var bigPushes: PushesChatStyle, var smallPushes: PushesChatStyle, var quotePlayPauseButton: ImagesChatStyle, var quotePlayPausePlayingStateButton: ImagesChatStyle, var fonts: ChatTypography) : Serializable

Стиль верхнего уровня, определяющий вид окна чата

Parameters

navigationBar

Стиль для тулбара. Содержит стили для кнопки "назад", "копировать", "меню" и т.д.

backgroundColor

Цвет фона для тулбара (ресурс)

highlightingColor

Цвет элемента в выбранном (подсвеченном) состоянии (ресурс)

iconsTintColor

Цвет иконок (ресурс)

disabledColor

Цвет элементов в неактивном состоянии (ресурс)

separatorsColor

Цвет разделителей (ресурс)

emptyStateBackgroundColor

Цвет фона для чата, если нет сообщений (ресурс)

unreadMsgStickerColor

Цвет стикера (подложки) под счетчиком непрочитанных сообщений

unreadMessagesCount

Стиль для текста счетчика непрочитанных сообщений

swipeRefreshColors

Цвета лоадера "swipe to refresh" (массив ресурсов)

microphoneColor

Цвет иконки микрофона (ресурс)

welcomeScreenStyle

Стиль для экрана приветствия

dateText

Стиль для дат

typing

Стиль для сообщений о наборе текста (typing)

chip

Стиль для текста в круге в быстрых ответах

buttonSurveyButton

Стиль для кнопки опроса

buttonSurveyQuestion

Стиль текста для вопроса в опросах

loader

Стиль лоадера

incomeMessages

Стиль для входящих сообщений

outcomeMessages

Стиль для исходящих сообщений

errorMessages

Стиль для сообщений с ошибками

settingsNotLoadedToastErrorText

Стиль для всплывающего сообщения об ошибке, если общие настройки не загрузились

attachmentSettingsNotLoadedToastErrorText

Стиль для всплывающего сообщения об ошибке, если настройки вложений не загрузились

libraryNotInitializedToastErrorText

Стиль для всплывающего сообщения об ошибке, если библиотека не инициализирована

systemMessages

Стиль для системных сообщений

inputView

Стиль для полей ввода

quoteView

Стиль для цитат

quickReplies

Стиль для быстрых ответов

surveyStyle

Стиль для опросов

permissionDescriptionPopupStyle

Стиль для окна с описанием запрашиваемых разрешений

retryChatInitButton

Стиль для кнопки "повторить"

errorScreenMessage

Стиль для текстового сообщения об ошибке, возникшей в процессе инициализации чата. Отображается по центру экрана.

errorScreenImage

Стиль для изображения с ошибкой, возникшей в процессе инициализации чата. Отображается по центру экрана.

scrollDownButton

Стиль для кнопки с прокруткой к концу чата

bigPushes

Стиль для пушей большого размера

smallPushes

Стиль для небольших пушей

quotePlayPauseButton

Стиль для кнопки "play" в цитате (состояние по умолчанию)

quotePlayPausePlayingStateButton

Стиль для кнопки "play" в цитате (файл проигрывается)

fonts

Стиль шрифтов в окне чата

Constructors

Link copied to clipboard
constructor(navigationBar: NavigationBarStyle, @ColorRes backgroundColor: Int, @ColorRes highlightingColor: Int, @ColorRes iconsTintColor: Int, @ColorRes disabledColor: Int, @ColorRes separatorsColor: Int, @ColorRes emptyStateBackgroundColor: Int, @ColorRes unreadMsgStickerColor: Int, @ArrayRes swipeRefreshColors: Int, @ColorRes microphoneColor: Int, welcomeScreenStyle: WelcomeScreenStyle, dateText: ChatDateTextStyle, typing: TextMessageStyle, unreadMessagesCount: TextMessageStyle, chip: TextMessageStyle, buttonSurveyButton: TextMessageStyle, buttonSurveyQuestion: TextMessageStyle, loader: LoaderChatStyle, incomeMessages: MessagesConfig, outcomeMessages: MessagesConfig, errorMessages: MessagesConfig, settingsNotLoadedToastErrorText: BalloonsChatStyle, attachmentSettingsNotLoadedToastErrorText: BalloonsChatStyle, libraryNotInitializedToastErrorText: BalloonsChatStyle, systemMessages: SystemMessagesConfig, inputView: InputViewStyle, quoteView: QuoteViewStyle, quickReplies: QuickRepliesStyle, surveyStyle: SurveyStyle? = null, permissionDescriptionPopupStyle: PermissionDescriptionPopupStyle? = null, retryChatInitButton: TextButtonChatStyle, errorScreenMessage: TextMessageStyle, errorScreenImage: ImagesChatStyle, scrollDownButton: ImagesChatStyle, bigPushes: PushesChatStyle, smallPushes: PushesChatStyle, quotePlayPauseButton: ImagesChatStyle, quotePlayPausePlayingStateButton: ImagesChatStyle, fonts: ChatTypography)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard