Get Country Information Data (RequestIPInfo)
Get country information corresponding to the IP address, return callback result of FINTLLBSIPInfoResult.
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
static void RequestIPInfo();
Callback processing
The callback handler interface is LBSIPInfoResultObserver.
The callback data structure is LBSIPInfoResult.
Callback ID is kMethodIDLBSRequestIPInfo.
Code example
UINTLSDKAP::RequestIPInfo();