Class IAPTransactionAsset
Description for a IAPTransaction.
Inheritance
Inherited Members
Namespace: UnityEngine.GameFoundation.DefaultCatalog
Syntax
public class IAPTransactionAsset : BaseTransactionAsset<IAPTransaction, IAPTransactionConfig>, ISerializationCallbackReceiver
Properties
appleId
Declaration
public ExternalizableValue<string> appleId { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<String> |
googleId
Declaration
public ExternalizableValue<string> googleId { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<String> |
productId
The product ID for the platform store
Declaration
public ExternalizableValue<string> productId { get; }
Property Value
Type | Description |
---|---|
ExternalizableValue<String> |
Remarks
TODO: We currently default to apple to permit unit testing. We need a better solution.
Methods
ConfigureTransaction(CatalogBuilder, IExternalValueProvider)
Configures the specified builder
with the specific content of this transaction.
Declaration
protected override IAPTransactionConfig ConfigureTransaction(CatalogBuilder builder, IExternalValueProvider valueProvider)
Parameters
Type | Name | Description |
---|---|---|
CatalogBuilder | builder | The target builder. |
IExternalValueProvider | valueProvider | A value provider to override some catalog item's data with an external source when configuring them. |
Returns
Type | Description |
---|---|
IAPTransactionConfig | The config object. |
Overrides
OnAfterItemDeserialize()
Called at the end of OnAfterDeserialize. Enable inheritance to add specific deserialization process.
Declaration
protected override void OnAfterItemDeserialize()