ApphudPlus class
Constructors
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
-
addForegroundNotificationListener(
ValueSetter< ApphudNotificationPayload> callback) → Future<void> - Registers a callback function for foreground notifications processed by Apphud The callback will have ApphudNotificationPayload data.
-
addForegroundNotificationListenerRaw(
ValueSetter< String> callback) → Future<void> - Registers a callback function for foreground notifications processed by Apphud The callback will have String data.
-
getBackgroundNotificationData(
) → Future< ApphudNotificationPayload?> -
Checks if anynotifications were processed by Apphud in the background
state and returns data in
ApphudNotificationPayload
. -
getBackgroundNotificationString(
) → Future< String?> -
Checks if anynotifications were processed by Apphud in the background
state and returns data in
String
. -
hasActiveSubscription(
) → Future< bool> - Returns true if the user has an active subscription.
-
hasProductWithId(
String productId) → Future< bool> -
Returns true if the product with
productId
is available in Apphud products. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
paywallsDidLoad(
) → Future< bool> -
Returns true if
SKProduct
s are loaded from AppStore. -
paywallsDidLoadStream(
) → StreamController< bool> -
Stream will get
true
when paywalls did load andfalse
if an error occured. -
purchase(
String productId) → Future< PurchaseResult> - Initiates purchase of a product.
-
setListener(
ApphudPlusListener listener) → void - Create your implementation of ApphudPlusListener and set it with setListener.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited