HostBillingClientCallbackHandler class

Implementation of InAppPurchaseCallbackApi, for use by BillingClient.

Actual Dart callback functions are stored here, indexed by the handle provided to the host side when setting up the connection in non-singleton cases. When a callback is triggered from the host side, the corresponding Dart function is invoked.

Annotations

Constructors

HostBillingClientCallbackHandler(PurchasesUpdatedListener purchasesUpdatedCallback, UserSelectedAlternativeBillingListener? alternativeBillingListener)
Creates a new handler with the given singleton handlers, and no per-connection handlers.

Properties

alternativeBillingListener UserSelectedAlternativeBillingListener?
The handler for UserChoiceBillingListener#userSelectedAlternativeBilling.
getter/setter pair
disconnectCallbacks List<OnBillingServiceDisconnected>
Handlers for onBillingServiceDisconnected, indexed by handle identifier.
final
hashCode int
The hash code for this object.
no setterinherited
purchasesUpdatedCallback PurchasesUpdatedListener
The handler for PurchasesUpdatedListener#onPurchasesUpdated.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onBillingServiceDisconnected(int callbackHandle) → void
Called for BillingClientStateListener#onBillingServiceDisconnected().
onPurchasesUpdated(PlatformPurchasesResponse update) → void
Called for PurchasesUpdatedListener#onPurchasesUpdated(BillingResult, List
toString() String
A string representation of this object.
inherited
userSelectedalternativeBilling(PlatformUserChoiceDetails details) → void
Called for UserChoiceBillingListener#userSelectedAlternativeBilling(UserChoiceDetails).

Operators

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