MCLLinkClickedEvent

@interface MCLLinkClickedEvent : NSObject

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).

See

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

    The link that was clicked.

    This will be a relative url, and mirror what you set as MCLShareConfig.url when creating the share.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSURL *_Nonnull url;

    Swift

    var url: URL { get }
  • The referral code for the share.

    From this you can get the userId of the user that sent the share, from MCLReferralCode.userId. Note that the referral code can be null if it was removed partially or entirely from the url by the user.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) MCLReferralCode *referralCode;

    Swift

    var referralCode: MCLReferralCode? { get }