on Url Link Clicked
Notifies the listener that the user tapped a URL rendered in the chat, allowing the host to handle the link and override the SDK's default action.
Return true to indicate the host has handled the link and the SDK should take no further action. Return false (the default) to let the SDK launch the device's default handler for the URL via an android.content.Intent.ACTION_VIEW intent.
Usage:
override fun onUrlLinkClicked(url: String): Boolean {
return if (isInternalDeepLink(url)) {
navigateInternally(url)
true
} else {
false
}
}Content copied to clipboard
Return
true if the host handled the link, false to fall back to the SDK default.
Parameters
url
The URL string that was tapped.