[Under Development] Theme Setting
Our SDK is currently under review. Check back later for updates.
Theme Settings
Using
UIAppearance
UIAppearance customizations are applied to AcquireIOSupport SDK by default. However if there is a conflicting property, then the value in
ThemeOptions
key inAcquireIOConfig
will take precedence.For example: If the app uses
UIAppearance
to change the color of Navigation Bar title and also specifies a color for the same property in the AcquireIOConfig ThemeOptions - NSDictionary, then the value in dictionary will be used.In order to use the UIAppearance value, the app must leave the corresponding entry in the
ThemeOptions
blank.
Introduction
Head over to Theming if you want to customize your SDK integration's typeface, colors or fonts. It can be achieved via simple key-value pairs in option dictionary.
Configuration
Theme customization can be configured via AcquireIOConfig
class:
Set Dictionary options in format of key-value. Color code will be hex value of color, start from #. You can remove and leave blank for default theme effect.
Sample format for setting Config options:
Config Options
Along with Theme settings, SDK supports following optional customization options.
ShowVideoButton
: To show video call button in top bar of visitor's main chat messages screen. Default value is set totrue
.ShowAudioButton
: To show audio call button in top bar of visitor's main chat messages screen. Default value is set totrue
.ShowChatButton
: To hide support system button on bottom right of screen , set tofalse
and it will hide the button but chat functionality will not be affected by this option. Default value set totrue
.isHideNewChat
: if set totrue
, user won't be able to start new chat with agents. if set tofalse
, user can start new chat with agents. Default value set tofalse
.SessionConnectAndStartAuto
: Session will be automatically connected to server and start, no need to invoke any additional method for start session. If you setfalse
, then you must callAcquireIO.support.startSession()
method to start new connection with server. Default value is set totrue
.disableAttachment
: To disable uploading attachment to agents. Default value is set tofalse
.ShowThreadList
: To show list of sessions/threads. Default value is set totrue
.ButtonImageName
: To set an Image for AcquireIOsupport chat system button. Custom Image should be put in main bundle of app. Image size 30x30 px, 60x60 px for @2x.ShowLocalNotificationInApp
: To allow SDK to show in-app notification when app state is Active. Default value istrue
.DisableNetworkMessage
: To disable showing “Please Check Internet Connection” message when there is no internet connectivity. Default value is set tofalse
, which mean SDK will show this message if not specified in config options.
Theme Settings
To skin your app, make sure you add AcquireIOConfig ThemeOptions
key.
Colors are specified in hexadecimal format, e.g. #FFFFFF is White. # is required before code.
Font names should be specified by their family name & style. For example, CaviareDreams-Bold refers to Caviare Dreams family of bold style. See using custom fonts section below for more details.
Global Attribute
These attributes control the looks of in-app support over many screens.
Navigation Bar
System Button Attributes
These attributes applies on default bottom right support button.
System Badge Button Attributes
These attributes applies on default bottom right support button notification badge.
Using Custom Fonts
Step 1. Add the font to your project. Edit your app's plist file and add a key "Fonts provided by application" to it. Under the key, list out file names of all the fonts you want to use in your app and in support. If you've already listed such fonts, skip this step.
Step 2. Copy the font's full name. To do this, select the font in Finder and hit COMMAND
⌘+I
(Get Info).
Step 3. Paste the font name into
Set AcquireIOConfig with @"ThemeOptions" -> @"ACQUIREIO_GLOBAL" ->@"FONT_NAME""
, wherever necessary
Last updated