ReferralHeroFlutterPlatform class abstract
An abstract class that defines the platform interface for the ReferralHero Flutter plugin.
This class is intended to be extended by platform-specific implementations to provide the functionality for the ReferralHero Flutter plugin on each platform.
- Inheritance
-
- Object
- PlatformInterface
- ReferralHeroFlutterPlatform
- Implementers
Constructors
- ReferralHeroFlutterPlatform()
-
Constructs a
ReferralHeroFlutterPlatform.
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
-
addSubscriber(
Map< String, dynamic> subscriber) → Future<Map< String, dynamic> > -
Adds a new subscriber with the provided
subscriberdetails. -
Captures a share event for the subscriber identified by
subscriberIdon the specifiedsocialplatform. -
confirmReferral(
String subscriberId) → Future< Map< String, dynamic> > -
Confirms a referral for the subscriber identified by
subscriberId. -
createPendingReferral(
Map< String, dynamic> referral) → Future<Map< String, dynamic> > -
Creates a pending referral with the provided
referraldetails. -
deleteSubscriber(
String subscriberId) → Future< Map< String, dynamic> > -
Deletes the subscriber identified by
subscriberId. -
getLeaderboard(
) → Future< Map< String, dynamic> > - Retrieves the leaderboard data for the current campaign.
-
getMyReferrals(
String subscriberId) → Future< Map< String, dynamic> > -
Retrieves all referrals for the subscriber identified by
subscriberId. -
getReferrer(
Map< String, dynamic> query) → Future<Map< String, dynamic> > -
Retrieves the referrer details based on the provided
query. -
getRewards(
String subscriberId) → Future< Map< String, dynamic> > -
Retrieves the rewards for the subscriber identified by
subscriberId. -
getSubscriberDetails(
String subscriberId) → Future< Map< String, dynamic> > -
Retrieves the details of a subscriber identified by
subscriberId. -
initialize(
String apiKey, String uuid) → Future< void> -
Initializes the ReferralHero Flutter plugin with the provided
apiKeyanduuid. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
organicTrackReferral(
Map< String, dynamic> referral) → Future<Map< String, dynamic> > -
Tracks an organic referral event with the provided
referraldetails. -
toString(
) → String -
A string representation of this object.
inherited
-
trackReferral(
Map< String, dynamic> referral) → Future<Map< String, dynamic> > -
Tracks a referral event with the provided
referraldetails. -
updateSubscriber(
String subscriberId, Map< String, dynamic> updates) → Future<Map< String, dynamic> > -
Updates the subscriber identified by
subscriberIdwith the providedupdates.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ ReferralHeroFlutterPlatform
-
The default instance of ReferralHeroFlutterPlatform to use.
getter/setter pair