데이터 조회
원격으로 애플리케이션 제어를 위한 데이터를 조회합니다.
호출 정보
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 |