PhotoEditPreviewControllerDelegate
@available(iOS 9.0, *)
@objc(PESDKPhotoEditPreviewControllerDelegate)
public protocol PhotoEditPreviewControllerDelegate : AnyObject
The PhotoEditPreviewControllerDelegate
defines methods that allow you to respond to messages from
the PhotoEditPreviewController
.
-
Asks the delegate whether the preview should be enabled.
Declaration
Swift
func photoEditPreviewControllerPreviewEnabled(_ photoEditPreviewController: PhotoEditPreviewController) -> Bool
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
Whether the preview should be enabled.
-
Asks the delegate for the render modes to render in the preview.
Declaration
Swift
func photoEditPreviewControllerRenderMode(_ photoEditPreviewController: PhotoEditPreviewController) -> PESDKRenderMode
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
The render modes to render.
-
Asks the delegate for the background color in the preview.
Declaration
Swift
func photoEditPreviewControllerBackgroundColor(_ photoEditPreviewController: PhotoEditPreviewController) -> UIColor
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
The background color in the preview.
-
Asks the delegate for the preview insets.
Declaration
Swift
func photoEditPreviewControllerPreviewInsets(_ photoEditPreviewController: PhotoEditPreviewController) -> UIEdgeInsets
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
The preview insets.
-
Asks the delegate for the preview scale factor.
Declaration
Swift
func photoEditPreviewControllerPreviewScale(_ photoEditPreviewController: PhotoEditPreviewController) -> CGFloat
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
The preview scale factor.
-
Asks the delegate whether proxy zooming should be active.
Declaration
Swift
func photoEditPreviewControllerProxyZoomingActive(_ photoEditPreviewController: PhotoEditPreviewController) -> Bool
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
Whether proxy zooming should be enabled.
-
Asks the delegate to reset proxy zooming.
Declaration
Swift
func photoEditPreviewControllerResetProxyZooming(_ photoEditPreviewController: PhotoEditPreviewController)
Parameters
photoEditPreviewController
The photo edit preview controller asking.
-
Called when the photo edit model did change.
Declaration
Swift
func photoEditPreviewControllerDidChangePhotoEditModel(_ photoEditPreviewController: PhotoEditPreviewController)
Parameters
photoEditPreviewController
The photo edit preview controller that changed the model.
-
Asks the delegate for the configuration.
Declaration
Swift
func photoEditPreviewControllerConfiguration(_ photoEditPreviewController: PhotoEditPreviewController) -> Configuration
Parameters
photoEditPreviewController
The photo edit preview controller asking.
Return Value
The configuration.