Interface UrlShortener
A url shortener is called on a URL produced by the SDK before returning it to the caller. It should provide a nicer URL for a user to click on which then redirects to the original URL when visited.
public interface UrlShortener
All Known Implementing Classes: ← : DefaultUrlShortener
Methods
shorten
@NonNull
Future<String> shorten(@NonNull String url)
Shorten a URL.
Parameters
Name | Description |
---|---|
url | The original URL. |
Returns
A future resolving to a shorter URL.