Class RemoteConfigDataStore
Inherited Members
Namespace: Unity.RemoteConfig.Editor
Syntax
public class RemoteConfigDataStore : ScriptableObject, ISerializationCallbackReceiver
Fields
Name | Description |
---|---|
_environments | Property for list of environments to be serialized |
_rsKeyList | Property for list of keys to be serialized |
_rsLastCachedKeyList | Property for last cached list of keys to be serialized |
rsTypes | A list of all supported types for keys |
Properties
Name | Description |
---|---|
config | Property with corresponding accessors for the config |
configId | Property with corresponding accessors for configId |
currentEnvironmentId | Property with corresponding accessors for current Environment Id |
currentEnvironmentIsDefault | Property with corresponding accessors for current Environment being default |
currentEnvironmentName | Property with corresponding accessors for current Environment Name |
dataStoreStatus | Property with corresponding accessors depicting status of data store |
environments | Property with corresponding accessors for list of environments |
rsKeyList | Property with corresponding accessors for list of keys |
rsLastCachedKeyList | Property with corresponding accessors for list of last cached keys |
settingsCount | Property for count of settings (keys) in config |
Methods
Name | Description |
---|---|
AddSetting(JObject) | Adds a setting to the Remote Settings data store. This will add the setting to the rsKeyList. |
CheckEnvironmentsValid() | Checks if set of environments is valid. There must be exactly one default environment. |
DeleteSetting(String) | Deletes a setting from the Remote Settings data store. This will delete the setting from the rsKeyList. |
OnAfterDeserialize() | Deserializes corresponding strings into JObjects |
OnBeforeSerialize() | Serializes corresponding JObjects into strings |
RestoreLastSelectedEnvironment(String) | Returns the name of the last selected environment that is stored in EditorPrefs. |
SetCurrentEnvironment(JObject) | Sets the the current environment ID name. |
SetDefaultEnvironment(String) | Sets the default environment. |
SetLastSelectedEnvironment(String) | Sets the name of the last selected environment and stores it in EditorPrefs. |
UpdateSetting(JObject, JObject) | Updates a setting in the Remote Settings data store. This will update the setting in the rsKeyList. |
Events
Name | Description |
---|---|
EnvironmentChanged | Declaration of event triggered after action of changed environment is performed |
RemoteSettingDataStoreChanged | Declaration of event triggered after action of changed RemoteSettingDataStore is performed |