Skip to main content

Overview

Games released in China must connect to MSDK, while games released outside China in other regions and countries need to connect to the Player Network SDK.Because the class names and APIs of MSDK and Player Network SDK are inconsistent, integrating both SDKs separately for games that need to be released in multiple countries or regions, including China, increases the development and maintenance costs for SDK integration.Based on this background, CROS and Global jointly developed UnionAdapter to adapt the interfaces of MSDK and Player Network SDK. This solves the problem of redundant SDK integration in game projects and reduces the cost of SDK integration and maintenance.

note
  • For publishing games in China, please integrate the MSDK version of the UnionAdapter plugin; for publishing games overseas, please integrate the Player Network SDK version of the UnionAdapter plugin.UnionAdapter API calling methods are identical.When switching between domestic and overseas account services, the game only needs to be replaced with the corresponding SDK (MSDK/Player Network SDK).
  • MSDK's self-hosted accounts currently do not have a formal environment. If there is a need for self-hosted account integration, please contact MSDK in advance.
caution

Starting from LI PASS V1.25.00, UnionAdapter and LI PASS have achieved compatibility and support coexistence. The business can, while using LI PASS, simultaneously receive callbacks from corresponding modules of UnionAdapter.All interfaces are well adapted, no code adjustment is required.

List of Supported Modules

ModuleData structureCallback
AccountGUALoginResult
GUAAccountResult
GUAAccountProfile
GUALoginResultObservers
GUABaseResultObservers
GUAAccountResultObservers
GUAIDTokenResultObservers [Player Network SDK only]
GUAConnectResultObservers [MSDK only]
GUAQrCodeResultObservers [MSDK only]
FriendGUAFriendResult
GUAFriendReqInfo
GUAFriendBaseResultObserver
GUAQuereyFriendObserver
WebViewGUAWebViewRetWebView module callback (GUAWebViewResultObserver)
NotificationGUANoticeResultGUANoticeResultObserver
Push NotificationGUAPushResultGUAPushBaseResultObserver
GUAPushResultObserver
Crash*GUACrashObserver
AnalysisGUADeviceLevelResultDevice Grading module callback (GUADeviceLevelResultObserver)
ToolGUAToolsResult
GUACutoutInfoResult (Player Network SDK only)
GUADetectNetWortResult (Player Network SDK only)
GUAToolsFreeFlowResult (MSDK only)
GUAToolsResultObserver
GUACutoutInfoObserver (Player Network SDK only)
GUADetectNetWortResultObserver (Player Network SDK only)
GUAToolsFreeFlowResultObserver (MSDK only)

Adapter Layer MethodID Names

