Tools
Dynamically Update INTLConfig
- Set the
GAME_ID
andSDK_KEY
in versions after SDK V1.10. - The Unity API for updating configurations dynamically is
UpdateConfigs
, and the Unreal Engine API for updating configurations dynamically isUpdateConfig
.
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:
- Unity
- Unreal Engine
API | Function |
---|---|
AddCutoutInfoObserver | Registers the CutoutInfoResult callback of the Player Network SDK Notched Display module. Use it to manage the LoadCutoutData interface callback. |
RemoveCutoutInfoObserver | Unregisters the CutoutInfoResult callback. |
AddLBSIPInfoResultObserver | Registers the LBSIPInfoResult callback of the LBS module. Use it to manage the RequestIPInfo interface callback. |
RemoveLBSIPInfoResultObserver | Unregisters the LBSIPInfoResult callback. |
AddTranslatorResultObserver | Registers TranslatorResult callback. Use it to manage the Translate interface callback. |
RemoveTranslatorResultObserver | Unregisters TranslatorResult callback. |
API | Function |
---|---|
SetCutoutInfoObserver | Sets the CutoutInfoResult callback for the Player Network SDK Notched Display module. |
GetCutoutInfoObserver | Gets the CutoutInfoResult callback. |
OnCutoutResult_Implementation | Implements the CutoutInfoResult callback for the LoadCutoutData interface. |
SetLBSIPInfoResultObserver | Sets the LBSIPInfoResult callback for the LBS module. |
GetLBSIPInfoResultObserver | Gets the LBSIPInfoResult callback. |
OnIPInfoResult_Implementation | Implements the LBSIPInfoResult callback for the RequestIPInfo interface. |
SetTranslatorResultObserver | Sets the TranslatorResult callback. |
GetTranslatorResultObserver | Gets the TranslatorResult callback. |
OnTranslatorResult_Implementation | Implements the Translate 接口的 TranslatorResult callback. |
Tools API
For general information about Player Network SDK Tools APIs, see:
- Unity
- Unreal Engine
API | Function |
---|---|
IsAppInstalled | Checks if a specific app is installed. |
GetBatteryLevel | Gets the battery level information. |
GetConfig | Obtains 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. |
UpdateConfigs | Updates configurations. |
LoadCutoutData | After the screen is rotated, information about the notched display must be called again. |
GetStoreChannel | Gets information about the store channel configuration. |
RequestIPInfo | Gets the corresponding country information of an IP address, and returns INTLLBSIPInfoResult in the callback result. |
Translate | Translate text,and returns INTLTranslatorResult in the callback result. |
API | Function |
---|---|
IsAppInstalled | Checks if a specific app is installed. |
GetConfig | Obtains 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. |
UpdateConfig | Updates configurations. |
LoadCutoutData | After the screen is rotated, information about the notched display must be called again. |
GetStoreChannel | Gets information about the store channel configuration. |
RequestIPInfo | Gets the corresponding country information of an IP address, and returns FINTLLBSIPInfoResult in the callback result. |
Translate | Translate text,and returns FINTLTranslatorResult in the callback result. |