AdjustToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKAdjustToolControllerOptionsBuilder)
open class AdjustToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default AdjustToolControllerOptionsBuilder
for AdjustToolControllerOptions
.
-
Whether to show a reset button to reset the applied adjustments. Defaults to
true
.Declaration
Swift
public var showResetButton: Bool
-
Defines all allowed tools. The adjust tool buttons are always shown in the given order. Defaults to show all available adjust tools.
Declaration
Swift
open var allowedAdjustTools: [AdjustTool]
-
This closure allows further configuration of the adjust tool buttons. The closure is called for each adjust tool button and has the button and its corresponding adjust tool as parameters.
Declaration
Swift
open var adjustToolButtonConfigurationClosure: ((MenuCollectionViewCell, AdjustTool?) -> Void)?
-
This closure is called every time the user selects a tool.
Declaration
Swift
open var adjustToolSelectedClosure: ((AdjustTool?) -> Void)?
-
This closure can be used to configure the slider that is visible when selecting an adjust tool.
Declaration
Swift
open var sliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the view that contains the slider and that is visible when selecting an adjust tool.
Declaration
Swift
open var sliderContainerConfigurationClosure: ViewConfigurationClosure?
-
This closure will be called whenever the value of the slider changes. The
Slider
and the activeAdjustTool
will be passed as parameters.Declaration
Swift
open var sliderChangedValueClosure: ((Slider, AdjustTool) -> Void)?
-
This closure allows further configuration of the overlay buttons. The closure is called for each button and has the button and its corresponding enum value as parameters.
Declaration
Swift
public var overlayButtonConfigurationClosure: ((OverlayButton, AdjustOverlayAction) -> Void)?
-
Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions.
Declaration
Swift
open var allowedAdjustOverlayActions: [AdjustOverlayAction]
-
This closure is called when the user selects an action.
Declaration
Swift
open var adjustActionSelectedClosure: ((AdjustOverlayAction) -> Void)?
-
The insets used to layout the overlay buttons in their container. The
.top
value is ignored.Declaration
Swift
open var overlayButtonInsets: UIEdgeInsets
-
An array of
AdjustTool
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedAdjustTools
with the correspondingAdjustTool
values.Declaration
Swift
@objc(allowedAdjustTools) open var _objCAllowedAdjustTools: [NSNumber] { get set }
-
An array of
AdjustOverlayAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedAdjustOverlayActions
with the correspondingAdjustOverlayAction
values.Declaration
Swift
@objc(allowedAdjustOverlayActions) open var _objCAllowedAdjustOverlayActions: [NSNumber] { get set }
-
This closure allows further configuration of the adjust tool buttons. The closure is called for each adjust tool button and has the button and its corresponding adjust tool as parameters.
Declaration
Swift
@objc(adjustToolButtonConfigurationBlock) open var _objCAdjustToolButtonConfigurationBlock: ((MenuCollectionViewCell, NSNumber?) -> Void)? { get set }
-
This closure is called every time the user selects a tool.
Declaration
Swift
@objc(adjustToolSelectedBlock) open var _objCAdjustToolSelectedBlock: ((NSNumber?) -> Void)? { get set }