AdjustEditControllerDelegate
@available(iOS 9.0, *)
@objc(PESDKAdjustEditControllerDelegate)
public protocol AdjustEditControllerDelegate : AnyObject
The AdjustEditControllerDelegate
defines methods that allow you to respond to messages from
the AdjustEditController
.
-
Tells the delegate when the preview view’s preferred insets changed.
Declaration
Swift
func adjustEditController(_ adjustEditController: AdjustEditController, didChangePreferredPreviewViewInsetsAnimated animated: Bool)
Parameters
adjustEditController
The adjust edit controller object that changed the insets.
animated
Whether or not this change should be animated.
-
Asks the delegate for the scroll view to which zoom events of the adjust edit controller should be forwarded.
Declaration
Swift
func adjustEditControllerTargetScrollView(_ adjustEditController: AdjustEditController) -> UIScrollView?
Parameters
adjustEditController
The adjust edit controller asking for the scroll view.
Return Value
The scroll view which should be the target of the proxy scroll view.
-
Tells the delegate that the controller’s
PhotoEditModel
changed.Declaration
Swift
func adjustEditControllerDidChangePhotoEditModel(_ adjustEditController: AdjustEditController)
Parameters
adjustEditController
The adjust edit controller that changed the photo edit model.
-
Called when sliding occurred in the slider.
Declaration
Swift
func adjustEditControllerDidSlide(_ adjustEditController: AdjustEditController, toValue value: CGFloat)
Parameters
adjustEditController
The adjust edit controller in which sliding occurred.
value
The value to which the slider was dragged.
-
Called when sliding ended in the slider.
Declaration
Swift
func adjustEditControllerDidEndSliding(_ adjustEditController: AdjustEditController)
Parameters
adjustEditController
The adjust edit controller in which sliding ended.