Unity SDK API Reference
The client API references provide detailed information for the data structures and methods in Player Network SDK, which contains a wide range of function modules to support the game account system and game operations. Choose the required module from the left sidebar to view the list of available APIs. Use the following list to find the method ID for the respective API.
Method names
MethodID | INTLMethodID | Description |
---|---|---|
0 | METHODID_UNDEFINE | Undefined |
101 | INTL_AUTH_AUTOLOGIN | Automatic login |
102 | INTL_AUTH_LOGIN | Authorized login |
103 | INTL_AUTH_BIND | Link |
104 | INTL_AUTH_GET_AUTH_RESULT | Get login state |
106 | INTL_AUTH_QUERY_USER_INFO | Get personal information |
107 | INTL_AUTH_LOGOUT | Logout |
108 | INTL_AUTH_LOGIN_WITH_CONFIRM_CODE | Login with confirmation code |
109 | INTL_AUTH_WAKEUP | Wakeup account |
111 | INTL_AUTH_RESET_GUEST | Reset guest account |
112 | INTL_AUTH_QUERY_CAN_BIND | Query if linking is allowed |
113 | INTL_AUTH_QUERY_ACTIVE_USER | Query available users |
114 | INTL_AUTH_SHOW_ACCOUNT_PICKER | Display user list |
115 | INTL_AUTH_CHECK_ACTIVE_USER | Check user availability |
116 | INTL_AUTH_NEED_REFRESH_USER | Refresh user |
117 | INTL_AUTH_REQUEST_VERIFY_CODE | Get verification code |
118 | INTL_AUTH_RESET_PASSWORD | Reset password |
119 | INTL_AUTH_MODIFY_ACCOUNT | Modify account information |
121 | INTL_AUTH_QUERY_REGISTER_STATUS | Get registration status |
122 | INTL_AUTH_QUERY_VERIFY_CODE_STATUS | Get verification code status |
123 | INTL_AUTH_QUERY_IS_RECEIVE_EMAIL | Check if accepting email |
124 | INTL_AUTH_REGISTER | Register account |
125 | INTL_AUTH_MODIFY_PROFILE | Modify personal information |
130 | INTL_AUTH_QUERY_TOKEN_ID | Query token ID |
132 | INTL_AUTH_UNBIND | Unlink |
133 | INTL_AUTH_QUERY_USER_NAME_STATUS | Query username status |
134 | INTL_AUTH_QUERY_DATA_PROTECTION_ACCEPTANCE | Query data protection acceptance |
135 | INTL_AUTH_MODIFY_DATA_PROTECTION_ACCEPTANCE | Modify data protection acceptance |
136 | INTL_AUTH_QUERY_ACCOUNT_PROFILE | Query account information |
138 | INTL_AUTH_QUERY_LEGAL_DOCUMENTS | Query legal document information |
139 | INTL_AUTH_MODIFY_LEGAL_DOCUMENTS | Modify legal document information |
140 | INTL_AUTH_QUERY_BIND_INFO | Get linking information |
141 | INTL_AUTH_CANCEL_ACCOUNT_DELETION | Cancel account deletion |
144 | INTL_AUTH_GENERATE_TRANSFER_CODE | Generate transfer code |
145 | INTL_AUTH_QUERY_TRANSFER_CODE | Query transfer code |
146 | INTL_AUTH_TRANSFER_ACCOUNT | Transfer account |
147 | INTL_AUTH_REVOKE_CHANNEL_TOKEN | API for revoking channel token |
153 | INTL_AUTH_QUERY_ACCOUNT_REGISTRATION_INFO | Check the status of the custom account and LI PASS registered by email/mobile phone |
154 | INTL_AUTH_LOGIN_USING_PLUGIN_CACHE | Login using cache |
155 | INTL_AUTH_CHANGE_IS_RECEIVE_EMAIL | Set whether to accept mail |
156 | INTL_AUTH_CANCEL_LI_ACCOUNT_DELETION | Cancel LI PASS deletion |
158 | INTL_AUTH_UPGRADE_SACC_TO_LI | Upgrade account to LI PASS |
159 | INTL_AUTH_GET_LI_UID_AND_TOKEN | Obtain the account information of LI PASS |
160 | INTL_AUTH_LOGIN_WITH_VERIFY_CODE | Login with verify code |
161 | INTL_AUTH_BIND_WITH_VERIFY_CODE | Link with verify code |
162 | INTL_AUTH_BIND_USING_PLUGIN_CACHE | Link with plugin cache |
163 | INTL_AUTH_AUTOLOGIN_FOR_LI | Custom LI PASS automatic login |
164 | INTL_AUTH_LOGIN_FOR_LI | Custom LI PASS authorized login |
165 | INTL_AUTH_QUERY_NEED_UPGRADE_AND_PROVISION_INFO | Query whether the custom account linked to the OpenID in the login state needs to be upgraded to an LI PASS |
166 | INTL_AUTH_SET_PROVISION | Save the version of the terms the player agreed to |
167 | INTL_AUTH_CANCEL_LOGIN | Cancel Login |
201 | INTL_FRIEND_SHARE | Share |
202 | INTL_FRIEND_SEND_MESSAGE | Send message |
203 | INTL_FRIEND_QUERY_FRIENDS | Get friend list |
301 | INTL_WEBVIEW_CLOSE_URL | Close webpage |
302 | INTL_WEBVIEW_GET_ENCRYPT_URL | Get login state encryption ticket |
303 | INTL_WEBVIEW_JS_CALL | Native call JS |
401 | INTL_PUSH_REGISTER | Register push |
402 | INTL_PUSH_UNREGISTER | Unregister push |
403 | INTL_PUSH_SET_TAG | Register tag |
404 | INTL_PUSH_DELETE_TAG | Unregister tag |
405 | INTL_PUSH_ADD_LOCAL_NOTIFICATION | Register local push |
406 | INTL_PUSH_CLEAR_LOCAL_NOTIFICATIONS | Clear local push |
407 | INTL_PUSH_NOTIFICATION_CALLBACK | Push callback |
412 | INTL_PUSH_DELETE_LOCAL_NOTIFICATIONS | Delete local push |
501 | INTL_NOTICE_REQUEST_DATA | Get notice data |
603 | INTL_CUTOUT_INFO | Query asynchronous notched display information |
701 | INTL_ANALYTICS_CRASH_EXTRA_MESSAGE | Additional crash logs |
703 | INTL_ANALYTICS_QUERY_DEVICE_LEVEL | Query device level |
704 | INTL_ANALYTICS_REQUEST_TRACKING_AUTHORIZATION | Apply for tracking authorization |
706 | INTL_ANALYTICS_REPORT_EVENT | Report event |
707 | INTL_ANALYTICS_REPORT_BINARY | Binary report |
708 | INTL_ANALYTICS_GET_INSTANCE_ID | Get instance ID |
709 | INTL_ANALYTICS_SET_DEVICE_LEVEL | Set device level |
710 | INTL_ANALYTICS_GET_DEVICE_LEVEL | Get device level |
711 | INTL_ANALYTICS_REPORT_LOGIN_STEP | Steps of reporting login event |
712 | INTL_ANALYTICS_REPORT_PAY_STEP | Steps of reporting payment event |
713 | INTL_ANALYTICS_REPORT_CUSTOM_EVENT_STEP | Steps of reporting custom event |
720 | INTL_ANALYTICS_REPORT_POST_FRAME_TIME_IN_SESSION | Frame time data report |
721 | INTL_ANALYTICS_REPORT_MARK_SESSION_LOAD | Session start marker |
722 | INTL_ANALYTICS_REPORT_SET_SESSION_EXTRA_PARAM | Add custom report content |
724 | INTL_ANALYTICS_REPORT_MARK_SESSION_CLOSED | Session end marker |
725 | INTL_ANALYTICS_REPORT_POST_NETWORK_LATENCY_IN_SESSION | Game logic network latency report |
730 | INTL_ANALYTICS_REPORT_LOG_CRASH_INFO | Custom log printing |
731 | INTL_ANALYTICS_REPORT_SET_CRASH_USER_VALUE | Set key data |
732 | INTL_ANALYTICS_REPORT_SET_CRASH_USER_ID | Set reporting user ID |
733 | INTL_ANALYTICS_REPORT_REPORT_EXCEPTION | Report exception information |
901 | INTL_COMPLIANCE_SET_USER_PROFILE | Set user demographics |
902 | INTL_COMPLIANCE_QUERY_USER_STATUS | Query minor information |
903 | INTL_COMPLIANCE_SET_ADULTHOOD | Set if user is an adult |
904 | INTL_COMPLIANCE_SET_EU_AGREE_STATUS | Set EU region user data transmission protocol |
905 | INTL_COMPLIANCE_SEND_EMAIL | Send parent consent verification email |
906 | INTL_COMPLIANCE_COMMIT_BIRTHDAY | Submit user birth month/year |
907 | INTL_COMPLIANCE_SET_PARENT_CERTIFICATE_STATUS | Set parent consent verification status |
908 | INTL_COMPLIANCE_QUERY_IS_EEA | Query if it is an EEA country |
909 | INTL_COMPLIANCE_VERIFY_CREDIT_CARD | Open credit card verification page |
916 | INTL_COMPLIANCE_VERIFY_REAL_NAME | Open real-name verification page |
919 | INTL_COMPLIANCE_VERIFY_PARENT_AND_CERTIFICATE | Open real-name verification page for parent |
1201 | INTL_LBS_REQUEST_IPINFO | Get region information for IP address |
1301 | INTL_EXTEND_INVOKE | Extended call |
1401 | INTL_DNS_QUERY_IP_BY_HOST | DNS queries IP address by host |
1801 | INTL_DETECT_NETWORK | Network diagnostics |
1802 | INTL_START_UDP_SOCKET | Start UDP Socket |
1804 | INTL_DETECT_GET_BEST_IP | Get the best IP for network |
1901 | INTL_GROUP_SHOW_AGREEMENT_WINDOW | Open the guild permission pop-up |
1902 | INTL_GROUP_SHOW_ROOM | Open guild page |
2001 | INTL_OBSERVER_ID_REQUEST_PERMISSION_RESULT | Request permission method ID |
2002 | INTL_OBSERVER_ID_CHECK_PERMISSION_RESULT | Check permission method ID |
2003 | INTL_OBSERVER_ID_GOTOSETTING_RESULT | Go to system settings to configure method ID, with no data returned for iOS |
2004 | INTL_OBSERVER_ID_TRACKINGREQUEST | iOS requests ad tracking permission method ID |
2005 | INTL_OBSERVER_ID_TRACKINGCHECK | iOS checks ad tracking permission method ID |
13100 | LI_LOGIN_ENTER_GAME | Callback for successful login after OpenLoginPanel |
13101 | LI_AUTOLOGIN_ENTER_GAME | Callback for automatic login success/failure after AutoLogin |
2303 | INTL_TRANSLATOR_TRANSLATE | Translate Texts |