Skip to content

Latest commit

 

History

History
1432 lines (992 loc) · 43.3 KB

File metadata and controls

1432 lines (992 loc) · 43.3 KB

Dimelo Plist configuration

All keys are optional.

Download example plist.

Screenshots default interface

Some screenshots will be used in that documentation to show the impact of the different configuration attributes.

The default interface without any customization is the following on iOS.

You can refer to this interface to understand how an option affect the interface.

Required Configuration

domainName

Allows the SDK to send its requests to the right endpoint (e.g. if your Dimelo Digital url is DIMELO_DOMAIN_NAME.engagement.dimelo.com, then your domainName will be DIMELO_DOMAIN_NAME)

⚠️ Will be ignored if hostName is set (see hostName)

apiKey

Public API key that identifies all requests to Dimelo (used only for the secure server-side authentication, see section "Setup with a server-side secret")

API Key is always represented in hex format, e.g. ab12d1a2a9349797b807589e7e1635cb760d69de3a8241070b1682a1bdbd6d70.

apiSecret

Secret API key, only embed in the app for client-side authentication, see section "Setup with a built-in secret"). This is not recommended to embed in .plist but rather to set it directly via a setter in the code of the application for better obfuscation.

API Key is always represented in hex format, e.g. ab12d1a2a9349797b807589e7e1635cb760d69de3a8241070b1682a1bdbd6d70.

Optional configuration

hostName

Allows the SDK to send its requests to the right endpoint (e.g. if your Dimelo Digital url is DIMELO_DOMAIN_NAME.engagement.dimelo.com, then your hostName will be DIMELO_DOMAIN_NAME.messaging.dimelo.com)

⚠️ Will take precedence on domainName (see domainName)

language

Language pList field allows you to override the system current language and define what locale should be sent to the Dimelo Server (and thus, what language will be used for messages returned by the server).

language can be any value supported by the Accept-Language HTTP Header.

defaultLocale

Used to set the application language.

Programmatically: set Dimelo.defaultLocale property

Plist customization name: None

Note: This is an example on how to initialize Customization.defaultLocale:

Using Objective C:

NSLocale *defaultLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US"];
dimelo.defaultLocale = defaultLocale;

Using Swift:

let defaultLocale = Locale(localeIdentifier: "en_US")
dimelo.defaultLocale = defaultLocale

Notification

disableNotification

Used to disable notification permission prompt (default is enabled). Disabling this attribute will result in not receiving any notification

interactiveNotification

Used to disable reception of the interactive push notification with direct reply (default is enabled)

date Format

dateFormatter

Date format for the date label (should be a NSDateFormatter).

Programmatically: set Dimelo.dateFormatter property

Plist customization name: None

Note: This is an example on how to initialize Customization.dateFormatter:

Using Objective C:

NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"yyyy-MM-dd HH:mm"];
dimelo.dateFormatter = dateFormatter;

Using Swift:

let dateFormatterGet = NSDateFormatter()
dateFormatterGet.dateFormat = "yyyy-MM-dd HH:mm"
dimelo.dateFormatter = dateFormatter

Color

webViewActivityIndicatorColor

Color applied to the activity indicator that is displayed in the webView when the page is loading.

Color must be in hex format, e.g. 007AFF or #007AFF.

webViewCloseImageColor

Color applied to the webView "close" image.

Color must be in hex format, e.g. 007AFF or #007AFF.

createNewThreadImageColor

Color for the create new thread image.

Color must be in hex format, e.g. 007AFF or #007AFF.

scrollToBottomImageColor

Color applied to the button to scroll to the bottom of the conversation image.

Color must be in hex format, e.g. 007AFF or #007AFF.

videoCallRequestButtonColor

Color applied to the video call request button.

Color must be in hex format, e.g. 007AFF or #007AFF.

videoCallRequestButtonHighlightedColor

Color applied to the video call request button when highlighted.

Color must be in hex format, e.g. 007AFF or #007AFF.

webViewTitleTextColor

Color applied to the webView title.

Color must be in hex format, e.g. 007AFF or #007AFF.

badgeTextColor

Text color for the badge label.

Color must be in hex format, e.g. 007AFF or #007AFF.

badgeBackgroundColor

Background color for the badge label.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListSeparatorColor

Color for the threads list separator.

Color must be in hex format, e.g. 007AFF or #007AFF.

lockedThreadImageTintColor

Tint color for the locked thread image in the threads list view.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListRefreshControlTintColor

Tint color for the threads list refresh control.

Color must be in hex format, e.g. 007AFF or #007AFF.

