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 Messageasset_user_data
(Array(AssetUserData)): [Read-Write] Array of user data stored with the componentauto_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 navigationcomponent_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 classget_items_details_failure
(GetItemsDetailsFailure): [Read-Write] Get Items Details Failureget_items_details_success
(GetItemsDetailsSuccess): [Read-Write] Get Items Details Successget_purchase_history_failure
(GetPurchaseHistoryFailure): [Read-Write] Get Purchase History Failureget_purchase_history_success
(GetPurchaseHistorySuccess): [Read-Write] Get Purchase History Successis_editor_only
(bool): [Read-Write] If true, the component will be excluded from non-editor buildson_component_activated
(ActorComponentActivatedSignature): [Read-Write] Called when the component has been activated, with parameter indicating if it was from a reseton_component_deactivated
(ActorComponentDeactivateSignature): [Read-Write] Called when the component has been deactivatedprimary_component_tick
(ActorComponentTickFunction): [Read-Write] Main tick function for the Componentpurchase_confirmation_failure
(PurchaseConfirmationFailure): [Read-Write] Purchase Confirmation Failurepurchase_confirmation_success
(PurchaseConfirmationSuccess): [Read-Write] Purchase Confirmation Successreplicates
(bool): [Read-Write] Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!
- property app_purchase_log_message¶
[Read-Write] In App Purchase Log Message
- Type
- property get_items_details_failure¶
[Read-Write] Get Items Details Failure
- Type
- property get_items_details_success¶
[Read-Write] Get Items Details Success
- Type
- property get_purchase_history_failure¶
[Read-Write] Get Purchase History Failure
- Type
- property get_purchase_history_success¶
[Read-Write] Get Purchase History Success
- Type
- property purchase_confirmation_failure¶
[Read-Write] Purchase Confirmation Failure
- Type
- property purchase_confirmation_success¶
[Read-Write] Purchase Confirmation Success
- Type
- try_get_items_details_async(item_i_ds) → bool¶
Attempts to retrieve details for the specified items. brief: 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.
- try_get_purchase_history_async(num_pages) → bool¶
Attempts to retrieve the app’s purchase history. brief: 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
- try_purchase_item_async(item_details) → bool¶
Attempts to purchase the specified item. brief: 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