Skip to main content
Version: SDK 5.0.x

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
Inheritance

All Known Implementing Classes: ← : DefaultUrlShortener

Methods

shorten

@NonNull
Future<String> shorten(@NonNull String url)

Shorten a URL.

Parameters

NameDescription
urlThe original URL.

Returns

A future resolving to a shorter URL.