Skip to main content

UpdateConfig

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see UpdateConfig for Unreal Engine SDK.
caution

The sequence when the API is invoked is uncontrollable, and issues may happen with third-party SDK initializations. It is not recommended for games to use this API. Please reach out to the Player Network representative if it is really required.

UpdateConfig allows setting empty string values. When the key is set to an empty value, GetConfig will return empty and INTLConfig.ini will change the value to empty.

Function definition

public static bool UpdateConfigs(Dictionary<string, string> configsDic, string project = "INTL")

Input parameters

ParameterTypeDescription
configsDicDictionary<string, string>Configuration content
projectstringDefault parameters, keep unchanged

Code sample

Dictionary<string, string> config = new Dictionary<string, string>();
config.Add("LOG_LEVEL", "1");
INTLAPI.UpdateConfigs(config);