SBSDKCropViewControllerDelegate

@protocol SBSDKCropViewControllerDelegate <NSObject>

A delegate protocol to inform an object about changes in SBSDKCropViewController.

Deprecated! Use SBSDKImageEditingViewControllerand SBSDKImageEditingViewControllerDelegateinstead!

  • Informs the delegate that the crop view controllers apply button was hit.

    Declaration

    Objective-C

    - (void)cropViewController:(nonnull SBSDKCropViewController *)cropViewController
        didApplyChangesWithPolygon:(nonnull SBSDKPolygon *)polygon
                      croppedImage:(nonnull UIImage *)croppedImage;

    Swift

    optional func cropViewController(_ cropViewController: SBSDKCropViewController, didApplyChangesWith polygon: SBSDKPolygon, croppedImage: UIImage)

    Parameters

    cropViewController

    The calling SBSDKCropViewController.

    polygon

    The current polygon of the SBSDKCropViewController.

    croppedImage

    The cropped image.

  • Informs the delegate that the crop view controllers cancel button was hit.

    Declaration

    Objective-C

    - (void)cropViewControllerDidCancelChanges:
        (nonnull SBSDKCropViewController *)cropViewController;

    Swift

    optional func cropViewControllerDidCancelChanges(_ cropViewController: SBSDKCropViewController)

    Parameters

    cropViewController

    The calling SBSDKCropViewController.

  • Informs the delegate that the crop view controllers polygon was changed.

    Declaration

    Objective-C

    - (void)cropViewControllerDidChangePolygon:
        (nonnull SBSDKCropViewController *)cropViewController;

    Swift

    optional func cropViewControllerDidChangePolygon(_ cropViewController: SBSDKCropViewController)

    Parameters

    cropViewController

    The calling SBSDKCropViewController.

  • Asks the delegate for the cancel buttons icon.

    Declaration

    Objective-C

    - (nonnull UIImage *)cancelButtonImageForCropViewController:
        (nonnull SBSDKCropViewController *)cropViewController;

    Swift

    optional func cancelButtonImage(for cropViewController: SBSDKCropViewController) -> UIImage

    Parameters

    cropViewController

    The calling SBSDKCropViewController.

    Return Value

    An image used for the cancel button.

  • Asks the delegate for the apply buttons icon.

    Declaration

    Objective-C

    - (nonnull UIImage *)applyButtonImageForCropViewController:
        (nonnull SBSDKCropViewController *)cropViewController;

    Swift

    optional func applyButtonImage(for cropViewController: SBSDKCropViewController) -> UIImage

    Parameters

    cropViewController

    The calling SBSDKCropViewController.

    Return Value

    An image used for the apply button.