MCLShareConfig

@interface MCLShareConfig : NSObject

Pass this to -[Megacool presentShareWithConfig:] to configure how a share is performed.

Note

This class does not have atomic properties for efficiency, thus it’s not thread-safe.
  • Which recording to share. Will use default if nil.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, null_resettable) NSString *recordingId;

    Swift

    var recordingId: String! { get set }
  • A fallback to share if there are no frames in the given recording or something fails. Mutually exclusive with fallbackImage.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSURL *fallbackImageUrl;

    Swift

    var fallbackImageUrl: URL? { get set }
  • A fallback to to share if there are no frames in the given recording or something fails. Mutually exclusive with fallbackImageUrl.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIImage *fallbackImage;

    Swift

    var fallbackImage: UIImage? { get set }
  • url

    Customize the url included in the share to navigate to a specific section of your app.

    The link given here can be extracted from the link-clicked event on the receiving side. Note that only the path and query parameters will be respected. If set to f. ex [NSURL URLWithString:@"/level2?difficulty=ludicruous"], the final url will end up as https://mgcl.co/<your-app-identifier>/level2?difficulty=ludicruous&_m=<referral-code>.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) NSURL *url;

    Swift

    var url: URL? { get set }
  • Additional data to include with the share. This will be available to the receiver in the receivedShareOpened event.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        NSDictionary<NSString *, NSString *> *data;

    Swift

    var data: [String : String]? { get set }
  • On iPads, which view should present the popover.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable) UIView *sourceView;

    Swift

    var sourceView: UIView? { get set }
  • When using shareToMessenger, you can force to show the composer view instead of replying directly to a friend. More on Messenger’s reply flow here: https://developers.facebook.com/docs/messenger/ios#handling_calls_messenger

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL messengerForceCompose;

    Swift

    var messengerForceCompose: Bool { get set }