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 active AdjustTool 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

    public var allowedAdjustOverlayActions: [AdjustOverlayAction]
  • This closure is called when the user selects an action.

    Declaration

    Swift

    public var adjustActionSelectedClosure: ((AdjustOverlayAction) -> Void)?