API/Autodoc/Classes/RuStore.AppUpdate.RuStoreAppUpdateManager.en.md
Public Functions
| Name | |
|---|---|
| bool | Init() Initializes the RuStoreAppUpdateManager singleton. |
| void | GetAppUpdateInfo(Action< RuStoreError > onFailure, Action< AppUpdateInfo > onSuccess) Checks for updates. |
| void | RegisterListener(IInstallStateUpdateListener listener) Registers a listener for the update download status. |
| void | UnregisterListener(IInstallStateUpdateListener listener) If the listener is no longer needed, use the UnregisterListener() method to remove it, passing the previously registered listener to the method. |
| void | StartUpdateFlow(UpdateType updateType, Action< RuStoreError > onFailure, Action< UpdateFlowResult > onSuccess) Launches the application update download procedure. |
| bool | IsImmediateUpdateAllowed() Checks whether a forced update is available. |
| void | CompleteUpdate(UpdateType updateType, Action< RuStoreError > onFailure) Launches the update installation procedure. Only two types of update completion can be passed to the method: RuStore.AppUpdate.UpdateType.FLEXIBLE and RuStore.AppUpdate.UpdateType.SILENT. |
Public Properties
| Name | |
|---|---|
| bool | IsInitialized — Returns true if the singleton has been initialized, otherwise returns false. |
| RuStoreAppUpdateManager | Instance — Returns the single instance of RuStoreAppUpdateManager (Singleton pattern implementation). If the instance has not been created yet, creates it. |
Public Attributes
| Name | |
|---|---|
| string | PluginVersion — Plugin version. |
function Init
bool Init()
Initializes the RuStoreAppUpdateManager singleton.
Return: Returns true if initialization was successful, otherwise returns false.
bool isInitialized = RuStoreAppUpdateManager.Instance.Init();
Filename: public_bool_Init.cs
function GetAppUpdateInfo
void GetAppUpdateInfo(
Action< RuStoreError > onFailure,
Action< AppUpdateInfo > onSuccess
)
Checks for updates.
Parameters:
- onFailure Action performed in case of an error. Returns a RuStore.RuStoreError object with error information.
- onSuccess Action performed on successful completion of the operation. Returns a RuStore.AppUpdate.AppUpdateInfo object with information about the need for an update.
RuStoreAppUpdateManager.Instance.GetAppUpdateInfo(
onFailure: (error) => {
// Process error
},
onSuccess: (info) => {
// Process update info
}
);
Filename: public_void_GetAppUpdateInfo.cs
function RegisterListener
void RegisterListener(
IInstallStateUpdateListener listener
)
Registers a listener for the update download status.
Parameters:
- listener An object of a class that implements the RuStore.AppUpdate.Internal.IInstallStateUpdateListener interface.
RuStoreAppUpdateManager.Instance.RegisterListener(listener);
Filename: public_void_RegisterListener.cs
function UnregisterListener
void UnregisterListener(
IInstallStateUpdateListener listener
)
If the listener is no longer needed, use the UnregisterListener() method to remove it, passing the previously registered listener to the method.
Parameters:
- listener An object of a class that implements the RuStore.AppUpdate.Internal.IInstallStateUpdateListener interface.
RuStoreAppUpdateManager.Instance.UnregisterListener(listener);
Filename: public_void_UnregisterListener.cs
function StartUpdateFlow
void StartUpdateFlow(
UpdateType updateType,
Action< RuStoreError > onFailure,
Action< UpdateFlowResult > onSuccess
)
Launches the application update download procedure.
Parameters:
- updateType The type of the update download procedure.
- onFailure Action performed in case of an error. Returns a RuStore.RuStoreError object with error information.
- onSuccess Action performed on successful completion of the operation. Returns a RuStore.AppUpdate.RuStore.UpdateFlowResult object with information about the result of the update operation.
RuStoreAppUpdateManager.Instance.StartUpdateFlow(
updateType: UpdateType.Flexible,
onFailure: (error) => {
},
onSuccess: (result) => {
}
);
Filename: public_void_StartUpdateFlow.cs
function IsImmediateUpdateAllowed
bool IsImmediateUpdateAllowed()
Checks whether a forced update is available.
Return: Returns true if a forced update is available, otherwise returns false.
bool isAllowed = RuStoreAppUpdateManager.Instance.IsImmediateUpdateAllowed();
Filename: public_bool_IsImmediateUpdateAllowed.cs
function CompleteUpdate
void CompleteUpdate(
UpdateType updateType,
Action< RuStoreError > onFailure
)
Parameters:
- updateType The type of the update completion procedure.
- onFailure Action performed in case of an error. Returns a RuStore.RuStoreError object with error information.
RuStoreAppUpdateManager.Instance.CompleteUpdate(
updateType: UpdateType.FLEXIBLE,
onFailure: (error) => {
// Process error
}
);
Filename: public_void_CompleteUpdate.cs
property IsInitialized
bool IsInitialized;
Returns true if the singleton has been initialized, otherwise returns false.
property Instance
static RuStoreAppUpdateManager Instance;
Returns the single instance of RuStoreAppUpdateManager (Singleton pattern implementation). If the instance has not been created yet, creates it.
var instance = RuStoreAppUpdateManager.Instance;
Filename: public_static_RuStoreAppUpdateManager_Instance.cs
variable PluginVersion
static string PluginVersion = "10.5.1";
Plugin version.
- Страницы
- RuStore.AppUpdate.AppUpdateInfo.en
- RuStore.AppUpdate.AppUpdateInfo
- RuStore.AppUpdate.IInstallStateUpdateListener.en
- RuStore.AppUpdate.IInstallStateUpdateListener
- RuStore.AppUpdate.InstallState.en
- RuStore.AppUpdate.InstallState
- RuStore.AppUpdate.Internal.AppUpdateErrorListener.en
- RuStore.AppUpdate.Internal.AppUpdateErrorListener
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener.en
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener
- RuStore.AppUpdate.Internal.InstallStateUpdateListener.en
- RuStore.AppUpdate.Internal.InstallStateUpdateListener
- RuStore.AppUpdate.Internal.UpdateFlowResultListener.en
- RuStore.AppUpdate.Internal.UpdateFlowResultListener
- RuStore.AppUpdate.RuStoreAppUpdateManager.en
- RuStore.AppUpdate.RuStoreAppUpdateManager
- RuStore.AppUpdate.AppUpdateInfo.en
- RuStore.AppUpdate.AppUpdateInfo
- RuStore.AppUpdate.IInstallStateUpdateListener.en
- RuStore.AppUpdate.IInstallStateUpdateListener
- RuStore.AppUpdate.InstallState.en
- RuStore.AppUpdate.InstallState
- RuStore.AppUpdate.Internal.AppUpdateErrorListener.en
- RuStore.AppUpdate.Internal.AppUpdateErrorListener
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener.en
- RuStore.AppUpdate.Internal.AppUpdateInfoResponseListener
- RuStore.AppUpdate.Internal.InstallStateUpdateListener.en
- RuStore.AppUpdate.Internal.InstallStateUpdateListener
- RuStore.AppUpdate.Internal.UpdateFlowResultListener.en
- RuStore.AppUpdate.Internal.UpdateFlowResultListener
- RuStore.AppUpdate.RuStoreAppUpdateManager.en
- RuStore.AppUpdate.RuStoreAppUpdateManager