MCLEventType
enum MCLEventType {}
MCLEvent types which are used in +[Megacool startWithAppConfig:andEventHandler:]
.
-
Emitted when we’ve opened a share sent by someone else.
The sending user’s id can be found in the
data
dictionary under the keyMCLEventDataSenderUserId
.Declaration
Objective-C
MCLEventReceivedShareOpened = 0
Swift
case receivedShareOpened = 0
-
Emitted when a share sent by this user is opened by someone else.
The other person’s
userId
can be found in thedata
dictionary under theMCLEventDataReceiverUserId
key.Declaration
Objective-C
MCLEventSentShareOpened
Swift
case sentShareOpened = 1
-
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 the property
MCLEventDataURL
in thedata
dictionary. This event will not be emitted for deferred link clicks (detections that has to go through the backend), for those only theMCLEventReceivedShareOpened
event will be emitted. The referral code (if any) from the link is accessible through theMCLEventDataReferralCode
key in the data dictionary.isFirstSession
can be used to detect if this is the first session by this user. This will be persisted across re-installs in the Keychain, thus re-installing the app and clicking a link will not emit any new events withisFirstSession
set.Declaration
Objective-C
MCLEventLinkClicked
Swift
case linkClicked = 2