AdjustToolControllerOptions

@objc(PESDKAdjustToolControllerOptions) open class AdjustToolControllerOptions: ToolControllerOptions

Options for configuring an AdjustToolController.

  • Defines all allowed tools. The adjust tool buttons are shown in the given order. Defaults to show all available tools. To set this property from Obj-C, see the allowedAdjustToolsAsNSNumbers property.

    Declaration

    Swift

    open let 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 let adjustToolButtonConfigurationClosure: ((IconCaptionCollectionViewCell, AdjustTool) -> Void)?
  • This closure is called every time the user selects a tool.

    Declaration

    Swift

    open let adjustToolSelectedClosure: ((AdjustTool) -> Void)?
  • This closure can be used to configure the slider that is visible when selecting an adjust tool.

    Declaration

    Swift

    open let 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 let 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 let sliderChangedValueClosure: ((Slider, AdjustTool) -> Void)?
  • Returns a newly allocated instance of AdjustToolControllerOptions using the default builder.

    Declaration

    Swift

    public convenience init()

    Return Value

    An instance of AdjustToolControllerOptions.

  • Returns a newly allocated instance of AdjustToolControllerOptions using the given builder.

    Declaration

    Swift

    public init(builder: AdjustToolControllerOptionsBuilder)

    Parameters

    builder

    A AdjustToolControllerOptionsBuilder instance.

    Return Value

    An instance of AdjustToolControllerOptions.