EngageShare class
Share helpers (engage.share). No feature check.
link / referralLink share a Clikgate link through the native SDK's Engage features: each app Clikgate knows gets its own version of the link (a short ending that tells Clikgate where it was shared), other apps the plain link, and the share is recorded (the app and the link, no personal data; a share count, never a click). system / whatsApp share plain text and record nothing.
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
-
link(
String url, {String? message, ShareApp? app, }) → Future< bool> -
Shares a Clikgate link (
url, e.g.https://inv.myapp.com/summer) with an optionalmessagein front of it. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
referralLink(
ReferralLink link, {String? message, ShareApp? app}) → Future< bool> -
linkfor the user's referral link (EngageReferrals.createLink): each app's version keeps the referral code, so the referrer is still credited. -
system(
{required String text, String? subject}) → Future< void> -
Presents the system share sheet with
text. -
toString(
) → String -
A string representation of this object.
inherited
-
whatsApp(
{required String text}) → Future< bool> -
Opens WhatsApp with
text(whatsapp://send?text=); if WhatsApp can't be opened, presents the system share sheet. Returns true when WhatsApp itself was opened (the plugin's native side; nocanOpenURLcheck, so no Info.plist entry is required).
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
whatsAppUri(
String text) → Uri -
whatsapp://send?text=<text>, percent-encoding everything except the RFC 3986 unreserved characters (so&,=,+,#,?and spaces in the text survive).