Query Data
Queries data for remote control of the application.
Call Information
RemoteConfig.Init(string tableCode, PlayNANOORemoteConfigCallback callback) {}
Call Information Details
Parameter | Description | Type |
---|---|---|
tableCode | Table Code | string |
callback | Communication result | PlayNANOORemoteConfigCallback |
Source Code
using PlayNANOO;
public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;
void Awake()
{
plugin = Plugin.GetInstance();
plugin.RemoteConfig.Init("tableCode", (isSuccess) => {
if (isSuccess)
{
Debug.Log(plugin.RemoteConfig.GetString("tableCode", "variableKey", "defaultValue"));
Debug.Log(plugin.RemoteConfig.GetJson("tableCode", "variableKey", "defaultValue"));
Debug.Log(plugin.RemoteConfig.GetInteger("tableCode", "variableKey", 0));
Debug.Log(plugin.RemoteConfig.GetFloat("tableCode", "variableKey", 0));
Debug.Log(plugin.RemoteConfig.GetDouble("tableCode", "variableKey", 0));
Debug.Log(plugin.RemoteConfig.GetBool("tableCode", "variableKey", true));
}
else
{
Debug.Log("Fail");
}
});
}
}
Variable Call Information
RemoteConfig.GetString(string tableCode, string variableKey);
RemoteConfig.GetString(string tableCode, string variableKey, string defaultValue);
RemoteConfig.GetJson(string tableCode, string variableKey);
RemoteConfig.GetJson(string tableCode, string variableKey, string defaultValue);
RemoteConfig.GetInteger(string tableCode, string variableKey);
RemoteConfig.GetInteger(string tableCode, string variableKey, integer defaultValue);
RemoteConfig.GetFloat(string tableCode, string variableKey);
RemoteConfig.GetFloat(string tableCode, string variableKey, float defaultValue);
RemoteConfig.GetDouble(string tableCode, string variableKey);
RemoteConfig.GetDouble(string tableCode, string variableKey, double defaultValue);
RemoteConfig.GetBool(string tableCode, string variableKey);
RemoteConfig.GetBool(string tableCode, string variableKey, double defaultValue);
Variable Call Information Details
Parameter | Description | Type |
---|---|---|
tableCode | Table Code | string |
variableKey | Variable key | string |
{DEFULAT_VALUE} | Default value | object |