createNewThreadBackgroundColor

Background color for the create new thread button.

Color must be in hex format, e.g. 007AFF or #007AFF.

scrollToBottomBackgroundColor

Background color applied to the button to scroll to the bottom of the conversation.

Color must be in hex format, e.g. 007AFF or #007AFF.

createNewThreadTappedBackgroundColor

Background color for the tapped create new thread button.

Color must be in hex format, e.g. 007AFF or #007AFF.

scrollToBottomTappedBackgroundColor

Background color applied to the button to scroll to the bottom of the conversation when it's tapped.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListBackgroundColorSelection

Background color for the threads list item selection.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListCompanyMessageBackgroundColor

Background color of the company message displayed in the threads list.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListCompanyMessageTitleTextColor

Text color applied to the title of the company message that is displayed in the threads list.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListCompanyMessageSubtitleTextColor

Text color applied to the subtitle of the company message that is displayed in the threads list.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListAgentNameTextColor

Text color for the threads list agent name.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListMessageTextColor

Text color for the threads list message.

Color must be in hex format, e.g. 007AFF or #007AFF.

threadsListDateTextColor

Text color for the threads list date.

Color must be in hex format, e.g. 007AFF or #007AFF.

attachmentActionSheetItemsTextColor

Text color for each attachment action sheet item button.

Color must be in hex format, e.g. 007AFF or #007AFF.

attachmentActionSheetCancelButtonTextColor

Text color for the attachment action sheet cancel button.

Color must be in hex format, e.g. 007AFF or #007AFF.

attachmentActionSheetItemsIconColor

Color for each attachment action sheet item icon.

Color must be in hex format, e.g. 007AFF or #007AFF.

fragmentHeaderColor

Color for the fragment header.

Color must be in hex format, e.g. 007AFF or #007AFF.

closedThreadMessageTextColor

Color applied to the message that is displayed when the thread is closed.

Color must be in hex format, e.g. 007AFF or #007AFF.

videoCallRequestedStatusMessageTextColor

Color applied to the status message text when a video call is requested.

Color must be in hex format, e.g. 007AFF or #007AFF.

webViewHeaderBackgroundColor

Color applied to the webView header background.

Color must be in hex format, e.g. 007AFF or #007AFF.

webViewBodyBackgroundColor

Color applied to the webView body background and the safe area zone background (on portrait and landscape mode).

Color must be in hex format, e.g. 007AFF or #007AFF.

enableLightStatusBarStyle

Text color for status bar text (white or black).

Must be a boolean, default is the black color.

enableLightStatusBarStyle=true:

enableLightStatusBarStyle=false:

navigationBarTitleColor

Text color for the chat title.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentNameColor

Text color for agent's name.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentTimeColor

Time color for agent's name.

Color must be in hex format, e.g. 007AFF or #007AFF.

videoMessageBorderColor

Border color for video message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentTemplateBorderColor

Border color for agent structured message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentTemplateWithImageBodyBackgroundColor

Background color for template agent structured message.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageBodyBackgroundColor

Background color for body agent structured message view.

Color must be in hex format, e.g. 007AFF or #007AFF.

videoMessageBackgroundColor

Background color for video message view.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentMessageBackgroundColor

Background color for agent message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentMessageTextColor

Foreground color for agent's message text.

Color must be in hex format, e.g. 007AFF or #007AFF.

welcomeMessageTextColor

Text color for the welcome message.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageUrlMarginTop

Margin top for structured message url label.

agentStructuredMessageSubtitleMarginTop

Margin top for structured message subtitle label.

videoMessageTextColor

Foreground color for video message text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageTitleColor

Foreground color for agent's structured message title text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageSubtitleColor

Foreground color for agent's structured message subtitle text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageUrlColor

Foreground color for agent's structured message url text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageItemColor

Foreground color for agent's structured message item text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageItemTappedColor

Foreground color for agent's structured message tapped item text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageItemBackgroundColor

Background color for agent's structured message item text.

Color must be in hex format, e.g. 007AFF or #007AFF.

agentStructuredMessageItemTappedBackgroundColor

Background color for agent's structured message tapped item.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesBorderWidth

Border width for quick replies.

quickRepliesHorizontalSpacing

Horizontal spacing for quick replies.

quickRepliesVerticalSpacing

Vertical spacing for quick replies.

quickRepliesBorderColor

Border color for quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesTappedBorderColor

Border color for tapped quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesTextColor

Text color for quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesTappedTextColor

Text color for tapped quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesBackgroundColor

Background color for quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

