EngageReferrals class

Referrer-side referral calls (engage.referrals).

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

Gets or creates the current user's referral link and code. Needs Clikgate.identifyUser.
The current user's code and share links, returned at once from the phone after the first time (no network, no waiting) and refreshed in the background at most once a minute. Use it for share buttons; myStats has the live counts. Errors as myStats (referrer_not_found until the user has a link).
myStats({required String programId}) → Future<ReferralStats>
The current user's code, link and counts (referrer_not_found if they have no link yet). Cached for 60 s. Sent at once when an identity token is stored (no wait for the install); the link is saved for myLink.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited