Skip to main content

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

MethodIDINTLMethodIDDescription
0METHODID_UNDEFINEUndefined
101INTL_AUTH_AUTOLOGINAutomatic login
102INTL_AUTH_LOGINAuthorized login
103INTL_AUTH_BINDLink
104INTL_AUTH_GET_AUTH_RESULTGet login state
106INTL_AUTH_QUERY_USER_INFOGet personal information
107INTL_AUTH_LOGOUTLogout
108INTL_AUTH_LOGIN_WITH_CONFIRM_CODELogin with confirmation code
109INTL_AUTH_WAKEUPWakeup account
111INTL_AUTH_RESET_GUESTReset guest account
112INTL_AUTH_QUERY_CAN_BINDQuery if linking is allowed
113INTL_AUTH_QUERY_ACTIVE_USERQuery available users
114INTL_AUTH_SHOW_ACCOUNT_PICKERDisplay user list
115INTL_AUTH_CHECK_ACTIVE_USERCheck user availability
116INTL_AUTH_NEED_REFRESH_USERRefresh user
117INTL_AUTH_REQUEST_VERIFY_CODEGet verification code
118INTL_AUTH_RESET_PASSWORDReset password
119INTL_AUTH_MODIFY_ACCOUNTModify account information
121INTL_AUTH_QUERY_REGISTER_STATUSGet registration status
122INTL_AUTH_QUERY_VERIFY_CODE_STATUSGet verification code status
123INTL_AUTH_QUERY_IS_RECEIVE_EMAILCheck if accepting email
124INTL_AUTH_REGISTERRegister account
125INTL_AUTH_MODIFY_PROFILEModify personal information
130INTL_AUTH_QUERY_TOKEN_IDQuery token ID
132INTL_AUTH_UNBINDUnlink
133INTL_AUTH_QUERY_USER_NAME_STATUSQuery username status
134INTL_AUTH_QUERY_DATA_PROTECTION_ACCEPTANCEQuery data protection acceptance
135INTL_AUTH_MODIFY_DATA_PROTECTION_ACCEPTANCEModify data protection acceptance
136INTL_AUTH_QUERY_ACCOUNT_PROFILEQuery account information
138INTL_AUTH_QUERY_LEGAL_DOCUMENTSQuery legal document information
139INTL_AUTH_MODIFY_LEGAL_DOCUMENTSModify legal document information
140INTL_AUTH_QUERY_BIND_INFOGet linking information
141INTL_AUTH_CANCEL_ACCOUNT_DELETIONCancel account deletion
144INTL_AUTH_GENERATE_TRANSFER_CODEGenerate transfer code
145INTL_AUTH_QUERY_TRANSFER_CODEQuery transfer code
146INTL_AUTH_TRANSFER_ACCOUNTTransfer account
147INTL_AUTH_REVOKE_CHANNEL_TOKENAPI for revoking channel token
153INTL_AUTH_QUERY_ACCOUNT_REGISTRATION_INFOCheck the status of the custom account and LI PASS registered by email/mobile phone
154INTL_AUTH_LOGIN_USING_PLUGIN_CACHELogin using cache
155INTL_AUTH_CHANGE_IS_RECEIVE_EMAILSet whether to accept mail
156INTL_AUTH_CANCEL_LI_ACCOUNT_DELETIONCancel LI PASS deletion
158INTL_AUTH_UPGRADE_SACC_TO_LIUpgrade account to LI PASS
159INTL_AUTH_GET_LI_UID_AND_TOKENObtain the account information of LI PASS
160INTL_AUTH_LOGIN_WITH_VERIFY_CODELogin with verify code
161INTL_AUTH_BIND_WITH_VERIFY_CODELink with verify code
162INTL_AUTH_BIND_USING_PLUGIN_CACHELink with plugin cache
163INTL_AUTH_AUTOLOGIN_FOR_LICustom LI PASS automatic login
164INTL_AUTH_LOGIN_FOR_LICustom LI PASS authorized login
165INTL_AUTH_QUERY_NEED_UPGRADE_AND_PROVISION_INFOQuery whether the custom account linked to the OpenID in the login state needs to be upgraded to an LI PASS
166INTL_AUTH_SET_PROVISIONSave the version of the terms the player agreed to
167INTL_AUTH_CANCEL_LOGINCancel Login
201INTL_FRIEND_SHAREShare
202INTL_FRIEND_SEND_MESSAGESend message
203INTL_FRIEND_QUERY_FRIENDSGet friend list
301INTL_WEBVIEW_CLOSE_URLClose webpage
302INTL_WEBVIEW_GET_ENCRYPT_URLGet login state encryption ticket
303INTL_WEBVIEW_JS_CALLNative call JS
401INTL_PUSH_REGISTERRegister push
402INTL_PUSH_UNREGISTERUnregister push
403INTL_PUSH_SET_TAGRegister tag
404INTL_PUSH_DELETE_TAGUnregister tag
405INTL_PUSH_ADD_LOCAL_NOTIFICATIONRegister local push
406INTL_PUSH_CLEAR_LOCAL_NOTIFICATIONSClear local push
407INTL_PUSH_NOTIFICATION_CALLBACKPush callback
412INTL_PUSH_DELETE_LOCAL_NOTIFICATIONSDelete local push
501INTL_NOTICE_REQUEST_DATAGet notice data
603INTL_CUTOUT_INFOQuery asynchronous notched display information
701INTL_ANALYTICS_CRASH_EXTRA_MESSAGEAdditional crash logs
703INTL_ANALYTICS_QUERY_DEVICE_LEVELQuery device level
704INTL_ANALYTICS_REQUEST_TRACKING_AUTHORIZATIONApply for tracking authorization
706INTL_ANALYTICS_REPORT_EVENTReport event
707INTL_ANALYTICS_REPORT_BINARYBinary report
708INTL_ANALYTICS_GET_INSTANCE_IDGet instance ID
709INTL_ANALYTICS_SET_DEVICE_LEVELSet device level
710INTL_ANALYTICS_GET_DEVICE_LEVELGet device level
711INTL_ANALYTICS_REPORT_LOGIN_STEPSteps of reporting login event
712INTL_ANALYTICS_REPORT_PAY_STEPSteps of reporting payment event
713INTL_ANALYTICS_REPORT_CUSTOM_EVENT_STEPSteps of reporting custom event
720INTL_ANALYTICS_REPORT_POST_FRAME_TIME_IN_SESSIONFrame time data report
721INTL_ANALYTICS_REPORT_MARK_SESSION_LOADSession start marker
722INTL_ANALYTICS_REPORT_SET_SESSION_EXTRA_PARAMAdd custom report content
724INTL_ANALYTICS_REPORT_MARK_SESSION_CLOSEDSession end marker
725INTL_ANALYTICS_REPORT_POST_NETWORK_LATENCY_IN_SESSIONGame logic network latency report
730INTL_ANALYTICS_REPORT_LOG_CRASH_INFOCustom log printing
731INTL_ANALYTICS_REPORT_SET_CRASH_USER_VALUESet key data
732INTL_ANALYTICS_REPORT_SET_CRASH_USER_IDSet reporting user ID
733INTL_ANALYTICS_REPORT_REPORT_EXCEPTIONReport exception information
901INTL_COMPLIANCE_SET_USER_PROFILESet user demographics
902INTL_COMPLIANCE_QUERY_USER_STATUSQuery minor information
903INTL_COMPLIANCE_SET_ADULTHOODSet if user is an adult
904INTL_COMPLIANCE_SET_EU_AGREE_STATUSSet EU region user data transmission protocol
905INTL_COMPLIANCE_SEND_EMAILSend parent consent verification email
906INTL_COMPLIANCE_COMMIT_BIRTHDAYSubmit user birth month/year
907INTL_COMPLIANCE_SET_PARENT_CERTIFICATE_STATUSSet parent consent verification status
908INTL_COMPLIANCE_QUERY_IS_EEAQuery if it is an EEA country
909INTL_COMPLIANCE_VERIFY_CREDIT_CARDOpen credit card verification page
916INTL_COMPLIANCE_VERIFY_REAL_NAMEOpen real-name verification page
919INTL_COMPLIANCE_VERIFY_PARENT_AND_CERTIFICATEOpen real-name verification page for parent
1201INTL_LBS_REQUEST_IPINFOGet region information for IP address
1301INTL_EXTEND_INVOKEExtended call
1401INTL_DNS_QUERY_IP_BY_HOSTDNS queries IP address by host
1801INTL_DETECT_NETWORKNetwork diagnostics
1802INTL_START_UDP_SOCKETStart UDP Socket
1804INTL_DETECT_GET_BEST_IPGet the best IP for network
1901INTL_GROUP_SHOW_AGREEMENT_WINDOWOpen the guild permission pop-up
1902INTL_GROUP_SHOW_ROOMOpen guild page
2001INTL_OBSERVER_ID_REQUEST_PERMISSION_RESULTRequest permission method ID
2002INTL_OBSERVER_ID_CHECK_PERMISSION_RESULTCheck permission method ID
2003INTL_OBSERVER_ID_GOTOSETTING_RESULTGo to system settings to configure method ID, with no data returned for iOS
2004INTL_OBSERVER_ID_TRACKINGREQUESTiOS requests ad tracking permission method ID
2005INTL_OBSERVER_ID_TRACKINGCHECKiOS checks ad tracking permission method ID
13100LI_LOGIN_ENTER_GAMECallback for successful login after OpenLoginPanel
13101LI_AUTOLOGIN_ENTER_GAMECallback for automatic login success/failure after AutoLogin
2303INTL_TRANSLATOR_TRANSLATETranslate Texts