본문으로 건너뛰기

데이터 조회

원격으로 애플리케이션 제어를 위한 데이터를 조회합니다.

호출 정보

RemoteConfig.Init(string tableCode, PlayNANOORemoteConfigCallback callback) {}

호출 상세 정보

파라미터설명타입
tableCode테이블 코드string
callback통신 결과PlayNANOORemoteConfigCallback

소스 코드

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");
}
});
}
}

변수 호출 정보

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);

변수 호출 상세 정보

파라미터설명타입
tableCode테이블 코드string
variableKey변수 키string
{DEFULAT_VALUE}기본 값object