encore_flutter library
Flutter plugin wrapping the native Encore iOS and Android SDKs.
Provides monetization, offers, and entitlements through platform channels backed by the Encore XCFramework (iOS) and AAR (Android) binaries.
import 'package:encore_flutter/encore_flutter.dart';
await Encore.shared.configure(apiKey: 'your_key');
await Encore.shared.identify(userId: 'user_123');
final result = await Encore.shared.placement('cancel_flow').show();
Classes
- Encore
- Main entry point for the Encore Flutter SDK.
- EncoreBillingPurchaseResult
- Result of a successful native billing purchase (Play Billing on Android, StoreKit on iOS).
- EncorePlacementBuilder
- Fluent builder for presenting Encore offers.
- EncorePresentationResult
- Outcome of presenting an offer to the user.
- EncorePresentationResultGranted
- The user completed an offer flow (claimed an offer, earned an entitlement).
- EncorePresentationResultNotGranted
- The user did not earn an entitlement (dismissed, no offers, experiment control, etc.).
- EncorePurchaseRequest
- Data passed to the Encore.onEncorePurchaseRequest handler when a user accepts an offer and a purchase is needed.
- EncoreUserAttributes
- Structured user attributes for offer targeting and personalization.
Enums
- EncoreLogLevel
- Log verbosity levels for the Encore SDK.