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
- 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 does not support this feature yet.
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| url | string | URL |
| typeMark | string | urlTypeMark: URL tag type, supports uppercase (A-Z) letters Default: A |
Unreal Engine does not support this feature yet.
Callback Handling
The callback handling interface is GUAToolsResultObserver.The callback data structure is GUAToolsResult.
- Unity
- Unreal Engine
The callback event is ToolsResultEvents. The callback ID is GUA_TOOLS_CONVERT_SHORT_URL.
Unreal Engine does not support this feature yet.
Code Example
- Unity
- Unreal Engine
bool result = UnionAdapterAPI.GetToolsService().ConvertShortUrl("http://www.facebook.com");
Unreal Engine does not support this feature yet.