Open the game data authorization webpage (OpenGameDataAuthCenter) (MSDK only)
[MSD only] Open the game data authorization webpage.
Supported platforms
- 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
| Parameters | Type | Description |
|---|---|---|
| url | string | Game data authorization page URL link |
| screenType | int | Screen orientation 1: Landscape and portrait 2: Portrait 3: Landscape |
| isFullScreen | bool | Fullscreen or not |
| extraJson | string | Extended Field |
| Parameters | Type | Description |
|---|---|---|
| url | std::string | Game data authorization page URL link |
| screen_type | int | Screen orientation 1: Landscape and portrait 2: Portrait 3: Landscape |
| full_screen_enable | bool | Fullscreen or not |
| extra_json | std::string | Extended Field |
Callback Handling
The callback handling interface is GUAWebViewResultObserver.The callback data structure is GUAWebViewRet.
- Unity
- Unreal Engine
The callback event is WebViewRetEvents. Callback ID is GUA_WEBVIEW_CLOSE_URL.
The callback event is OnWebViewOptNotify. The callback ID is kMethodIDWebviewCloseURL.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetWebViewService().OpenGameDataAuthCenter("url");
GUA_NAMESPACE::GUAWebViewService::OpenGameDataAuthCenter("Url");