VivochaTheme
@interface VivochaTheme : NSObject
The VivochaTheme class defines the colors and options used by the SDK UI.
Usage Example:
VivochaTheme *theme = [VivochaTheme new];
theme.chatBubbleOutgoingColor = [UIColor lightGrayColor];
theme.chatBubbleOutgoingTextColor = [UIColor blackColor];
[Vivocha setTheme:theme];
-
@property (nonatomic, strong) UIColor *sideButtonBackgroundColor;Defines the Side Tab background color
-
@property (nonatomic, strong) UIColor *sideButtonTextColor;Defines the Side Tab title color (e.g. Live Help)
-
@property (nonatomic, strong) NSString *sideButtonText;Overrides the Side Tab title text (e.g. Live Help -> Help)
-
@property (nonatomic) VivochaPositionSide sideButtonSide;Defines on which side of the screen the Side Tab is positioned.
-
@property (nonatomic) VivochaPosition sideButtonPosition;Defines on which position in the selected side of screen the Side Tab is positioned.
See
VivochaPosition -
@property (nonatomic, strong) UIColor *chatBackgroundColor;Chat View - Defines the background color where the message baloons are displayed
-
@property (nonatomic, strong) UIImage *chatBackgroundImage;Chat View - Defines the background image where the message baloons are displayed
-
@property (nonatomic) CGFloat chatBubbleCornerRadius;Chat View - Defines the border radius for message baloons
-
@property (nonatomic, strong) UIColor *chatBubbleOutgoingColor;Chat View - Defines the background color for the user’s message baloons
-
@property (nonatomic, strong) UIColor *chatBubbleIncomingColor;Chat View - Defines the background color for the agent’s message baloons
-
@property (nonatomic, strong) UIColor *chatBubbleOutgoingTextColor;Chat View - Defines the text color for the user’s message baloons
-
@property (nonatomic, strong) UIColor *chatBubbleIncomingTextColor;Chat View - Defines the text color for the agent’s message baloons
-
@property (nonatomic, strong) UIColor *chatStatusTextColor;Chat View - Defines the text color for status messages. (e.g. “Agent is online”)
-
@property (nonatomic, strong) UIColor *chatSendButtonBackgroundColor;Chat View - Defines the background color for the Send button
-
@property (nonatomic, strong) UIColor *chatSendButtonTextColor;Chat View - Defines the text color for the Send button
-
@property (nonatomic, strong) UIColor *chatInputViewBackgroundColor;Chat View - Defines the background color for the text area
-
@property (nonatomic, strong) UIColor *chatInputViewTextColor;Chat View - Defines the text color for the text area
-
@property (nonatomic, strong) UIColor *chatTopViewBackgroundColor;Chat View - Defines the background color for the navigation bar
-
@property (nonatomic, strong) UIColor *chatTopViewButtonTextColor;Chat View - Defines the text color for the elements in the navigation bar
-
@property (nonatomic, strong) UIColor *chatLoadingBackgroundColor;Chat View - Defines the background color for the loading view
-
@property (nonatomic, strong) UIColor *chatLoadingSpinnerColor;Chat View - Defines the spinner color in the loading view
-
@property (nonatomic, strong) UIColor *chatLoadingTextColor;Chat View - Defines the text color in the loading view
-
@property (nonatomic, strong) NSString *showReceiptsOnChatBubble;Chat View - Defines if the receipt flag should be visible in the outgoing chat bubble. Use kVivochaThemeEnabledValue or kVivochaThemeDisabledValue
-
@property (nonatomic, strong) NSString *showReadReceiptOnChatBubble;Chat View - Defines if the read flag should be visible in the outgoing chat bubble, it only works if
showReceiptsOnChatBubbleis enabled. If it’s disable, a “received” flag will be shown instead. Use kVivochaThemeEnabledValue or kVivochaThemeDisabledValue -
@property (nonatomic, strong) NSString *enableChatViewNavBarTranslucency;Chat View - Defines if the navigation bar can be set to translucent. On iOS prior to 15 it is enabled by default and can be disabled. Since iOS 15 the translucency will be disabled by the default and this setting will be ignored. Use kVivochaThemeEnabledValue or kVivochaThemeDisabledValue. Default is kVivochaThemeEnabledValue