Class RemoteConfigWebApiClient
This is a utility class for Remote Config to handle all Remote Config CRUD operations.
Inherited Members
Namespace: Unity.RemoteConfig .Editor
Assembly: Unity.RemoteConfig.Editor.dll
Syntax
public static class RemoteConfigWebApiClient
Properties
Name | Description |
---|---|
web |
Checks if there are any unfinished web requests. Returns true if all web requests are done. |
Methods
Name | Description |
---|---|
Delete |
Sends a DELETE request to delete aconfig. |
Fetch |
Fetches all configs for the given environment ID. |
Fetch |
Fetches default environment for the current project. |
Fetch |
Fetches all environments for the current project. |
Fetch |
Fetches all schemas for the given config ID. |
Post |
Pushes a new config to the server in the given environment. |
Put |
Pushes updates to the given existing config to the server for the given environment. |
Events
Name | Description |
---|---|
fetch |
Action upon fetching config finishes. Passes config object. |
fetch |
Action upon fetching default environment. Passes default environment id. |
fetch |
Action upon fetching of environments is finished. Passes an array of environments. |
fetch |
Action upon fetching schemas finishes. Passes schemas object. |
post |
Action upon posting config (_PostConfig) request finishes. Passes configId. |
rc |
Action upon request fails. Passes request.responseCode, request.error. |
settings |
Action upon updating config (_PutConfig) request finishes. |