Skip to main content

Tools

Dynamically Update INTLConfig

caution
  1. Set the GAME_ID and SDK_KEY in versions after SDK V1.10.
  2. The Unity API for updating configurations dynamically is UpdateConfigs, and the Unreal Engine API for updating configurations dynamically is UpdateConfig.

After SDK initialization, dynamically overwrite the INTLConfig.ini configuration file, and the updated configuration will take effect from the next launch.

If there are changes to INTL_URL, GAME_ID, and SDK_KEY, call UpdateConfig to dynamically update the configurations after the game launches and before player login to sync the changes. At the same time, to ensure that these key configuration items are set correctly, use GetConfig to check that the configuration is correct each time the app is launched. If the updated configuration is not correct, call UpdateConfig to dynamically update configuration to set the correct values.

For more information, reach our to the Player Network representative.

Client APIs

Observer

For general information about Player Network SDK Tools Callback APIs, see:

APIFunction
AddCutoutInfoObserverRegisters the CutoutInfoResult callback of the Player Network SDK Notched Display module. Use it to manage the LoadCutoutData interface callback.
RemoveCutoutInfoObserverUnregisters the CutoutInfoResult callback.
AddLBSIPInfoResultObserverRegisters the LBSIPInfoResult callback of the LBS module. Use it to manage the RequestIPInfo interface callback.
RemoveLBSIPInfoResultObserverUnregisters the LBSIPInfoResult callback.
AddTranslatorResultObserverRegisters TranslatorResult callback. Use it to manage the Translate interface callback.
RemoveTranslatorResultObserverUnregisters TranslatorResult callback.

Tools API

For general information about Player Network SDK Tools APIs, see:

APIFunction
IsAppInstalledChecks if a specific app is installed.
GetBatteryLevelGets the battery level information.
GetConfigObtains configuration values dynamically.
If the value of a key is not successfully set by calling UpdateConfig, the configuration in the INI file will be returned.
Otherwise, the value that is set dynamically will be returned.
UpdateConfigsUpdates configurations.
LoadCutoutDataAfter the screen is rotated, information about the notched display must be called again.
GetStoreChannelGets information about the store channel configuration.
RequestIPInfoGets the corresponding country information of an IP address, and returns INTLLBSIPInfoResult in the callback result.
TranslateTranslate text,and returns INTLTranslatorResult in the callback result.