Get Country Information Data (RequestIPInfo)
Retrieve country information corresponding to the IP address, returning results as INTLLBSIPInfoResult callback.
Data source (https://www.ipip.net/accuracy.html) ensures data accuracy.
caution
- Due to factors in the data source, the conversion between IP and region is not 100% accurate.
- This API may fail to return result due to network jitter or other factors.It is not recommended to use it in critical game logic.Users must also consider the default adaptation strategy in case of failure.
- The conversion relationship between IP and region will default to change as data is updated in the IP database.If a fixed conversion relationship between IP and region is needed, please contact Player Network Assistant.
Function definition
public static void RequestIPInfo();
Callback processing
The callback handler interface is LBSIPInfoResultObserver.
The callback data structure is LBSIPInfoResult.
The callback ID is INTL_LBS_REQUEST_IPINFO.
Code example
INTLAPI.RequestIPInfo();