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.
- 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.
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
Adapter Layer MethodID Names
- Unity
- Unreal Engine
| ID | Method ID | Description | Note |
|---|---|---|---|
| 00000 | METHODID_UNDEFINE | Undefine methodId | Player Network SDK & MSDK |
| 10101 | GUA_ACCOUNT_AUTOLOGIN | Automatic Login | Player Network SDK & MSDK |
| 10102 | GUA_ACCOUNT_LOGIN | Authorized Login | Player Network SDK & MSDK |
| 10103 | GUA_ACCOUNT_BIND | Link | Player Network SDK & MSDK |
| 10104 | GUA_ACCOUNT_GET_LOGIN_RESULT | Retrieve Login Status | Player Network SDK & MSDK |
| 10105 | GUA_ACCOUNT_SWITCH_USER | Player Network SDK & MSDK | |
| 10106 | GUA_ACCOUNT_QUERY_USER_INFO | Personal Information | Player Network SDK & MSDK |
| 10107 | GUA_ACCOUNT_LOGOUT | Logout | Player Network SDK & MSDK |
| 10108 | GUA_ACCOUNT_LOGIN_WITH_CONFIRM_CODE | Login with Confirmation Code | Player Network SDK & MSDK |
| 10109 | GUA_ACCOUNT_WAKEUP | Foreign Account | Player Network SDK & MSDK |
| 10110 | GUA_ACCOUNT_SCHEME | Player Network SDK & MSDK | |
| 10111 | GUA_ACCOUNT_RESET_GUEST | Reset Guest Account | Player Network SDK & MSDK |
| 10112 | GUA_ACCOUNT_QUERY_CAN_BIND | Query if Binding is Possible | Player Network SDK |
| 10113 | GUA_ACCOUNT_QUERY_ACTIVE_USER | Query Available Users | Player Network SDK |
| 10114 | GUA_ACCOUNT_SHOW_ACCOUNT_PICKER | Display User List | Player Network SDK |
| 10115 | GUA_ACCOUNT_CHECK_ACTIVE_USER | Check if user is available | Player Network SDK |
| 10116 | GUA_ACCOUNT_NEED_REFRESH_USER | Refresh User | Player Network SDK |
| 10117 | GUA_ACCOUNT_REQUEST_VERIFY_CODE | Obtain Verification Code | Player Network SDK & MSDK |
| 10118 | GUA_ACCOUNT_RESET_PASSWORD | Reset Password | Player Network SDK & MSDK |
| 10119 | GUA_ACCOUNT_MODIFY_ACCOUNT | Modify Account Information | Player Network SDK & MSDK |
| 10120 | GUA_ACCOUNT_LOGIN_WITH_CODE | Player Network SDK & MSDK | |
| 10121 | GUA_ACCOUNT_QUERY_REGISTER_STATUS | Get Registration Status | Player Network SDK & MSDK |
| 10122 | GUA_ACCOUNT_QUERY_VERIFY_CODE_STATUS | Get Verification Code Status | Player Network SDK & MSDK |
| 10123 | GUA_ACCOUNT_QUERY_IS_RECEIVE_EMAIL | Check if Receiving Email | Player Network SDK & MSDK |
| 10124 | GUA_ACCOUNT_REGISTER | Register Account | Player Network SDK |
| 10125 | GUA_ACCOUNT_MODIFY_PROFILE | Modify Personal Information | Player Network SDK |
| 10128 | GUA_ACCOUNT_LOGIN_WITH_MAPPED_CHANNEL | Player Network SDK | |
| 10129 | GUA_ACCOUNT_BUILD_MAP_WITH_LOGIN_CHANNEL | Player Network SDK | |
| 10130 | GUA_ACCOUNT_QUERY_TOKEN_ID | Query Token ID | Player Network SDK |
| 10132 | GUA_ACCOUNT_UNBIND | Unbind | Player Network SDK |
| 10133 | GUA_ACCOUNT_QUERY_USER_NAME_STATUS | Query Username Status | Player Network SDK |
| 10134 | GUA_ACCOUNT_QUERY_DATA_PROTECTION_ACCEPTANCE | Query Data Protection Acceptance | Player Network SDK |
| 10135 | GUA_ACCOUNT_MODIFY_DATA_PROTECTION_ACCEPTANCE | Modify Data Protection Acceptance | Player Network SDK |
| 10136 | GUA_ACCOUNT_QUERY_ACCOUNT_PROFILE | Query Account Information | Player Network SDK |
| 10137 | GUA_ACCOUNT_LAUNCH_ACCOUNT_UI | Open Account UI | Player Network SDK & MSDK |
| 10138 | GUA_ACCOUNT_QUERY_LEGAL_DOCUMENTS | Query Legal Document Information | Player Network SDK |
| 10139 | GUA_ACCOUNT_MODIFY_LEGAL_DOCUMENTS | Modify Legal Document Information | Player Network SDK |
| 10140 | GUA_ACCOUNT_QUERY_BIND_INFO | Query binding relationship | Player Network SDK |
| 10141 | GUA_ACCOUNT_CONNECT | MSDK | |
| 10142 | GUA_ACCOUNT_UNCONNECT | MSDK | |
| 10143 | GUA_ACCOUNT_GETCONNECTRESULT | MSDK | |
| 10144 | GUA_ACCOUNT_BINDUI | MSDK | |
| 10146 | GUA_ACCOUNT_QRCODE | MSDK | |
| 10147 | GUA_ACCOUNT_CHECK_UL | MSDK | |
| 10148 | GUA_ACCOUNT_CHECK_AND_LOGIN | MSDK | |
| 10149 | GUA_ACCOUNT_CHECK | MSDK | |
| 10150 | GUA_ACCOUNT_BIND_WITH_CONFIRMCODE | MSDK | |
| 10151 | GUA_ACCOUNT_PERMISSION_AUTH | MSDK | |
| 10152 | GUA_ACCOUNT_CHANNEL_PERMISSION_AUTH | MSDK | |
| 10153 | GUA_ACCOUNT_CAN_BIND | MSDK | |
| 10154 | GUA_ACCOUNT_CANCEL_ACCOUNT_DELETION | Cancel account deletion (intl 141) | Player Network SDK |
| 10201 | GUA_FRIEND_SHARE | Share | Player Network SDK & MSDK |
| 10202 | GUA_FRIEND_SEND_MESSAGE | Send Message | Player Network SDK & MSDK |
| 10203 | GUA_FRIEND_QUERY_FRIENDS | Get Friend List | Player Network SDK & MSDK |
| 10204 | GUA_FRIEND_ADD_FRIEND | MSDK | |
| 10301 | GUA_WEBVIEW_CLOSE_URL | Close Web Page | Player Network SDK & MSDK |
| 10302 | GUA_WEBVIEW_GET_ENCRYPT_URL | Retrieve Login Status Encrypted Ticket | Player Network SDK & MSDK |
| 10303 | GUA_WEBVIEW_JS_CALL | Native call JS | Player Network SDK & MSDK |
| 10304 | GUA_WEBVIEW_JS_SHARE | Player Network SDK & MSDK | |
| 10305 | GUA_WEBVIEW_JS_SEND_MESSAGE | Player Network SDK & MSDK | |
| 10306 | GUA_WEBVIEW_JS_IS_APP_INSTALLED | Player Network SDK | |
| 10307 | GUA_WEBVIEW_TOOLBAR_SHARE | Player Network SDK | |
| 10308 | GUA_WEBVIEW_EMBEDDED_PROGRESS | MSDK | |
| 10401 | GUA_PUSH_REGISTER | Register Push | Player Network SDK & MSDK |
| 10402 | GUA_PUSH_UNREGISTER | Account Cancellation | Player Network SDK & MSDK |
| 10403 | GUA_PUSH_SET_TAG | Register Tag | Player Network SDK & MSDK |
| 10404 | GUA_PUSH_DELETE_TAG | Cancel Label | Player Network SDK & MSDK |
| 10405 | GUA_PUSH_ADD_LOCAL_NOTIFICATION | Register Local Notification | Player Network SDK & MSDK |
| 10406 | GUA_PUSH_CLEAR_LOCAL_NOTIFICATIONS | Clear Local Notifications | Player Network SDK & MSDK |
| 10407 | GUA_PUSH_NOTIFICATION_CALLBACK | Push Callback | Player Network SDK & MSDK |
| 10408 | GUA_PUSH_NOTIFICATION_SHOW | Player Network SDK & MSDK | |
| 10409 | GUA_PUSH_NOTIFICATION_CLICK | Player Network SDK & MSDK | |
| 10410 | GUA_PUSH_SET_ACCOUNT | Player Network SDK & MSDK | |
| 10411 | GUA_PUSH_DELETE_ACCOUNT | Player Network SDK & MSDK | |
| 10501 | GUA_NOTICE_REQUEST_DATA | Get announcement data | Player Network SDK & MSDK |
| 10601 | GUA_TOOLS_OPEN_DEEP_LINK | Player Network SDK & MSDK | |
| 10602 | GUA_TOOLS_CONVERT_SHORT_URL | Player Network SDK & MSDK | |
| 10603 | GUA_TOOLS_CUTOUT_INFO | Query Asynchronous Notch Screen Information | Player Network SDK |
| 10604 | GUA_TOOLS_FREE_FLOW | MSDK | |
| 10605 | GUA_TOOLS_RECOVER_GUEST | MSDK | |
| 10606 | GUA_TOOLS_DETECT_NETWORK | Network diagnosis (intl 1801) | Player Network SDK |
| 10607 | GUA_TOOLS_DNS_QUERY_IP_BY_HOST | DNS query IP by host (intl 1401) | Player Network SDK |
| 10701 | GUA_ANALYTICS_CRASH_EXTRA_MESSAGE | Extra Crash Logs | Player Network SDK & MSDK |
| 10702 | GUA_ANALYTICS_QUERY_DEVICE_LEVEL | Query Device Tier (intl 703) | Player Network SDK |
| 10703 | GUA_ANALYTICS_CRASH_EXTRA_DATA | MSDK | |
| 11301 | GUA_EXTEND_INVOKE | Extend Invocation | Player Network SDK & MSDK |
| ID | GUAMethodID | Description | Note |
|---|---|---|---|
| 00000 | kMethodIDUndefine | Undefine methodId | Player Network SDK & MSDK |
| 10101 | kMethodIDAccountAutoLogin | Automatic Login | Player Network SDK & MSDK |
| 10102 | kMethodIDAccountLogin | Authorized Login | Player Network SDK & MSDK |
| 10103 | kMethodIDAccountBind | Link | Player Network SDK & MSDK |
| 10104 | kMethodIDAccountGetLoginRet | Retrieve Login Status | Player Network SDK & MSDK |
| 10105 | kMethodIDAccountSwitchUser | Player Network SDK & MSDK | |
| 10106 | kMethodIDAccountQueryUserInfo | Personal Information | Player Network SDK & MSDK |
| 10107 | kMethodIDAccountLogout | Logout | Player Network SDK & MSDK |
| 10108 | kMethodIDAccountLoginWithConfirmCode | Login with Confirmation Code | Player Network SDK & MSDK |
| 10109 | kMethodIDAccountWakeUp | Foreign Account | Player Network SDK & MSDK |
| 10110 | KMethodIDAccountScheme | Player Network SDK & MSDK | |
| 10111 | kMethodIDAccountResetGuest | Reset Guest Account | Player Network SDK & MSDK |
| 10112 | kMethodIDAccountQueryCanBind | Query if Binding is Possible | Player Network SDK |
| 10113 | kMethodIDAccountQueryActiveUser | Query Available Users | Player Network SDK |
| 10114 | kMethodIDAccountShowAccountPicker | Display User List | Player Network SDK |
| 10115 | kMethodIDAccountCheckActiveUser | Check if user is available | Player Network SDK |
| 10116 | kMethodIDAccountNeedRefreshUser | Refresh User | Player Network SDK |
| 10117 | kMethodIDAccountRequestVerifyCode | Obtain Verification Code | Player Network SDK & MSDK |
| 10118 | kMethodIDAccountResetPassword | Reset Password | Player Network SDK & MSDK |
| 10119 | kMethodIDAccountModifyAccount | Modify Account Information | Player Network SDK & MSDK |
| 10120 | kMethodIDAccountLoginWithCode | Player Network SDK & MSDK | |
| 10121 | kMethodIDAccountQueryRegisterStatus | Get Registration Status | Player Network SDK & MSDK |
| 10122 | kMethodIDAccountQueryVerifyCodeStatus | Get Verification Code Status | Player Network SDK & MSDK |
| 10123 | kMethodIDAccountQueryIsReceiveEmail | Check if Receiving Email | Player Network SDK & MSDK |
| 10124 | kMethodIDAccountRegister | Register Account | Player Network SDK |
| 10125 | kMethodIDAccountModifyProfile | Modify Personal Information | Player Network SDK |
| 10128 | kMethodIDAccountLoginWithMappedChannel | Player Network SDK | |
| 10129 | kMethodIDAccountBuildMapWithLoginChannel | Player Network SDK | |
| 10130 | kMethodIDAccountQueryTokenID | Query Token ID | Player Network SDK |
| 10132 | kMethodIDAccountUnbind | Unbind | Player Network SDK |
| 10133 | kMethodIDAccountQueryUserNameStatus | Query Username Status | Player Network SDK |
| 10134 | kMethodIDAccountQueryDataProtectionAcceptance | Query Data Protection Acceptance | Player Network SDK |
| 10135 | kMethodIDAccountModifyDataProtectionAcceptance | Modify Data Protection Acceptance | Player Network SDK |
| 10136 | kMethodIDAccountQueryAccountProfile | Open Account UI | Player Network SDK |
| 10138 | kMethodIDAccountQueryLegalDocuments | Query Legal Document Information | Player Network SDK |
| 10139 | kMethodIDAccountModifyLegalDocuments | Modify Legal Document Information | Player Network SDK |
| 10140 | kMethodIDAccountQueryBindInfo | Query binding relationship | Player Network SDK |
| 10141 | kMethodIDAccountConnect | MSDK | |
| 10142 | kMethodIDAccountUnconnect | MSDK | |
| 10143 | kMethodIDAccountGetConnectResult | MSDK | |
| 10144 | kMethodIDAccountBindUI | MSDK | |
| 10146 | kMethodIDAccountQRCode | MSDK | |
| 10147 | kMethodIDAccountCheckUL | MSDK | |
| 10148 | kMethodIDAccountCheckAndLogin | MSDK | |
| 10149 | kMethodIDAccountCheck | MSDK | |
| 10150 | kMethodIDAccountBindWithConfirmCode | MSDK | |
| 10151 | kMethodIDAccountPermissionAuth | MSDK | |
| 10152 | kMethodIDAccountChannelPermissionAuth | MSDK | |
| 10153 | kMethodIDAccountCanBind | MSDK | |
| 10154 | kMethodIDAccountCancelAccountDeletion | Cancel Account Cancellation | Player Network SDK |
| 10201 | kMethodIDFriendShare | Share | Player Network SDK & MSDK |
| 10202 | kMethodIDFriendSendMessage | Send Message | Player Network SDK & MSDK |
| 10203 | kMethodIDFriendQueryFriends | Get Friend List | Player Network SDK & MSDK |
| 10204 | kMethodIDFriendAddFriend | MSDK | |
| 10301 | kMethodIDWebviewCloseURL | Close Web Page | Player Network SDK & MSDK |
| 10302 | kMethodIDWebviewGetEncryptUR | Retrieve Login Status Encrypted Ticket | Player Network SDK & MSDK |
| 10303 | kMethodIDWebviewJSCall | Native call JS | Player Network SDK & MSDK |
| 10304 | kMethodIDWebviewJSShare | Player Network SDK & MSDK | |
| 10305 | kMethodIDWebviewJSSendMessage | Player Network SDK & MSDK | |
| 10306 | kMethodIDWebviewJSIsAppInstalled | Player Network SDK | |
| 10307 | kMethodIDWebviewToolbarShare | Player Network SDK | |
| 10401 | kMethodIDPushRegister | Register Push | Player Network SDK & MSDK |
| 10402 | kMethodIDPushUnregister | Account Cancellation | Player Network SDK & MSDK |
| 10403 | kMethodIDPushSetTag | Register Tag | Player Network SDK & MSDK |
| 10404 | kMethodIDPushDeleteTag | Cancel Label | Player Network SDK & MSDK |
| 10405 | kMethodIDPushAddLocalNotification | Register Local Notification | Player Network SDK & MSDK |
| 10406 | kMethodIDPushClearLocalNotification | Clear Local Notifications | Player Network SDK & MSDK |
| 10407 | kMethodIDPushNotificationCallback | Push Callback | Player Network SDK & MSDK |
| 10408 | kMethodIDPushNotificationShow | Player Network SDK & MSDK | |
| 10409 | kMethodIDPushNotificationClick | Player Network SDK & MSDK | |
| 10410 | kMethodIDPushSetAccount | Player Network SDK & MSDK | |
| 10411 | kMethodIDPushDeleteAccount | Player Network SDK & MSDK | |
| 10501 | kMethodIDNoticeRequestData | Get announcement data | Player Network SDK & MSDK |
| 10601 | kMethodIDToolsOpenDeepLink | Player Network SDK & MSDK | |
| 10603 | kMethodIDToolsCutoutInfo | Query Asynchronous Notch Screen Information | Player Network SDK |
| 10604 | kMethodIDToolsFreeFlow | MSDK | |
| 10605 | kMethodIDToolsRecoverGuest | MSDK | |
| 10606 | kMethodIDToolsDetectNetwork | Network Diagnostics (intl 1801) | Player Network SDK |
| 10607 | kMethodIDToolsDNSQueryIPByHost | DNS Query IP by Host (intl 1401) | Player Network SDK |
| 10602 | kMethodIDToolsConvertShortURL | Player Network SDK & MSDK | |
| 10701 | kMethodIDAnalyticsCrashExtraMessage | Extra Crash Logs | Player Network SDK & MSDK |
| 10702 | kMethodIDAnalyticsQueryDeviceLevel | Query Device Tier (intl 703) | Player Network SDK |
| 10703 | kMethodIDAnalyticsCrashExtraData | MSDK | |
| 11301 | kMethodIDExtendInvoke | Extend Invocation | Player Network SDK & MSDK |