SubscriptionService class abstract interface

All methods are working only with subscriptions currently

Implementers

Properties

fetchedPaywalls → Map<String, Paywall>
All paywalls list, fetched on start
final
hashCode → int
The hash code for this object.
no setterinherited
paywallsStream → BehaviorSubject<Map<String, Paywall>?>
Stream with paywalls
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subscriptionStatus → BehaviorSubject<bool>
Stream with subscription status
final
userId → String?
Payment provider user id
final

Methods

addAttributionProviders(Map<AttributionProvider, String> providers) → Future<void>
Add attributes to the sub service to match between analytics
initialize() → Future<void>
Initialize subscription service, prepare sdk, fetch paywalls
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paywallProducts({required String paywallId}) → List<ProductModel>
All products from specific paywall. If not found throws PaywallFindFailedException
purchase({required String productId, dynamic product}) → Future<bool>
Purchase product by id
restorePurchases() → Future<bool>
Restore all purchases
setAdvertisingIdentifier({required String? idfa, required String? idfv}) → Future<void>
Set advertising identifiers for better attribution and sync between services
toString() → String
A string representation of this object.
inherited
updateAuthListener(BehaviorSubject<AuthUser?>? authStateChanges) → Future<void>
Add auth listener to update user id on login/logout

Operators

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