FocusToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKFocusToolControllerOptionsBuilder)
open class FocusToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default FocusToolControllerOptionsBuilder
for FocusToolControllerOptions
.
-
Defines all allowed focus types. The focus buttons are shown in the given order. Defaults to show all available modes. The .Off type is always added. To set this property from Obj-C, see the
allowedFocusTypesAsNSNumbers
property.Declaration
Swift
open var allowedFocusTypes: [FocusType] { get set }
-
This closure allows further configuration of the focus type buttons. The closure is called for each focus type button and has the button and its corresponding focus type as parameters.
Declaration
Swift
open var focusTypeButtonConfigurationClosure: ((IconCaptionCollectionViewCell, FocusType) -> Void)?
-
This closure is called when the user selects a focus type.
Declaration
Swift
open var focusTypeSelectedClosure: ((FocusType) -> Void)?
-
This closure can be used to configure the slider.
Declaration
Swift
open var sliderConfigurationClosure: ((Slider) -> Void)?
-
This closure can be used to configure the view that contains the slider.
Declaration
Swift
open var sliderContainerConfigurationClosure: ViewConfigurationClosure?
-
This closure can be used to configure the circle gradient view.
Declaration
Swift
open var circleGradientViewConfigurationClosure: ((CircleGradientView) -> Void)?
-
This closure can be used to configure the box gradient view.
Declaration
Swift
open var boxGradientViewConfigurationClosure: ((BoxGradientView) -> Void)?
-
An array of
PESDKFocusType
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedFocusTypes
with the correspondingPESDKFocusType
values.Declaration
Swift
open var allowedFocusTypesAsNSNumbers: [NSNumber] { get set }