SnapscreenClipSharingViewController

@interface SnapscreenClipSharingViewController

ViewController to present clip sharing. Automatically presents the tutorial if necessary, guides the user through snapping and presents a clip sharing UI at the end.

Pass the appropriate styling information and tutorial content via the configuration and implement the delegate to receive callbacks during the sharing process.

  • Initialize the view controller with a sharing configuration and a delegate that receives the callbacks at the end of the sharing process.

    Declaration

    Objective-C

    - (nonnull instancetype)
        initWithConfiguration:
            (nonnull SnapscreenClipSharingConfiguration *)configuration
                     delegate:(nonnull id<SnapscreenClipSharingDelegate>)delegate;

    Swift

    init!(configuration: Any!, delegate: SnapscreenClipSharingDelegate!)

    Parameters

    configuration

    the sharing configuration

    delegate

    the delegate to receive callbacks

  • Call this method to let the ClipSharingViewController know that sharing of the clip was cancelled by the user

    Declaration

    Objective-C

    + (void)didCancelSharing;

    Swift

    class func didCancelSharing()
  • Call this method to let the ClipSharingViewController know that the clip was shared by the user, if possible passing the name of the platform (capitalized first letter, e.g. Facebook)

    Declaration

    Objective-C

    + (void)didShareTo:(NSString *_Nullable)platform;

    Swift

    class func didShare(to platform: Any!)