unreal.InAppPurchaseComponent

class unreal.InAppPurchaseComponent(outer=None, name='None')

Bases: unreal.ActorComponent

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.

C++ Source:

  • Plugin: MagicLeap
  • Module: MagicLeap
  • File: InAppPurchaseComponent.h

Editor Properties: (see get_editor_property/set_editor_property)

  • app_purchase_log_message (InAppPurchaseLogMessage): [Read-Write] In App Purchase Log Message
  • asset_user_data (Array(AssetUserData)): [Read-Write] Array of user data stored with the component
  • auto_activate (bool): [Read-Write] Whether the component is activated at creation or must be explicitly activated.
  • can_ever_affect_navigation (bool): [Read-Write] Whether this component can potentially influence navigation
  • component_tags (Array(Name)): [Read-Write] Array of tags that can be used for grouping and categorizing. Can also be accessed from scripting.
  • editable_when_inherited (bool): [Read-Write] True if this component can be modified when it was inherited from a parent actor class
  • get_items_details_failure (GetItemsDetailsFailure): [Read-Write] Get Items Details Failure
  • get_items_details_success (GetItemsDetailsSuccess): [Read-Write] Get Items Details Success
  • get_purchase_history_failure (GetPurchaseHistoryFailure): [Read-Write] Get Purchase History Failure
  • get_purchase_history_success (GetPurchaseHistorySuccess): [Read-Write] Get Purchase History Success
  • is_editor_only (bool): [Read-Write] If true, the component will be excluded from non-editor builds
  • on_component_activated (ActorComponentActivatedSignature): [Read-Write] Called when the component has been activated, with parameter indicating if it was from a reset
  • on_component_deactivated (ActorComponentDeactivateSignature): [Read-Write] Called when the component has been deactivated
  • primary_component_tick (ActorComponentTickFunction): [Read-Write] Main tick function for the Component
  • purchase_confirmation_failure (PurchaseConfirmationFailure): [Read-Write] Purchase Confirmation Failure
  • purchase_confirmation_success (PurchaseConfirmationSuccess): [Read-Write] Purchase Confirmation Success
  • replicates (bool): [Read-Write] Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!
app_purchase_log_message

(InAppPurchaseLogMessage) – [Read-Write] In App Purchase Log Message

get_items_details_failure

(GetItemsDetailsFailure) – [Read-Write] Get Items Details Failure

get_items_details_success

(GetItemsDetailsSuccess) – [Read-Write] Get Items Details Success

get_purchase_history_failure

(GetPurchaseHistoryFailure) – [Read-Write] Get Purchase History Failure

get_purchase_history_success

(GetPurchaseHistorySuccess) – [Read-Write] Get Purchase History Success

purchase_confirmation_failure

(PurchaseConfirmationFailure) – [Read-Write] Purchase Confirmation Failure

purchase_confirmation_success

(PurchaseConfirmationSuccess) – [Read-Write] Purchase Confirmation Success

try_get_items_details_async(item_i_ds) → bool

Attempts to retrieve details for the specified items. 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.:

Parameters:item_i_ds (Array(str)) – An array of FString objects specifying the names of the items whose details will be queried.
Returns:False if an items details query is already running, true otherwise.
Return type:bool
try_get_purchase_history_async(num_pages) → bool

Attempts to retrieve the app’s purchase history. 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.:

Parameters:num_pages (int32) – Specifies the number of history pages to retrieve.
Returns:False if a purchase history query is already running or InNumPages is less than or equal to zero, true otherwise.
Return type:bool
try_purchase_item_async(item_details) → bool

Attempts to purchase the specified item. 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.:

Parameters:item_details (PurchaseItemDetails) – The details of the item to be purchased.
Returns:False if a purchase confirmation is already running, true otherwise.
Return type:bool