Skip to main content

Overview

Games released in China need to integrate MSDK, and games released outside of China need to integrate Player Network SDK. As the two SDKs have inconsistent class names and APIs, games that need to be released globally, including in China, have to integrate both MSDK and Player Network SDK, causing the cost of SDK integration and code maintenance to surge. Therefore, CROS and Global jointly developed UnionAdapter to adapt to both MSDK and Player Network SDK APIs, solving the issue of repeated integration and minimizing the cost of SDK integration and code maintenance.

note
  • To release games in China, integrate MSDK's UnionAdapter plugin; to release games outside of China, integrate Player Network SDK's UnionAdapter plugin. The UnionAdapter API is called in the same way. When switching between China's account service and global account service, games only need to switch to the corresponding SDK (MSDK/Player Network SDK).
  • To integrate MSDK's custom account channel, contact MSDK in advance as the production environment for MSDK's custom account channel is not available.
caution

Since LI PASS V1.25.00, UnionAdapter and LI PASS have been made compatible and can be used together. Games will be able to use LI PASS and still receive callbacks from the corresponding modules of UnionAdapter. All APIs are compatible and no code adjustment is required.

Modules

ModuleData StructureCallback
AccountGUALoginResult
GUAAccountResult
GUAAccountProfile
GUALoginResultObservers
GUABaseResultObservers
GUAAccountResultObservers
GUAIDTokenResultObservers [Player Network SDK Only]
GUAConnectResultObservers [MSDK Only]
GUAQrCodeResultObservers [MSDK Only]
FriendGUAFriendResult
GUAFriendReqInfo
GUAFriendBaseResultObserver
GUAQuereyFriendObserver
WebViewGUAWebViewRetGUAWebViewResultObserver
NoticeGUANoticeResultGUANoticeResultObserver
PushGUAPushResultGUAPushBaseResultObserver
GUAPushResultObserver
Crash-GUACrashObserver
AnalyticsGUADeviceLevelResultGUADeviceLevelResultObserver
ToolsGUAToolsResult
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)

MethodID Names

IDMethod IDDescriptionRemark
00000METHODID_UNDEFINEUndefine methodIdPlayer Network SDK & MSDK
10101GUA_ACCOUNT_AUTOLOGINAutomatic loginPlayer Network SDK & MSDK
10102GUA_ACCOUNT_LOGINLogin authorizationPlayer Network SDK & MSDK
10103GUA_ACCOUNT_BINDLinkPlayer Network SDK & MSDK
10104GUA_ACCOUNT_GET_LOGIN_RESULTGet login statePlayer Network SDK & MSDK
10105GUA_ACCOUNT_SWITCH_USERPlayer Network SDK & MSDK
10106GUA_ACCOUNT_QUERY_USER_INFOGet personal informationPlayer Network SDK & MSDK
10107GUA_ACCOUNT_LOGOUTLog outPlayer Network SDK & MSDK
10108GUA_ACCOUNT_LOGIN_WITH_CONFIRM_CODELog in with confirmation codePlayer Network SDK & MSDK
10109GUA_ACCOUNT_WAKEUPWake up accountPlayer Network SDK & MSDK
10110GUA_ACCOUNT_SCHEMEPlayer Network SDK & MSDK
10111GUA_ACCOUNT_RESET_GUESTReset guest accountPlayer Network SDK & MSDK
10112GUA_ACCOUNT_QUERY_CAN_BINDQuery whether can be linked or notPlayer 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 user availabilityPlayer Network SDK
10116GUA_ACCOUNT_NEED_REFRESH_USERRefresh userPlayer Network SDK
10117GUA_ACCOUNT_REQUEST_VERIFY_CODEGet 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 accepting mailPlayer 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_UNBINDUnlinkPlayer 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_INFOGet linking informationPlayer 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 friends listPlayer Network SDK & MSDK
10204GUA_FRIEND_ADD_FRIENDMSDK
10301GUA_WEBVIEW_CLOSE_URLClose web pagePlayer Network SDK & MSDK
10302GUA_WEBVIEW_GET_ENCRYPT_URLGet login state encryption 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_UNREGISTERUnregister pushPlayer Network SDK & MSDK
10403GUA_PUSH_SET_TAGRegister tagPlayer Network SDK & MSDK
10404GUA_PUSH_DELETE_TAGUnregister tagPlayer Network SDK & MSDK
10405GUA_PUSH_ADD_LOCAL_NOTIFICATIONRegister local pushPlayer Network SDK & MSDK
10406GUA_PUSH_CLEAR_LOCAL_NOTIFICATIONSClear local pushPlayer 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 notice 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 notched display 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 IP address query by host (intl 1401)Player Network SDK
10701GUA_ANALYTICS_CRASH_EXTRA_MESSAGEAdditional crash logsPlayer Network SDK & MSDK
10702GUA_ANALYTICS_QUERY_DEVICE_LEVELQuery device level (intl 703)Player Network SDK
10703GUA_ANALYTICS_CRASH_EXTRA_DATAMSDK
11301GUA_EXTEND_INVOKEExtended callPlayer Network SDK & MSDK