UInAppPurchaseComponent

The CameraCaptureComponent provides access to and maintains state for camera capture functionality.

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

MagicLeap

Header

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

Include

#include "InAppPurchaseComponent.h"

Syntax

[UCLASS](Programming/UnrealArchitecture/Reference/Classes#classdeclaration)(ClassGroup=MagicLeap, BlueprintType, Blueprintable, EditInlineNew,
       Meta=(BlueprintSpawnableComponent))
class UInAppPurchaseComponent : public UActorComponent

Remarks

The CameraCaptureComponent provides access to and maintains state for camera capture functionality. The connection to the device's camera is managed internally. Users of this component are able to asynchronously capture camera images and footage to file. Alternatively, a camera image can be captured directly to texture. The user need only make the relevant asynchronous call and then register the appropriate success/fail event handlers for the operation's completion.

Variables

Constructors

Name Description

Public function

UInAppPurchaseComponent()

Destructors

Name Description

Public function Virtual

~UInAppPurchaseComponent()

Functions

Name Description

Public function

void

 

Log

(
    const FString& LogMessage,
    bool bError
)

Public function

FGetItemsDet...

 

OnGetItemsDetailsFailure()

Activated when retrieval of items details fails.

Public function

FGetItemsDet...

 

OnGetItemsDetailsSuccess()

Activated when retrieval of items details succeeds.

Public function

FGetPurchase...

 

OnGetPurchaseHistoryFailure()

Activated when a purchase history request fails.

Public function

FGetPurchase...

 

OnGetPurchaseHistorySuccess()

Activated when a purchase history request succeeds.

Public function

FInAppPurcha...

 

OnInAppPurchaseLogMessage()

Activated when a log message is generated on the capture thread.

Public function

FPurchaseCon...

 

OnPurchaseConfirmationFailure()

Activated when a purchase confirmation request fails.

Public function

FPurchaseCon...

 

OnPurchaseConfirmationSuccess()

Activated when a purchase confirmationn request succeeds.

Public function UFunction BlueprintCallable, Category

bool

 

TryGetItemsDetailsAsync

(
    const TArray< FString >& ItemIDs
)

This call instigates an items details query which is handled on a separate thread. The result of this asynchronous operation is reported back to the calling blueprint via the FGetItemsDetailsSuccess or FGetItemsDetailsFailure event handlers.

Public function UFunction BlueprintCallable, Category

bool

 

TryGetPurchaseHistoryAsync

(
    int32 InNumPages
)

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 or FGetPurchaseHistoryFailure event handlers.

Public function UFunction BlueprintCallable, Category

bool

 

TryPurchaseItemAsync

(
    const FPurchaseItemDetails& ItemDe...
)

This call instigates a purchase request which is handled on a separate thread. The result of this asynchronous operation is reported back to the calling blueprint via the FPurchaseConfirmationSuccess or FPurchaseConfirmationFailure event handlers.

Overridden from UActorComponent

Name Description

Public function Virtual

void

 

BeginPlay()

Intializes internal systems.

Public function Virtual

void

 

TickComponent

(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction* T...
)

Polls for query results.

Classes

Name

Description

Public class

FGetItemsDetailsFailure

Delegate used to report a failure to retrieve the requested items details.

Public class

FGetItemsDetailsSuccess

Delegate used to report a successful retrieval of items details.

Public class

FGetPurchaseHistoryFailure

Delegate used to pass a purchase history request failure back to the instigating blueprint.

Public class

FGetPurchaseHistorySuccess

Delegate used to report a successful item purchase history retrieval.

Public class

FInAppPurchaseLogMessage

Delegate used to report log messages.

Public class

FPurchaseConfirmationFailure

Delegate used to report a failure to retrieve an item purchase confirmation.

Public class

FPurchaseConfirmationSuccess

Delegate used to report a successful item purchase confirmation.

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