Skip to main content

ConvertShortUrl

info

Version Requirement: Player Network SDK V1.11

Not deployed in MSDK production environment, contact MSDK for any requests.

[Player Network SDK & MSDK] Converts the normal link to a short URL.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParameterTypeDescription
urlstringwebsite address
typeMarkstringurlTypeMark: URL type mark, supports upper case letters (A-Z)
Default: A

Callback Processing

The callback processing API is GUAToolsResultObserver. The callback data structure is GUAToolsResult.

The callback event is ToolsResultEvents The callback methodID is GUA_TOOLS_CONVERT_SHORT_URL.

Code Sample

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