KindlySDKConfig

Configuration for the Kindly Chat SDK. Access via ChatKindlySDK.config to modify permissions, theme, and status bar behavior.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Whether the SDK is allowed to access the device camera for attachments. Defaults to true.

Link copied to clipboard

Whether the SDK is allowed to access the photo library for attachments. Defaults to true.

Link copied to clipboard

Controls whether the SDK should automatically match the status bar color to the header color. When true (default), the SDK will set the status bar color to match the header if the host app hasn't set a custom status bar color. When false, the SDK will never modify the status bar color.

Link copied to clipboard

When true, the SDK will always override the status bar color to match the header, even if the host app has set a custom status bar color. When false (default), the SDK respects the host app's custom status bar color. Note: This only works when autoMatchStatusBarColor is also true.

Functions

Link copied to clipboard

Clears any custom theme that has been set and reverts to the default theme.

Link copied to clipboard

Sets a custom theme for the chat UI.

fun setCustomTheme(background: Color? = null, botMessageBackground: Color? = null, botMessageText: Color? = null, buttonBackground: Color? = null, buttonOutline: Color? = null, buttonText: Color? = null, chatLogElements: Color? = null, headerBackground: Color? = null, headerText: Color? = null, inputBackground: Color? = null, inputText: Color? = null, userMessageBackground: Color? = null, userMessageText: Color? = null, maintenanceHeaderBackground: Color? = null)

Sets a custom theme using individual color parameters. Only specified colors (non-null) will override the default theme.