quickRepliesTappedBackgroundColor

Background color for tapped quick replies.

Color must be in hex format, e.g. 007AFF or #007AFF.

dateTextColor

Text color for the date label.

Color must be in hex format, e.g. 007AFF or #007AFF.

hourTimeTextColor

Text color for the hour label.

Color must be in hex format, e.g. 007AFF or #007AFF.

disabledSendButtonColor

Tint color of the send button image on disabled state

Color must be in hex format, e.g. 007AFF or #007AFF.

errorIconColor

Color of the error icon which is displayed when the message could not be sent and no other retry will be operated.

Color must be in hex format, e.g. 007AFF or #007AFF.

inputBarBackgroundColor

Background color of the input bar.

Color must be in hex format, e.g. 007AFF or #007AFF.

inputBarTintColor

Bar tint color of the input bar.

Color must be in hex format, e.g. 007AFF or #007AFF.

loadMoreMessagesButtonTextColor

Text color for the button "load more messages".

Color must be in hex format, e.g. 007AFF or #007AFF.

The default display is the following:

navigationBarColor

Background color for navigation bar (sets backgroundColor property).

Color must be in hex format, e.g. 007AFF or #007AFF.

navigationBarTintColor

Bar tint color for navigation bar before iOS 13 otherwise it's the background color for navigation bar (sets navigationBarTintColor property).

Color must be in hex format, e.g. 007AFF or #007AFF.

systemMessageBackgroundColor

Background color for system message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

Similar to systemMessageBackgroundColor, but for system messages.

systemMessageTextColor

Foreground color for system notification message text.

Color must be in hex format, e.g. 007AFF or #007AFF.

Similar to systemMessageTextColor, but for system messages.

tintColor

Tint color for aux controls: Close button, Send button, Share button, cursor etc.

Color must be in hex format, e.g. 007AFF or #007AFF.

cursorTintColor

Tint color for cursor.

Color must be in hex format, e.g. 007AFF or #007AFF.

sendTintColor

Tint color for Send Button image.

Color must be in hex format, e.g. 007AFF or #007AFF.

navigationBarItemTintColor

Tint color for Navigation Item Button embedded in a fragment or a view controller.

Color must be in hex format, e.g. 007AFF or #007AFF.

userMessageBackgroundColor

Background color for user message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

Similar to systemMessageBackgroundColor, but for system messages.

userDeletedMessageBackgroundColor

Background color for deleted user message bubbles.

Color must be in hex format, e.g. 007AFF or #007AFF.

userSelectedMessageBackgroundColor

Background color for selected user message cell for iOS12 and lower.

Color must be in hex format, e.g. 007AFF or #007AFF.

userMessageTextColor

Foreground color for user's message text.

Color must be in hex format, e.g. 007AFF or #007AFF.

Similar to systemMessageTextColor, but for system messages.

userDeletedMessageTextColor

Foreground color for user's deleted message text.

Color must be in hex format, e.g. 007AFF or #007AFF.

Font

webViewTitleFont

Font applied to the webView title. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

userDeletedMessageFont

Font applied to the user deleted message text. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

badgeFont

Font for the badge label. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

backToAllChatsFont

Font for the backToAllChats label (in the header fragment). Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

threadsListCompanyMessageTitleFont

Font used for the company message title that is displayed in the threads list. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

threadsListCompanyMessageSubtitleFont

Font used for the company message subtitle that is displayed in the threads list. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

threadsListAgentNameFont

Font for the threads list agent name. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

threadsListMessageFont

Font for the threads list message. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

threadsListDateFont

Font for the threads list date. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

closedThreadMessageTextFont

Font applied to the message that is displayed when the thread is closed. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

videoCallRequestedStatusMessageTextFont

Font applied to the status message when a video call is requested. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

navigationBarTitleFont

Font for navigationBar's title. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

navigationBarItemTitleFont

Font for navigationBarItem's title. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

agentNameFont

Font for agent's name. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

showAgentAvatarImage

Show or hide the agent avatar image.

Must be a boolean, default is true.

showAgentAvatarImage=true:

showAgentAvatarImage=false:

agentTimeFont

Font for agent's time. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

agentStructuredMessageTitleFont

Font for agent's structured message title. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

videoMessageTextFont

Font for video message text. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

agentStructuredMessageSubTitleFont

Font for agent's structured message subtitle. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

agentStructuredMessageUrlFont

Font for agent's structured message url. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

agentStructuredMessageItemFont

Font for agent's structured message item. Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

dateFont

Font for the date label.

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

hourTimeFont

Font for the hour label.

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

defaultFont

