Skip to main content

Open AMS Activity Center (OpenAmsCenter) (MSDK only)

[MSDK only] Opens the AMS Activity Center.

Supported Platforms

Supports Android, iOS platform.

Function Definition

void OpenAmsCenter(string gameName,
string actChannelId,
string zoneId,
string platformId,
string partitionId,
string roleId,
int screenType = 1,
string extraJson = "");

Input Parameters

ParametersTypeDescription
gameNamestringBusiness Code Abbreviation
Each business is unique and is assigned a distinct code by the system when accessing the AMS platform
actChannelIdstringActivity Channel ID
Each business can log in to the "AMS Management Terminal" to obtain it
zoneIdstringUser region server information
platformIdstringPlatform ID
0: iOS
1: Android
partitionIdstringUser region server information
roleIdstringRole ID
screenTypeintScreen orientation
1: Landscape and portrait
2: Portrait
3: Landscape
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().OpenAmsCenter("jxqy","jxqy_comm", "2", "0", "1", "role");