MCLReceivedShareOpenedEvent

@interface MCLReceivedShareOpenedEvent : NSObject

This device clicked on a share sent by someone else.

Note that this event does not fire when clicking your own links.

See

https://docs.megacool.co/learn/links for more info on when different properties are available on the event.
  • Whether this is an install event or a re-engagement.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isFirstSession;

    Swift

    var isFirstSession: Bool { get }
  • The userId for the user that sent the share.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSString *_Nonnull senderUserId;

    Swift

    var senderUserId: String { get }
  • The share object that lead to the event.

    This can be nil if the url didn’t contain enough information to identify the specific share, but we could identify the sender.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) MCLShare *share;

    Swift

    var share: MCLShare? { get }
  • When the event occured.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) NSDate *_Nonnull createdAt;

    Swift

    var createdAt: Date { get }