Default font used for all other items listed in that category,

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

messageFieldFont

Font for message input field.

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

messageFont

Font for user and agent messages.

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

systemMessageFont

Font for system messages.

Must contain a dictionary with name and size keys. These values will be used as arguments to +[UIFont fontWithName:size:]. E.g. name=HelveticaNeue-Regular and size=15.

Similar to messageFont, but for system messages.

Insets

agentAttachmentTitleInsets

Insets for file name and size label (inside the agent message bubble).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

agentAttachmentBubbleInsets

Insets for agent message bubbles (containing attachment).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

Similar to userAttachmentBubbleInsets, but for agent messages.

agentMessageBubbleInsets

Insets for agent message bubbles (containing text).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

Similar to userMessageBubbleInsets, but for agent messages.

agentStructuredMessageBodyInsets

Insets for agent structured message bubbles.

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=40, left=40, bottom=40 and right=40.

agentStructuredMessageItemInsets

Insets for agent structured message item.

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=40, left=40, bottom=40 and right=40.

quickRepliesInsets

Insets for quick replies.

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=40, left=40, bottom=40 and right=40.

quickRepliesPaddingInsets

Insets for quick replies item.

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=40, left=40, bottom=40 and right=40.

agentNameInsets

Insets for agent name text.

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

systemMessageBubbleInsets

Insets for system message bubbles (containing text).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

Similar to userMessageBubbleInsets, but for system messages.

userAttachmentBubbleInsets

Insets for user message bubbles (containing attachment).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

In the screenshot, top=60, right=40, bottom=20, left=0.

userMessageBubbleInsets

Insets for user message bubbles (containing text).

Must contain a dictionary with top, left, bottom and right. The values will be used as arguments to UIEdgeInsetsMake(top, left, bottom, right). E.g. top=10, left=10, bottom=10 and right=10.

In the screenshot, top=60, right=40, bottom=20, left=0.

Images

attachmentActionSheetCameraIcon

UIImage for the attachment action sheet camera icon.

attachmentActionSheetGalleryIcon

UIImage for the attachment action sheet gallery icon.

attachmentActionSheetDocumentIcon

UIImage for the attachment action sheet document icon.

attachmentActionSheetLocationIcon

UIImage for the attachment action sheet location icon.

webViewCloseImage

UIImage used to represent the webView "close" button that is displayed in the header.

createNewThreadImage

UIImage for the create new thread button.

scrollToBottomImage

UIImage for the button to scroll to the bottom of the conversation.

backToAllChatsItemImage

UIImage for the create new thread button.

videoCallRequestButtonImage

UIImage used to represent the button to request a video call.

lockedThreadImage

UIImage to indicate that the thread is locked in the threads list view.

agentAttachmentBubbleImage

Resizable (9-part) image to mask agent's attachment (alpha channel is used as a mask). By default, the same as agentMessageBubbleImage.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myBubbleImage

Similar to userAttachmentBubbleImage, but for agent messages.

agentMessageBubbleImage

Resizable (9-part) image to decorate agent text bubble.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myBubbleImage

Similar to userMessageBubbleImage, but for agent messages.

attachmentIcon

Icon to be displayed on "attach" button in the input bar.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myAttachmentIcon

systemMessageBubbleImage

Resizable (9-part) image to decorate system text bubble.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myBubbleImage

Similar to userMessageBubbleImage, but for system messages.

userAttachmentBubbleImage

Resizable (9-part) image to mask user's attachment (alpha channel is used as a mask). By default, the same as userMessageBubbleImage.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myBubbleImage

In the screenshot, top=18, left=19, bottom=18, right=36.

userMessageBubbleImage

Resizable (9-part) image to decorate user text bubble.

Must contain a dictionary with top, left, bottom, right and imgName. The values will be used as arguments to [[UIImage imgName] resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) resizingMode:UIImageResizingModeStretch]. So, the top, left, bottom and right parameters will be used to define the stretchable area of your image. E.g. top=10, left=10, bottom=10, right=10, and imgName=myBubbleImage

In the screenshot, top=18, left=19, bottom=18, right=36.

Boolean

enableThreads

Flag to set to enable/disable threads.

Must be a boolean, default is NO.

displayAttachmentActionSheetIcons

  • Flag to set to display/hide attachment action sheet icons

Must be a boolean, default is YES.

embeddedAsFragment

Flag to set to embed or not the Dimelo view as a fragment.

Must be a boolean, default is NO.

showScrollToBottomButton

Flag to enable/disable the button to scroll to the bottom of the conversation.

Must be a boolean, default is NO.