Configuration Parameters

Update UI Configuration

It is possible to customize all colors and images within the SDK.

Example:

Copy
Copied
var uiConfig = SinchSDKConfig.UIConfig.defaultValue
uiConfig.navigationBarColor = .white
uiConfig.navigationBarTitleColor = UIColor(red: 0.0, green: 43.0/256.0, blue: 227.0/256.0, alpha: 1.0)
uiConfig.backIcon =  UIImage(named: "backIcon")
uiConfig.closeIcon =  UIImage(named: "closeIcon")


let viewControler = try SinchChatSDK.shared.chat.getChatViewController(uiConfig: uiConfig,
                                                                       localizationConfig: .defaultValue)

Disable some features

It is possible to disable some features in the chat. A button that is in the Input view will disappear if all features connected with it are disabled. For example, if you disable sending voice messages, the button responsible for it will disappear.

List of features that is possible to disable:

Copy
Copied
public enum SinchEnabledFeatures {
case sendImageMessageFromGallery
case sendVideoMessageFromGallery
case sendVoiceMessage
case sendLocationSharingMessage
case sendImageFromCamera
case sendVideoMessageFromCamera
case sendDocuments

}

Example:

Copy
Copied
SinchChatSDK.shared.disabledFeatures = [.sendVoiceMessage,
                                        .sendVideoMessageFromCamera,
                                        .sendVideoMessageFromGallery,
                                        ]
We'd love to hear from you!
Rate this content:
Still have a question?
 
Ask the community.