public final class

LinkClickedEvent

extends Object
implements Serializable
java.lang.Object
   ↳ co.megacool.megacool.LinkClickedEvent

Class Overview

A link was clicked by the user.

This event is purely local to the device and thus both available offline and very fast, and thus suitable for navigation within the app (with sanity checking of destinations).

For more details on which properties are available on events when clicking links, see docs.megacool.co/learn/links.

Summary

Public Methods
ReferralCode getReferralCode()
The referral code from the link if available, or null.
Uri getUrl()
The url that was clicked.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public ReferralCode getReferralCode ()

The referral code from the link if available, or null.

Returns
  • the referral code, or null if none could be extracted from the link.

public Uri getUrl ()

The url that was clicked. Will always be relative, like "/" or "/challenge?user=thusoy", and mirrors what was set with url(Uri) when the share was created.

Returns
  • the url that was clicked

public String toString ()