java.lang.Object | |
↳ | co.megacool.megacool.LinkClickedEvent |
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.
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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
The referral code from the link if available, or null
.
null
if none could be extracted from the link.
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.