Invites class

Constructors

Invites()

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

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

Static Methods

create(InviteContent? content) Future<Invite>
Create invite with localized values and a link.
createURL(InviteContent? content) Future<String>
Creates a Smart Link with user referral data attached used for Smart Invites.
getAvailableChannels() Future<List<InviteChannel>>
Get the list of available invite channels. Contains only channels enabled on the Dashboard and available on the device.
getReferredUsers(PagingQuery<ReferralUsersQuery> pagingQuery) Future<PagingResult<ReferralUser>>
Returns list of users who were referred by this user for a specific event.
getReferrerUsers(PagingQuery<ReferralUsersQuery> pagingQuery) Future<PagingResult<ReferralUser>>
Returns list of users who are referrers for this user for a specific event.
send(InviteContent? content, String channelId, dynamic onSuccess(), dynamic onCancel(), dynamic onFailure(Error)) → void
Invite friends via a specified invite channel.
setOnReferralDataReceivedListener(dynamic listener(ReferralData)) → void
Set listener to receive referral data if there is any.
setReferrer(UserId id, String event, Map<String, String> customData) Future
Sets referrer id for current user.