UInAppPurchaseComponent::TryGetPurchaseHistoryAsync

This call instigates a purchase history request which is handled on a separate thread. The result of this asynchronous operation is reported back to the calling blueprint via the [FGetPurchaseHistorySuccess](API\Plugins\MagicLeap\UInAppPurchaseComponent\FGetPurchaseHistorySuccess) or [FGetPurchaseHistoryFailure](API\Plugins\MagicLeap\UInAppPurchaseComponent\FGetPurchaseHistoryFailure) event handlers.

Windows
MacOS
Linux

References

Module

MagicLeap

Header

/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeap/Public/InAppPurchaseComponent.h

Include

#include "InAppPurchaseComponent.h"

Source

/Engine/Plugins/Lumin/MagicLeap/Source/MagicLeap/Private/InAppPurchaseComponent.cpp

Syntax

[UFUNCTION](Programming/UnrealArchitecture/Reference/Functions)(BlueprintCallable, Category="InAppPurchase|MagicLeap")
bool TryGetPurchaseHistoryAsync
(
    int32 InNumPages
)

Remarks

Attempts to retrieve the app's purchase history.

Returns

False if a purchase history query is already running or InNumPages is less than or equal to zero, true otherwise.

Parameters

Parameter

Description

InNumPages

Specifies the number of history pages to retrieve.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss