java.lang.Object | ||
↳ | java.lang.Enum<E extends java.lang.Enum<E>> | |
↳ | co.megacool.megacool.EventType |
This enum is deprecated.
Use the new dedicated event classes instead
Different types of events emitted by the SDK.
Enum Values | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
EventType | LINK_CLICKED | Emitted when a link click was detected locally. | |||||||||
EventType | RECEIVED_SHARE_OPENED | Emitted when we've opened a share sent by someone else. | |||||||||
EventType | SENT_SHARE_OPENED | Emitted when a share sent by this user is opened by someone else. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | toString() | ||||||||||
static EventType | valueOf(String name) | ||||||||||
final static EventType[] | values() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Enum
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.Comparable
|
Emitted when a link click was detected locally.
This will usually happen very quickly after the app was loaded, and can be
used to navigate to a specific section of your app. Look up the URL to navigate to from
getUrl()
. This event will not be emitted for deferred link
clicks (detections that has to go through the backend), for those only the
RECEIVED_SHARE_OPENED
events will be emitted. The referral code (if any) from the
link is accessible through getReferralCode()
.
Emitted when we've opened a share sent by someone else. Assuming a network connection is available on startup, this will be triggered very soon after the app starts. Otherwise it can happen some time after network is established.
The sending user's id can be found by calling getSenderUserId()
.
Emitted when a share sent by this user is opened by someone else. This is a remote event that can be triggered at any point in the app life cycle.
The other person's user id can be found by calling getReceiverUserId()
.