AdjustToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKAdjustToolControllerOptionsBuilder)
open class AdjustToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default AdjustToolControllerOptionsBuilder
for AdjustToolControllerOptions
.
-
Defines all allowed tools. The adjust tool buttons are always shown in the given order. Defaults to show all available adjust tools. To set this property from Obj-C, see the
allowedAdjustToolsAsNSNumbers
property.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: ((IconCaptionCollectionViewCell, 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)?
-
An array of
AdjustTool
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedAdjustTools
with the correspondingAdjustTool
values.Declaration
Swift
open var allowedAdjustToolsAsNSNumbers: [NSNumber] { get set }