FirebasePaywallBackend class
PaywallBackend on the Codelessly backend's callable functions. A resolved placement points at a published layout, never an editor draft.
- Implemented types
Constructors
- FirebasePaywallBackend({required FirebaseFunctions functions, required String projectId})
-
const
Properties
- functions → FirebaseFunctions
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- projectId → String
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
entitlements(
) → Future< Set< String> > -
The user's verified entitlements.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordEvent(
{required String eventId, required String name, required ResolvedPaywall paywall, String? slot}) → Future< void> -
Records a paywall event.
override
-
resolve(
String placement, {required String locale, required String platform, required String appVersion}) → Future< ResolvedPaywall> -
Resolves
placementfor this user,locale,platform(ios,android) andappVersion. Throws when there is no paywall to show.override -
toString(
) → String -
A string representation of this object.
inherited
-
verify(
PendingPurchase purchase) → Future< String?> -
Verifies
purchase: the entitlement it grants, or null.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited