API/Autodoc/Classes/RuStoreGodotRemoteConfigClient.en.md


RuStoreGodotRemoteConfigClient

class_name RuStoreGodotRemoteConfigClient extends Object

The class implements an API for retrieving data configuration from a remote server. It encapsulates the configuration request from the server, caching, and background update.

Public Member Functions

static func get_instance() -> RuStoreGodotRemoteConfigClient:
Get an instance of RuStoreGodotRemoteConfigClient.
Returns a reference to the only instance of RuStoreGodotRemoteConfigClient (Singleton pattern implementation).
If the instance has not been created yet, it creates one.
func setAccount(value: String):
Sets the Account parameter, which can be used to obtain the specified configuration.
value — The value of the Account parameter.
func get_account() -> String:
Gets the currently set Account parameter.
The value of the Account parameter.
func setLanguage(value: String):
Sets the Language parameter, which can be used to obtain the specified configuration.
value — The value of the Language parameter.
func get_language() -> String:
Gets the currently set Language parameter.
The value of the Language parameter.
func get_remote_config():
Retrieves the data configuration depending on the update policy selected during initialization.
func get_short_segments():
Retrieves short segments of the data configuration.

Properties

var isInitialized: bool = false
Returns true if the singleton is initialized, otherwise false.

Signals

signal on_get_remote_config_success
Action performed when get_remote_config completes successfully.
signal on_get_remote_config_failure
Action performed when get_remote_config fails.
signal on_get_short_segments_success
Action performed when get_short_segments completes successfully. The value may be null.
signal on_get_short_segments_failure
Action performed when get_short_segments fails.
signal on_rustore_background_job_errors
Returns a background job error.
signal on_rustore_first_load_complete
Called when the first load is complete.
signal on_rustore_init_complete
Called at the end of initialization.
signal on_rustore_memory_cache_updated
Called when the in-memory cache is updated.
signal on_rustore_persistent_storage_updated
Called when the persistent storage changes.
signal on_rustore_remote_config_network_request_failure
Called when a Remote Config network request error occurs.