Retrieve an instance of ClipShareViewController with your ClipShareDelegate
Present the ClipShareViewController
Handle results in your delegate implementation
Sharing Clips
The following code illustrates how to present the ClipShareViewController. The recommended way is to present this right after you get the callback from the SnapOdds SDK about a snapped sport event, which is also reflected in this code sample:
ClipShare tries to utilize prefetching of the frame images it displays while the users trims a clip. Additionally ClipShare requires you to provide image loading and cancellation functionality through the image loading library of your choice. The following sample implementation with SDWebImage shows how you can easily support this:
Additionally it is (very rarely) possible that the loaded clip is not long enough to support trimming. In that case the following method is called in your ClipShareDelegate: