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.
The
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.
The
UnbluPatternMatchingExternalLinkHandler 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
Modifier and TypeMethodDescriptiondecidePolicy(android.net.Uri url) Called when a link is tapped in a conversation.
-
Method Details
-
decidePolicy
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 theUnbluPatternMatchingExternalLinkHandlerimplementation that's part of the SDK for further information.- Parameters:
url- TheUriof the link to open- Returns:
- The
UnbluExternalLinkHandlingPolicythat Unblu will apply.
-