SKPaymentTransactionStateWrapper enum
The state of a transaction.
Dart wrapper around StoreKit's SKPaymentTransactionState.
Values
- purchasing → const SKPaymentTransactionStateWrapper
-
Indicates the transaction is being processed in App Store.
You should update your UI to indicate that you are waiting for the transaction to update to another state. Never complete a transaction that is still in a purchasing state.
- purchased → const SKPaymentTransactionStateWrapper
-
The user's payment has been succesfully processed.
You should provide the user the content that they purchased.
- failed → const SKPaymentTransactionStateWrapper
-
The transaction failed.
Check the SKPaymentTransactionWrapper.error property from SKPaymentTransactionWrapper for details.
- restored → const SKPaymentTransactionStateWrapper
-
This transaction is restoring content previously purchased by the user.
The previous transaction information can be obtained in SKPaymentTransactionWrapper.originalTransaction from SKPaymentTransactionWrapper.
- deferred → const SKPaymentTransactionStateWrapper
-
The transaction is in the queue but pending external action. Wait for another callback to get the final state.
You should update your UI to indicate that you are waiting for the transaction to update to another state.
- unspecified → const SKPaymentTransactionStateWrapper
-
Indicates the transaction is in an unspecified state.
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
convertFromPigeon(
SKPaymentTransactionStateMessage msg) → SKPaymentTransactionStateWrapper -
Converts
SKPaymentTransactionStateMessages
into the dart equivalent
Constants
-
values
→ const List<
SKPaymentTransactionStateWrapper> - A constant List of the values in this enum, in order of their declaration.