SKPaymentQueueWrapper class

A wrapper around SKPaymentQueue.

The payment queue contains payment related operations. It communicates with the App Store and presents a user interface for the user to process and authorize payments.

Full information on using SKPaymentQueue and processing purchases is available at the In-App Purchase Programming Guide

Constructors

SKPaymentQueueWrapper()
Returns the default payment queue.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPayment(SKPaymentWrapper payment) Future<void>
Posts a payment to the queue.
finishTransaction(SKPaymentTransactionWrapper transaction) Future<void>
Finishes a transaction and removes it from the queue.
handleObserverCallbacks(MethodCall call) Future
Triage a method channel call from the platform and triggers the correct observer method.
handlePaymentQueueDelegateCallbacks(MethodCall call) Future
Triage a method channel call from the platform and triggers the correct payment queue delegate method.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
presentCodeRedemptionSheet() Future<void>
Present Code Redemption Sheet
restoreTransactions({String? applicationUserName}) Future<void>
Restore previously purchased transactions.
setDelegate(SKPaymentQueueDelegateWrapper? delegate) Future<void>
Sets an implementation of the SKPaymentQueueDelegateWrapper.
setTransactionObserver(SKTransactionObserverWrapper observer) → void
Sets an observer to listen to all incoming transaction events.
showPriceConsentIfNeeded() Future<void>
Shows the price consent sheet if the user has not yet responded to a subscription price change.
startObservingTransactionQueue() Future<void>
Instructs the iOS implementation to register a transaction observer and start listening to it.
stopObservingTransactionQueue() Future<void>
Instructs the iOS implementation to remove the transaction observer and stop listening to it.
storefront() Future<SKStorefrontWrapper?>
Calls [SKPaymentQueue storefront].
toString() String
A string representation of this object.
inherited
transactions() Future<List<SKPaymentTransactionWrapper>>
Calls -[SKPaymentQueue transactions].

Operators

operator ==(Object other) bool
The equality operator.
inherited