Package com.unblu.sdk.core.links
Interface UnbluExternalLinkHandler
-
- All Known Implementing Classes:
UnbluPatternMatchingExternalLinkHandler
public interface UnbluExternalLinkHandler
Interface for handling external links tapped within Unblu.
The handling policy can vary from opening the link within the application, launching an external browser, or blocking the link altogether. This allows for flexible control when interacting with external content during a conversation.
TheUnbluPatternMatchingExternalLinkHandler
provided by the SDK serves as a default implementation. It shows how patterns in URLs can be matched against predefined rules to determine the appropriate handling policy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UnbluExternalLinkHandlingPolicy
decidePolicy(android.net.Uri url)
Called when a link is tapped in a conversation.
-
-
-
Method Detail
-
decidePolicy
UnbluExternalLinkHandlingPolicy decidePolicy(android.net.Uri url)
Called when a link is tapped in a conversation. It enables you to inspect the link and return an action for Unblu to take. Review theUnbluPatternMatchingExternalLinkHandler
implementation that's part of the SDK for further information.- Parameters:
url
- TheUri
of the link to open- Returns:
- The
UnbluExternalLinkHandlingPolicy
that Unblu will apply.
-
-