SBSDKUICroppingViewControllerDelegate
@protocol SBSDKUICroppingViewControllerDelegate <SBSDKUIViewControllerDelegate>
Delegate protocol for ‘SBSDKUICroppingViewController’.
-
Informs the delegate that the polygon or orientation of the edited page was changed and the cropping view controller did dismiss.
Declaration
Objective-C
- (void)croppingViewController: (nonnull SBSDKUICroppingViewController *)viewController didFinish:(nonnull SBSDKUIPage *)changedPage;
Swift
func croppingViewController(_ viewController: SBSDKUICroppingViewController, didFinish changedPage: SBSDKUIPage)
Parameters
viewController
The editing crop view controller that initiated the change and that did dismiss.
changedPage
The page that was changed.
-
Optional: informs the delegate that the ‘SBSDKUICroppingViewController’ has been cancelled and dismissed.
Declaration
Objective-C
- (void)croppingViewControllerDidCancel: (nonnull SBSDKUICroppingViewController *)viewController;
Swift
optional func croppingViewControllerDidCancel(_ viewController: SBSDKUICroppingViewController)
Parameters
viewController
The ‘SBSDKUICroppingViewController’ that did dismiss.