API/Autodoc/Classes/RuStoreGodotAppUpdateManager.en.md


class_name RuStoreGodotAppUpdateManager extends Object

The class implements an API for three update methods. Currently supported: deferred, silent (without RuStore UI), and forced updates.

Public Member Functions

static func get_instance() -> RuStoreGodotAppUpdateManager:
Get an instance of RuStoreGodotAppUpdateManager.
Returns a pointer to the single instance of RuStoreGodotAppUpdateManager (Singleton pattern implementation).
If the instance has not been created yet, creates it.
func register_listener() -> bool:
Registers a listener for the update download status.
Returns true if registration succeeds, otherwise false.
func unregister_listener() -> bool:
If the listener is no longer needed, use the listener removal method.
Returns true if the operation succeeds, otherwise false.
func get_app_update_info():
Checks for available updates.
func check_is_immediate_update_allowed() -> bool:
Checks whether forced update is available.
Returns true if forced update is available, otherwise false.
func start_update_flow_immediate():
Starts the app update download procedure.
func complete_update_silent():
Starts the update installation procedure.
Only two installation completion types can be passed to the method:
ERuStoreAppUpdateType.Item.FLEXIBLE and ERuStoreAppUpdateType.Item.SILENT.

Signals

signal on_get_app_update_info_success
Action performed when get_app_update_info completes successfully.
signal on_get_app_update_info_failure
Action performed on get_app_update_info error.
signal on_start_update_flow_success
Action performed when start_update_flow_* completes successfully.
signal on_start_update_flow_failure
Action performed on start_update_flow_* error.
signal on_complete_update_failure
Action performed on complete_update_* error.
signal on_state_updated
Update state callback.