IDMethod IDDescriptionNote
00000METHODID_UNDEFINEUndefine methodIdPlayer Network SDK & MSDK
10101GUA_ACCOUNT_AUTOLOGINAutomatic LoginPlayer Network SDK & MSDK
10102GUA_ACCOUNT_LOGINAuthorized LoginPlayer Network SDK & MSDK
10103GUA_ACCOUNT_BINDLinkPlayer Network SDK & MSDK
10104GUA_ACCOUNT_GET_LOGIN_RESULTRetrieve Login StatusPlayer Network SDK & MSDK
10105GUA_ACCOUNT_SWITCH_USERPlayer Network SDK & MSDK
10106GUA_ACCOUNT_QUERY_USER_INFOPersonal InformationPlayer Network SDK & MSDK
10107GUA_ACCOUNT_LOGOUTLogoutPlayer Network SDK & MSDK
10108GUA_ACCOUNT_LOGIN_WITH_CONFIRM_CODELogin with Confirmation CodePlayer Network SDK & MSDK
10109GUA_ACCOUNT_WAKEUPForeign AccountPlayer Network SDK & MSDK
10110GUA_ACCOUNT_SCHEMEPlayer Network SDK & MSDK
10111GUA_ACCOUNT_RESET_GUESTReset Guest AccountPlayer Network SDK & MSDK
10112GUA_ACCOUNT_QUERY_CAN_BINDQuery if Binding is PossiblePlayer Network SDK
10113GUA_ACCOUNT_QUERY_ACTIVE_USERQuery Available UsersPlayer Network SDK
10114GUA_ACCOUNT_SHOW_ACCOUNT_PICKERDisplay User ListPlayer Network SDK
10115GUA_ACCOUNT_CHECK_ACTIVE_USERCheck if user is availablePlayer Network SDK
10116GUA_ACCOUNT_NEED_REFRESH_USERRefresh UserPlayer Network SDK
10117GUA_ACCOUNT_REQUEST_VERIFY_CODEObtain Verification CodePlayer Network SDK & MSDK
10118GUA_ACCOUNT_RESET_PASSWORDReset PasswordPlayer Network SDK & MSDK
10119GUA_ACCOUNT_MODIFY_ACCOUNTModify Account InformationPlayer Network SDK & MSDK
10120GUA_ACCOUNT_LOGIN_WITH_CODEPlayer Network SDK & MSDK
10121GUA_ACCOUNT_QUERY_REGISTER_STATUSGet Registration StatusPlayer Network SDK & MSDK
10122GUA_ACCOUNT_QUERY_VERIFY_CODE_STATUSGet Verification Code StatusPlayer Network SDK & MSDK
10123GUA_ACCOUNT_QUERY_IS_RECEIVE_EMAILCheck if Receiving EmailPlayer Network SDK & MSDK
10124GUA_ACCOUNT_REGISTERRegister AccountPlayer Network SDK
10125GUA_ACCOUNT_MODIFY_PROFILEModify Personal InformationPlayer Network SDK
10128GUA_ACCOUNT_LOGIN_WITH_MAPPED_CHANNELPlayer Network SDK
10129GUA_ACCOUNT_BUILD_MAP_WITH_LOGIN_CHANNELPlayer Network SDK
10130GUA_ACCOUNT_QUERY_TOKEN_IDQuery Token IDPlayer Network SDK
10132GUA_ACCOUNT_UNBINDUnbindPlayer Network SDK
10133GUA_ACCOUNT_QUERY_USER_NAME_STATUSQuery Username StatusPlayer Network SDK
10134GUA_ACCOUNT_QUERY_DATA_PROTECTION_ACCEPTANCEQuery Data Protection AcceptancePlayer Network SDK
10135GUA_ACCOUNT_MODIFY_DATA_PROTECTION_ACCEPTANCEModify Data Protection AcceptancePlayer Network SDK
10136GUA_ACCOUNT_QUERY_ACCOUNT_PROFILEQuery Account InformationPlayer Network SDK
10137GUA_ACCOUNT_LAUNCH_ACCOUNT_UIOpen Account UIPlayer Network SDK & MSDK
10138GUA_ACCOUNT_QUERY_LEGAL_DOCUMENTSQuery Legal Document InformationPlayer Network SDK
10139GUA_ACCOUNT_MODIFY_LEGAL_DOCUMENTSModify Legal Document InformationPlayer Network SDK
10140GUA_ACCOUNT_QUERY_BIND_INFOQuery binding relationshipPlayer Network SDK
10141GUA_ACCOUNT_CONNECTMSDK
10142GUA_ACCOUNT_UNCONNECTMSDK
10143GUA_ACCOUNT_GETCONNECTRESULTMSDK
10144GUA_ACCOUNT_BINDUIMSDK
10146GUA_ACCOUNT_QRCODEMSDK
10147GUA_ACCOUNT_CHECK_ULMSDK
10148GUA_ACCOUNT_CHECK_AND_LOGINMSDK
10149GUA_ACCOUNT_CHECKMSDK
10150GUA_ACCOUNT_BIND_WITH_CONFIRMCODEMSDK
10151GUA_ACCOUNT_PERMISSION_AUTHMSDK
10152GUA_ACCOUNT_CHANNEL_PERMISSION_AUTHMSDK
10153GUA_ACCOUNT_CAN_BINDMSDK
10154GUA_ACCOUNT_CANCEL_ACCOUNT_DELETIONCancel account deletion (intl 141)Player Network SDK
10201GUA_FRIEND_SHARESharePlayer Network SDK & MSDK
10202GUA_FRIEND_SEND_MESSAGESend MessagePlayer Network SDK & MSDK
10203GUA_FRIEND_QUERY_FRIENDSGet Friend ListPlayer Network SDK & MSDK
10204GUA_FRIEND_ADD_FRIENDMSDK
10301GUA_WEBVIEW_CLOSE_URLClose Web PagePlayer Network SDK & MSDK
10302GUA_WEBVIEW_GET_ENCRYPT_URLRetrieve Login Status Encrypted TicketPlayer Network SDK & MSDK
10303GUA_WEBVIEW_JS_CALLNative call JSPlayer Network SDK & MSDK
10304GUA_WEBVIEW_JS_SHAREPlayer Network SDK & MSDK
10305GUA_WEBVIEW_JS_SEND_MESSAGEPlayer Network SDK & MSDK
10306GUA_WEBVIEW_JS_IS_APP_INSTALLEDPlayer Network SDK
10307GUA_WEBVIEW_TOOLBAR_SHAREPlayer Network SDK
10308GUA_WEBVIEW_EMBEDDED_PROGRESSMSDK
10401GUA_PUSH_REGISTERRegister PushPlayer Network SDK & MSDK
10402GUA_PUSH_UNREGISTERAccount CancellationPlayer Network SDK & MSDK
10403GUA_PUSH_SET_TAGRegister TagPlayer Network SDK & MSDK
10404GUA_PUSH_DELETE_TAGCancel LabelPlayer Network SDK & MSDK
10405GUA_PUSH_ADD_LOCAL_NOTIFICATIONRegister Local NotificationPlayer Network SDK & MSDK
10406GUA_PUSH_CLEAR_LOCAL_NOTIFICATIONSClear Local NotificationsPlayer Network SDK & MSDK
10407GUA_PUSH_NOTIFICATION_CALLBACKPush CallbackPlayer Network SDK & MSDK
10408GUA_PUSH_NOTIFICATION_SHOWPlayer Network SDK & MSDK
10409GUA_PUSH_NOTIFICATION_CLICKPlayer Network SDK & MSDK
10410GUA_PUSH_SET_ACCOUNTPlayer Network SDK & MSDK
10411GUA_PUSH_DELETE_ACCOUNTPlayer Network SDK & MSDK
10501GUA_NOTICE_REQUEST_DATAGet announcement dataPlayer Network SDK & MSDK
10601GUA_TOOLS_OPEN_DEEP_LINKPlayer Network SDK & MSDK
10602GUA_TOOLS_CONVERT_SHORT_URLPlayer Network SDK & MSDK
10603GUA_TOOLS_CUTOUT_INFOQuery Asynchronous Notch Screen InformationPlayer Network SDK
10604GUA_TOOLS_FREE_FLOWMSDK
10605GUA_TOOLS_RECOVER_GUESTMSDK
10606GUA_TOOLS_DETECT_NETWORKNetwork diagnosis (intl 1801)Player Network SDK
10607GUA_TOOLS_DNS_QUERY_IP_BY_HOSTDNS query IP by host (intl 1401)Player Network SDK
10701GUA_ANALYTICS_CRASH_EXTRA_MESSAGEExtra Crash LogsPlayer Network SDK & MSDK
10702GUA_ANALYTICS_QUERY_DEVICE_LEVELQuery Device Tier (intl 703)Player Network SDK
10703GUA_ANALYTICS_CRASH_EXTRA_DATAMSDK
11301GUA_EXTEND_INVOKEExtend InvocationPlayer Network SDK & MSDK