Class TransactionFailedEvent
Use this class to record transactionFailed events.
For more information about the transactionFailed event, see the documentation page: https://docs.unity.com/ugs/en-us/manual/analytics/manual/record-transaction-events
Inherited Members
Namespace: Unity.Services.Analytics
Assembly: Unity.Services.Analytics.dll
Syntax
public class TransactionFailedEvent : TransactionEvent
Constructors
TransactionFailedEvent()
Creates a new TransactionFailedEvent instance that you can populate with the relevant data.
Declaration
public TransactionFailedEvent()
Properties
FailureReason
(Required) The reason why this transaction failed.
Declaration
public string FailureReason { set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Validate()
The Validate method is called internally during serialization to ensure that all required parameters have been set. If any required parameters are missing, warnings are recorded to the console.
Declaration
public override void Validate()