Free Streaming Service Query [MSDK Only]
[MSDK Only] The game calls backend API to verify free data service.
The client request will pass the key parameter to the backend, which represents the game’s IP.If the user has free data, the server will send the corresponding VIP to the client.
Supported platforms
- Unity
- Unreal Engine
Supports
Android, iOS platform.Supports
Android, iOS platform.Function Definition
- Unity
- Unreal Engine
bool GetFreeFlowInfo(string key, string extra = "");
static bool GetFreeFlowInfo(std::string key, std::string extraJson="{}");
Input Parameters
- Unity
- Unreal Engine
| Parameters | Type | Description |
|---|---|---|
| key | string | key: Returns value (corresponding svip) according to key (original IP) and the backend free data configuration. |
| extraJson | string | Extension field, currently not used |
| Parameters | Type | Description |
|---|---|---|
| key | std::string | key: Returns value (corresponding svip) according to key (original IP) and the backend free data configuration. |
| extraJson | std::string | Extension field, currently not used |
Callback Handling
The callback processing interface is GUAToolsFreeFlowResultObserver.The callback data structure is GUAToolsFreeFlowResult.
- Unity
- Unreal Engine
Callback ID is GUA_TOOLS_FREE_FLOW.
Callback ID is kMethodIDToolsFreeFlow.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetToolsService().GetFreeFlowInfo();
GUA_NAMESPACE::GetToolsService::GetFreeFlowInfo();