API/Autodoc/Classes/URuStoreAppUpdateManager.en.md


URuStoreAppUpdateManager

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

#include <URuStoreAppUpdateManager.h>

Inherits from UObject, IRuStoreInstallStateUpdateListenerInterface, RuStoreSDK::RuStoreListenerContainer

Public Functions

Name
bool GetIsInitialized()
Check the initialization of the manager.
void SetAllowNativeErrorHandling(bool value)
Error handling in the native SDK.
bool Init()
Performs initialization of the singleton URuStoreAppUpdateManager.
void Dispose()
Deinitialization of the singleton if further work with the object is no longer planned.
void ConditionalBeginDestroy()
long GetAppUpdateInfo(TFunction< void(long, TSharedPtr< FURuStoreAppUpdateInfo, ESPMode::ThreadSafe >)> onSuccess, TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure)
Performs a check for updates.
long StartUpdateFlow(EURuStoreAppUpdateOptions appUpdateOptions, TFunction< void(long, EURuStoreUpdateFlowResult)> onSuccess, TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure)
Starts the application update download procedure.
long CompleteUpdate(EURuStoreAppUpdateOptions appUpdateOptions, TFunction< void(long, TSharedPtr< FURuStoreError, ESPMode::ThreadSafe >)> onFailure)
Starts the update installation procedure.
bool CheckIsImmediateUpdateAllowed()
Checks the availability of a forced update.
int64 RegisterListener(TScriptInterface< IRuStoreInstallStateUpdateListenerInterface > stateListener)
Registers a listener for the update download status.
bool UnregisterListener(TScriptInterface< IRuStoreInstallStateUpdateListenerInterface > stateListener)
If the listener is no longer needed, use the UnregisterListener() method to remove the listener, passing the previously registered listener to the method.
void GetAppUpdateInfo(int64 & requestId)
void StartUpdateFlow(int64 & requestId, EURuStoreAppUpdateOptions appUpdateOptions)
void CompleteUpdate(int64 & requestId, EURuStoreAppUpdateOptions appUpdateOptions)
void OnStateUpdated_Implementation(int64 listenerId, FURuStoreInstallState & state) override
URuStoreAppUpdateManager * Instance()
Get an instance of URuStoreAppUpdateManager.

Public Attributes

Name
const FString PluginVersion — Plugin version.
FRuStoreGetAppUpdateInfoErrorDelegate OnGetAppUpdateInfoError
FRuStoreGetAppUpdateInfoResponseDelegate OnGetAppUpdateInfoResponse
FRuStoreStartUpdateFlowErrorDelegate OnStartUpdateFlowError
FRuStoreStartUpdateFlowResponseDelegate OnStartUpdateFlowResponse
FRuStoreCompleteUpdateErrorDelegate OnCompleteUpdateError
FRuStoreOnStateUpdatedInstanceDelegate OnStateUpdatedInstanceEvent

Additional inherited members

Public Functions inherited from IRuStoreInstallStateUpdateListenerInterface

Name
void OnStateUpdated(int64 listenerId, FURuStoreInstallState & state)
Handler for the update installation callback.

Public Functions inherited from RuStoreSDK::RuStoreListenerContainer

Name
TSharedPtr< RuStoreListener, ESPMode::ThreadSafe > ListenerBind(RuStoreListener * item)
void ListenerUnbind(long id)
void ListenerUnbind(RuStoreListener * item)
void ListenerUnbind(TSharedPtr< RuStoreListener, ESPMode::ThreadSafe > item)
void ListenerRemoveAll()
Назад