Skip to main content

Open the game data authorization webpage (OpenGameDataAuthCenter) (MSDK only)

[MSD only] Open the game data authorization webpage.

Supported platforms

Supports Android, iOS platform.

Function Definition

void OpenGameDataAuthCenter(string url,
int screenType = 1,
bool isFullScreen = false,
string extraJson = "");

Input Parameters

ParametersTypeDescription
urlstringGame data authorization page URL link
screenTypeintScreen orientation
1: Landscape and portrait
2: Portrait
3: Landscape
isFullScreenboolFullscreen or not
extraJsonstringExtended Field

Callback Handling

The callback handling interface is GUAWebViewResultObserver.The callback data structure is GUAWebViewRet.

The callback event is WebViewRetEvents. Callback ID is GUA_WEBVIEW_CLOSE_URL.

Code Example

UnionAdapterAPI.GetWebViewService().OpenGameDataAuthCenter("url");