OpenGameDataAuthCenter (MSDK Only)
[MSDK Only] Open the webpage that authorizes game data.
Supported Platform
- Unity
- Unreal Engine
Supports 
Android, iOS platform.Supports 
Android, iOS platform.Function Definition
- Unity
- Unreal Engine
void OpenGameDataAuthCenter(string url,
    int screenType = 1,
    bool isFullScreen = false,
    string extraJson = "");
static void OpenGameDataAuthCenter(
    const std::string &url,
    int screen_type = 1,
    bool full_screen_enable = false,
    const std::string &extra_json = GUA_DEFAULT_JSON_STRING);
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description | 
|---|---|---|
| url | string | URL of the webpage that authorizes game data | 
| screenType | int | Screen orientation 1: Portrait and Landscape 2: Portrait 3: Landscape | 
| isFullScreen | bool | Whether to use the full screen mode | 
| extraJson | string | Extended field | 
| Parameter | Type | Description | 
|---|---|---|
| url | std::string | URL of the webpage that authorizes game data | 
| screen_type | int | Screen orientation 1: Portrait and Landscape 2: Portrait 3: Landscape | 
| full_screen_enable | bool | Whether to use the full screen mode | 
| extra_json | std::string | Extended field | 
Callback Processing
The callback processing API is GUAWebViewResultObserver. The callback data structure is GUAWebViewRet.
- Unity
- Unreal Engine
The callback event is WebViewRetEvents.
The callback methodID is GUA_WEBVIEW_CLOSE_URL.
The callback event is OnWebViewOptNotify.
The callback methodID is kMethodIDWebviewCloseURL.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetWebViewService().OpenGameDataAuthCenter("url");
GUA_NAMESPACE::GUAWebViewService::OpenGameDataAuthCenter("Url");