Skip to main content

Convert Link to Short URL (ConvertShortUrl)

info

Version Requirement: Player Network SDK V1.11

MSDK production environment is not yet deployed. If needed, please contact MSDK.

[Player Network SDK & MSDK] Convert link to short URL.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

bool ConvertShortUrl(string url, string type_mark = "A")

Input Parameters

ParametersTypeDescription
urlstringURL
typeMarkstringurlTypeMark: URL tag type, supports uppercase (A-Z) letters
Default: A

Callback Handling

The callback handling interface is GUAToolsResultObserver.The callback data structure is GUAToolsResult.

The callback event is ToolsResultEvents. The callback ID is GUA_TOOLS_CONVERT_SHORT_URL.

Code Example

bool result = UnionAdapterAPI.GetToolsService().ConvertShortUrl("http://www.facebook.com");