Purchasely class

Constructors

Purchasely()

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 Properties

anonymousUserId Future<String>
no setter
events ↔ dynamic
getter/setter pair
purchases ↔ dynamic
getter/setter pair

Static Methods

allProducts() Future<List<PLYProduct>>
clearUserAttribute(String key) → void
clearUserAttributes() → void
clientPresentationClosed(PLYPresentation presentation) Future<void>
clientPresentationDisplayed(PLYPresentation presentation) Future<void>
close() Future<void>
closePresentation() Future<void>
decrementUserAttribute(String key, {int value = 1}) Future<void>
displaySubscriptionCancellationInstruction() Future<void>
fetchPresentation(String? placementId, {String? presentationId, String? contentId}) Future<PLYPresentation?>
getPresentationView({PLYPresentation? presentation, String? presentationId, String? placementId, String? contentId, dynamic callback(PresentPresentationResult)?}) PLYPresentationView?
hidePresentation() Future<void>
incrementUserAttribute(String key, {int value = 1}) Future<void>
isAnonymous() Future<bool>
isDeeplinkHandled(String deepLink) Future<bool>
isEligibleForIntroOffer(String planVendorId) Future<bool>
listenToEvents(dynamic block(PLYEvent)) → void
listenToPurchases(Function block) → void
onProcessAction(bool processAction) Future<void>
planWithIdentifier(String vendorId) Future<PLYPlan?>
presentPlanWithIdentifier(String planVendorId, {String? presentationVendorId, String? contentId, bool isFullscreen = false}) Future<PresentPresentationResult>
presentPresentation(PLYPresentation? presentation, {bool isFullscreen = false}) Future<PresentPresentationResult>
presentPresentationForPlacement(String? placementVendorId, {String? contentId, bool isFullscreen = false}) Future<PresentPresentationResult>
presentPresentationWithIdentifier(String? presentationVendorId, {String? contentId, bool isFullscreen = false}) Future<PresentPresentationResult>
presentProductWithIdentifier(String productVendorId, {String? presentationVendorId, String? contentId, bool isFullscreen = false}) Future<PresentPresentationResult>
presentSubscriptions() Future<void>
productWithIdentifier(String vendorId) Future<PLYProduct>
purchaseWithPlanVendorId({required String vendorId, String? offerId, String? contentId}) Future<Map>
restoreAllProducts() Future<bool>
setAttribute(PLYAttribute attribute, String value) Future<void>
setDefaultPresentationResultCallback(Function callback) → void
setDefaultPresentationResultHandler() Future<PresentPresentationResult>
setLanguage(String language) Future<void>
setLogLevel(PLYLogLevel logLevel) Future<bool>
setPaywallActionInterceptor() Future<PaywallActionInterceptorResult>
setPaywallActionInterceptorCallback(Function callback) → void
setThemeMode(PLYThemeMode mode) Future<void>
setUserAttributeWithBoolean(String key, bool value) Future<void>
setUserAttributeWithDate(String key, DateTime value) Future<void>
setUserAttributeWithDouble(String key, double value) Future<void>
setUserAttributeWithInt(String key, int value) Future<void>
setUserAttributeWithString(String key, String value) Future<void>
showPresentation() Future<void>
signPromotionalOffer(String storeProductId, String storeOfferId) Future<Map>
silentRestoreAllProducts() Future<bool>
start({required String apiKey, List<String>? androidStores = const ['Google'], required bool storeKit1, String? userId, PLYLogLevel logLevel = PLYLogLevel.error, PLYRunningMode runningMode = PLYRunningMode.full}) Future<bool>
stopListeningToEvents() → void
stopListeningToPurchases() → void
synchronize() Future<void>
transformPLYPresentationToMap(PLYPresentation? presentation) Map
transformToPLYEventProperties(Map properties) PLYEventProperties
transformToPLYPlan(Map plan) PLYPlan?
transformToPLYPresentation(Map presentation) PLYPresentation?
transformToPLYPromoOffer(Map offer) PLYPromoOffer?
transformToPLYSubscription(Map subscriptionOffer) PLYSubscriptionOffer?
userAttribute(String key) Future
userAttributes() Future<Map>
userDidConsumeSubscriptionContent() Future<void>
userLogin(String userId) Future<bool>
userLogout() Future<void>
userSubscriptions() Future<List<PLYSubscription>>