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
chatButtonThe chat button that was pressed.
-
shouldHandleLink(url:Default implementation) Called when a link is about to be opened from within the SDK. Return
trueto let the SDK handle the link normally, orfalseto handle it yourself in the host app.Default Implementation
Declaration
Swift
func shouldHandleLink(url: URL) -> BoolParameters
urlThe URL that is about to be opened.
Return Value
trueif the SDK should handle the link,falseif the host app will handle it.
View on GitHub