SnapscreenClipSharingDelegate

@protocol SnapscreenClipSharingDelegate <NSObject>

Delegate for callbacks during the clip sharing process.

  • The user cancelled the sharing process. This callback will only be received if the sharing view is presented modally and the navigation item to dismiss was not modified.

    Declaration

    Objective-C

    - (void)clipSharingViewControllerDidCancel:
        (nonnull SnapscreenClipSharingViewController *)sharingViewController;

    Swift

    func clipSharingViewControllerDidCancel(_ sharingViewController: Any!)

    Parameters

    sharingViewController

    the view controller

  • The user completed the sharing process and selected a clip to share.

    Declaration

    Objective-C

    - (void)clipSharingViewController:
                (nonnull SnapscreenClipSharingViewController *)sharingViewController
                 didShareVideoSnippet:
                     (nonnull SnapscreenClipShareInformation *)shareInformation;

    Swift

    func clipSharingViewController(_ sharingViewController: Any!, didShareVideoSnippet shareInformation: Any!)

    Parameters

    sharingViewController

    the view controller

    shareInformation

    the share information containing necessary information about the shared clip