Class RuntimeConfig
This class represents a single runtime settings configuration. Access its methods and properties via the ConfigManager.appConfig
wrapper.
Namespace: Unity.RemoteConfig
Syntax
public class RuntimeConfig
Properties
Name | Description |
---|---|
assignmentID | The Remote Config service generates this unique ID on configuration requests, for reporting and analytic purposes. Returns null if there is no assignmentId yet. |
config | Returns a copy of the entire config as a JObject. |
environmentID | The Environment ID that has been returned by the Remote Config Delivery service. |
origin | Retrieves the origin point from which your configuration settings loaded. |
Methods
Name | Description |
---|---|
GetBool(String, Boolean) | Retrieves the boolean value of a corresponding key, if one exists. |
GetFloat(String, Single) | Retrieves the float value of a corresponding key from the remote service, if one exists. |
GetInt(String, Int32) | Retrieves the int value of a corresponding key, if one exists. |
GetJson(String, String) | Retrieves the string representation of the JSON value of a corresponding key from the remote service, if one exists. |
GetKeys() | Returns all keys in your remote settings, as an array. |
GetLong(String, Int64) | Retrieves the long value of a corresponding key from the remote service, if one exists. |
GetString(String, String) | Retrieves the string value of a corresponding key from the remote service, if one exists. |
HasKey(String) | Checks if a corresponding key exists in your remote settings. |