ChatConfiguration

@objc(ZDKChatConfiguration)
public final class ChatConfiguration : NSObject, Configuration, ReflectedStringConvertible

Configuration class to modify the behaviour of the Chat UI such as forms, and ChatMenuActions

This can be passed into the Messaging.buildUI(engines:configs:) method.

  • Configures the fields in the prechat form

    Declaration

    Swift

    @objc
    public var preChatFormConfiguration: ChatFormConfiguration
  • If TRUE, users are asked if they want to request a chat transcript at the end of the chat. TRUE by default.

    Declaration

    Swift

    @objc
    public var isChatTranscriptPromptEnabled: Bool { get set }
  • If TRUE, the pre-chat form will be shown to the user. TRUE by default.

    Declaration

    Swift

    @objc
    public var isPreChatFormEnabled: Bool { get set }
  • If TRUE, the offline form will be shown to the user. TRUE by default.

    Declaration

    Swift

    @objc
    public var isOfflineFormEnabled: Bool { get set }
  • If TRUE, Offline message will be shown to the user in case no agent is available. TRUE by default.

    Declaration

    Swift

    @objc
    public var isAgentAvailabilityEnabled: Bool { get set }
  • The list of Chat actions that the visitor can carry-out

    Declaration

    Swift

    public var chatMenuActions: [ChatMenuAction]