UInAppUpdatesManager

#include <InAppUpdatesManager.h>

The UInAppUpdatesManager class is used to request app update information, start an update or complete a flexible update.

Summary

Refer to https://developer.android.com/guide/playcore/in-app-updates for more details.

Inheritance

Inherits from: UGameInstanceSubsystem

Public functions

CompleteUpdate(FUpdateOperationCompletedDelegate InOnStartUpdateOperationCompleted)
void
Requests to complete a flexible in-app update flow that was started via the StartUpdate() function.
Deinitialize() override
virtual void
Initialize(FSubsystemCollectionBase & Collection) override
virtual void
RequestInfo(FRequestInfoOperationCompletedDelegate InOnRequestInfoOperationCompleted)
void
Requests information about an update.
StartUpdate(UAppUpdateInfo *InUpdateInfo, UAppUpdateOptions *InUpdateOptions, FUpdateOperationCompletedDelegate InOnUpdateOperationCompleted)
void
Starts the in-app update flow.

Public functions

CompleteUpdate

void CompleteUpdate(
  FUpdateOperationCompletedDelegate InOnStartUpdateOperationCompleted
)

Requests to complete a flexible in-app update flow that was started via the StartUpdate() function.

Details
Parameters
InOnStartUpdateOperationCompleted
The delegate to handle the completion of the function.

Deinitialize

virtual void Deinitialize() override

Initialize

virtual void Initialize(
  FSubsystemCollectionBase & Collection
) override

RequestInfo

void RequestInfo(
  FRequestInfoOperationCompletedDelegate InOnRequestInfoOperationCompleted
)

Requests information about an update.

Needs to be called once before StartUpdate() to obtain an AppUpdateInfo, which is required to launch the in-app update flow.

Details
Parameters
InOnRequestInfoOperationCompleted
The delegate to handle the completion of the request.

StartUpdate

void StartUpdate(
  UAppUpdateInfo *InUpdateInfo,
  UAppUpdateOptions *InUpdateOptions,
  FUpdateOperationCompletedDelegate InOnUpdateOperationCompleted
)

Starts the in-app update flow.

Use the InUpdateInfo functions to monitor the current status and download progress of the ongoing update operation.

Details
Parameters
InUpdateInfo
The object containing information needed for an update.
InUpdateOptions
The object specifying the update flow type.
InOnUpdateOperationCompleted
The delegate to handle the completion of the function.