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.
- 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.
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
MethodID Names
- Unity
- Unreal Engine
ID | Method ID | Description | Remark |
---|---|---|---|
00000 | METHODID_UNDEFINE | Undefine methodId | Player Network SDK & MSDK |
10101 | GUA_ACCOUNT_AUTOLOGIN | Automatic login | Player Network SDK & MSDK |
10102 | GUA_ACCOUNT_LOGIN | Login authorization | Player Network SDK & MSDK |
10103 | GUA_ACCOUNT_BIND | Link | Player Network SDK & MSDK |
10104 | GUA_ACCOUNT_GET_LOGIN_RESULT | Get login state | Player Network SDK & MSDK |
10105 | GUA_ACCOUNT_SWITCH_USER | Player Network SDK & MSDK | |
10106 | GUA_ACCOUNT_QUERY_USER_INFO | Get personal information | Player Network SDK & MSDK |
10107 | GUA_ACCOUNT_LOGOUT | Log out | Player Network SDK & MSDK |
10108 | GUA_ACCOUNT_LOGIN_WITH_CONFIRM_CODE | Log in with confirmation code | Player Network SDK & MSDK |
10109 | GUA_ACCOUNT_WAKEUP | Wake up 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 whether can be linked or not | 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 user availability | Player Network SDK |
10116 | GUA_ACCOUNT_NEED_REFRESH_USER | Refresh user | Player Network SDK |
10117 | GUA_ACCOUNT_REQUEST_VERIFY_CODE | Get 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 accepting mail | 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 | Unlink | 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 | Get linking information | 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 friends 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 | Get login state encryption 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 | Unregister push | Player Network SDK & MSDK |
10403 | GUA_PUSH_SET_TAG | Register tag | Player Network SDK & MSDK |
10404 | GUA_PUSH_DELETE_TAG | Unregister tag | Player Network SDK & MSDK |
10405 | GUA_PUSH_ADD_LOCAL_NOTIFICATION | Register local push | Player Network SDK & MSDK |
10406 | GUA_PUSH_CLEAR_LOCAL_NOTIFICATIONS | Clear local push | 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 notice 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 notched display 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 IP address query by host (intl 1401) | Player Network SDK |
10701 | GUA_ANALYTICS_CRASH_EXTRA_MESSAGE | Additional crash logs | Player Network SDK & MSDK |
10702 | GUA_ANALYTICS_QUERY_DEVICE_LEVEL | Query device level (intl 703) | Player Network SDK |
10703 | GUA_ANALYTICS_CRASH_EXTRA_DATA | MSDK | |
11301 | GUA_EXTEND_INVOKE | Extended call | Player Network SDK & MSDK |
ID | GUAMethodID | Description | Remark |
---|---|---|---|
00000 | kMethodIDUndefine | Undefine methodId | Player Network SDK & MSDK |
10101 | kMethodIDAccountAutoLogin | Automatic login | Player Network SDK & MSDK |
10102 | kMethodIDAccountLogin | Login authorization | Player Network SDK & MSDK |
10103 | kMethodIDAccountBind | Link | Player Network SDK & MSDK |
10104 | kMethodIDAccountGetLoginRet | Get login status | Player Network SDK & MSDK |
10105 | kMethodIDAccountSwitchUser | Player Network SDK & MSDK | |
10106 | kMethodIDAccountQueryUserInfo | Get personal information | Player Network SDK & MSDK |
10107 | kMethodIDAccountLogout | Log out | Player Network SDK & MSDK |
10108 | kMethodIDAccountLoginWithConfirmCode | Log in with confirmation code | Player Network SDK & MSDK |
10109 | kMethodIDAccountWakeUp | Wake up account | Player Network SDK & MSDK |
10110 | KMethodIDAccountScheme | Player Network SDK & MSDK | |
10111 | kMethodIDAccountResetGuest | Reset guest account | Player Network SDK & MSDK |
10112 | kMethodIDAccountQueryCanBind | Query whether can be linked or not | Player Network SDK |
10113 | kMethodIDAccountQueryActiveUser | Query available users | Player Network SDK |
10114 | kMethodIDAccountShowAccountPicker | Display user list | Player Network SDK |
10115 | kMethodIDAccountCheckActiveUser | Check user availability | Player Network SDK |
10116 | kMethodIDAccountNeedRefreshUser | Refresh user | Player Network SDK |
10117 | kMethodIDAccountRequestVerifyCode | Get 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 accepting mail | 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 | Unlink | 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 | Get linking information | 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 deletion | Player Network SDK |
10201 | kMethodIDFriendShare | Share | Player Network SDK & MSDK |
10202 | kMethodIDFriendSendMessage | Send message | Player Network SDK & MSDK |
10203 | kMethodIDFriendQueryFriends | Get friends list | Player Network SDK & MSDK |
10204 | kMethodIDFriendAddFriend | MSDK | |
10301 | kMethodIDWebviewCloseURL | Close web page | Player Network SDK & MSDK |
10302 | kMethodIDWebviewGetEncryptUR | Get login state encryption 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 | Unregister push | Player Network SDK & MSDK |
10403 | kMethodIDPushSetTag | Register tag | Player Network SDK & MSDK |
10404 | kMethodIDPushDeleteTag | Unregister tag | Player Network SDK & MSDK |
10405 | kMethodIDPushAddLocalNotification | Register local push | Player Network SDK & MSDK |
10406 | kMethodIDPushClearLocalNotification | Clear local push | 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 notice data | Player Network SDK & MSDK |
10601 | kMethodIDToolsOpenDeepLink | Player Network SDK & MSDK | |
10603 | kMethodIDToolsCutoutInfo | Query asynchronous notched display information | Player Network SDK |
10604 | kMethodIDToolsFreeFlow | MSDK | |
10605 | kMethodIDToolsRecoverGuest | MSDK | |
10606 | kMethodIDToolsDetectNetwork | Network diagnosis (intl 1801) | Player Network SDK |
10607 | kMethodIDToolsDNSQueryIPByHost | DNS IP address query by host (intl 1401) | Player Network SDK |
10602 | kMethodIDToolsConvertShortURL | Player Network SDK & MSDK | |
10701 | kMethodIDAnalyticsCrashExtraMessage | Additional crash logs | Player Network SDK & MSDK |
10702 | kMethodIDAnalyticsQueryDeviceLevel | Query device level (intl 703) | Player Network SDK |
10703 | kMethodIDAnalyticsCrashExtraData | MSDK | |
11301 | kMethodIDExtendInvoke | Extended call | Player Network SDK & MSDK |