KindlyChatClientDelegate

public protocol KindlyChatClientDelegate : NSObject

A protocol that defines the delegate methods for the KindlyChatClient.

  • Called when the chat button is pressed.

    Declaration

    Swift

    func didPressButton(chatButton: ExternalChatButton, chatLog: [ExternalChatMessage])

    Parameters

    chatButton

    The chat button that was pressed.

  • shouldHandleLink(url:) Default implementation

    Called when a link is about to be opened from within the SDK. Return true to let the SDK handle the link normally, or false to handle it yourself in the host app.

    Default Implementation

    Declaration

    Swift

    func shouldHandleLink(url: URL) -> Bool

    Parameters

    url

    The URL that is about to be opened.

    Return Value

    true if the SDK should handle the link, false if the host app will handle it.