insert_affiliate_flutter_sdk library

Classes

AffiliateDetails
Affiliate details returned from the API
AffiliateEnrolmentResult
Result of enrolling or verifying an in-app referrer.
InsertAffiliateFlutterSDK
MyAffiliateDetails
The signed-in referrer's affiliate details and referral stats.
ReferAFriendOptions
Options for the drop-in "Refer a friend" screen.
ReferAFriendScreen
Drop-in "Refer a friend" screen. Present it with InsertAffiliateFlutterSDK.showReferAFriend, or push / embed it yourself.
ReferralProgramConfig
The app's in-app referral program settings from the Insert Affiliate portal. Text fields are empty when the company has not set them.
ReferralRewardCode
A reward code granted to the referrer: an App Store one-time offer code, or a Google Play promo code if they were rewarded on an Android phone.
ReferralStrings
Every label on the drop-in "Refer a friend" screen, so an app can translate or reword it. Pass it as ReferAFriendOptions(strings: ...).

Enums

AffiliateAssociationSource
Source types for affiliate association tracking
AffiliateEnrolmentStatus
Outcome of createAffiliateForUser and verifyAffiliateCode.

Functions

buildReferralShareText({required String deeplinkUrl, required String shortCode, required String companyName, String? message}) → String
Builds the text shared by shareReferralLink and the drop-in screen.
rewardCodesForPlatform(List<ReferralRewardCode> codes, {required TargetPlatform platform, bool isWeb = false}) → List<ReferralRewardCode>
The codes that can be redeemed on this phone: App Store codes on iOS, Google Play codes on Android, every code on web and desktop.

Typedefs

InsertAffiliateIdentifierChangeCallback = void Function(String? identifier, String? offerCode)