Iaphub class

Constructors

Iaphub()

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

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

addEventListener(String eventName, Function callback) Function
Add event listeners
buy(String sku, {bool crossPlatformConflict = true, String? prorationMode}) Future<IaphubTransaction>
Buy product
getActiveProducts({List<String> includeSubscriptionStates = const []}) Future<List<IaphubActiveProduct>>
Get active products
getBillingStatus() Future<IaphubBillingStatus>
Get billing status
getProducts({List<String> includeSubscriptionStates = const []}) Future<IaphubProducts>
Get products
getProductsForSale() Future<List<IaphubProduct>>
Get products for sale
getUserId() Future<String>
Get user id
login(String userId) Future<void>
Log in user
logout() Future<void>
Log out user
presentCodeRedemptionSheet() Future<void>
Present code redemption (iOS only)
removeAllListeners() → void
Remove all event listeners
removeEventListener(Function callback) → void
Remove event listener
restore() Future<IaphubRestoreResponse>
Restore purchases
setDeviceParams(Map<String, String> params) Future<void>
Set device params
setLang(String lang) Future<bool>
Set lang
setUserTags(Map<String, String> tags) Future<void>
Set user tags
showManageSubscriptions({String? sku}) Future<void>
Show manage subscriptions page
start({String appId = "", String apiKey = "", String? userId, bool allowAnonymousPurchase = false, bool enableStorekitV2 = false, String lang = '', String environment = 'production'}) Future<void>
Start Iaphub
stop() Future<void>
Stop Iaphub