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
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Unreal Engine currently does not support this interface.
Function Definition
- Unity
- Unreal Engine
bool ConvertShortUrl(string url, string type_mark = "A")
Unreal Engine currently does not support this feature.
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
url | string | website address |
typeMark | string | urlTypeMark: URL type mark, supports upper case letters (A-Z) Default: A |
Unreal Engine currently does not support this feature.
Callback Processing
The callback processing API is GUAToolsResultObserver. The callback data structure is GUAToolsResult.
- Unity
- Unreal Engine
The callback event is ToolsResultEvents
The callback methodID is GUA_TOOLS_CONVERT_SHORT_URL
.
Unreal Engine currently does not support this feature.
Code Sample
- Unity
- Unreal Engine
bool result = UnionAdapterAPI.GetToolsService().ConvertShortUrl("http://www.facebook.com");
Unreal Engine currently does not support this feature.