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

    @available(*, deprecated, message: "Use `allowedFocusModes` instead.")
    open var allowedFocusTypes: [FocusType] { get set }
  • Defines all allowed focus modes. The focus buttons are shown in the given order. Defaults to show all available modes. The .off mode is always added. To set this property from Obj-C, see the allowedFocusModesAsNSNumbers property.

    Declaration

    Swift

    open var allowedFocusModes: [FocusMode] { 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

    @available(*, deprecated, message: "Use `focusModeButtonConfigurationClosure` instead.")
    open var focusTypeButtonConfigurationClosure: ((IconCaptionCollectionViewCell, FocusType) -> Void)? { get set }
  • This closure allows further configuration of the focus mode buttons. The closure is called for each focus mode button and has the button and its corresponding focus mode as parameters.

    Declaration

    Swift

    open var focusModeButtonConfigurationClosure: ((IconCaptionCollectionViewCell, FocusMode) -> Void)?
  • This closure is called when the user selects a focus type.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `focusModeSelectedClosure` instead.")
    open var focusTypeSelectedClosure: ((FocusType) -> Void)? { get set }
  • This closure is called when the user selects a focus mode.

    Declaration

    Swift

    open var focusModeSelectedClosure: ((FocusMode) -> 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 is called whenever the slider changes its value. The instance of Slider and the active focus type are passed as parameters.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `sliderUpdatedValueClosure` instead.")
    open var sliderChangedValueClosure: ((Slider, FocusType) -> Void)? { get set }
  • This closure is called whenever the slider changes its value. The instance of Slider and the active focus mode are passed as parameters.

    Declaration

    Swift

    open var sliderUpdatedValueClosure: ((Slider, FocusMode) -> Void)?
  • 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 in allowedFocusTypes with the corresponding PESDKFocusType values.

    Declaration

    Swift

    @available(*, deprecated, message: "Use `allowedFocusModesAsNSNumbers` instead.")
    open var allowedFocusTypesAsNSNumbers: [NSNumber] { get set }
  • An array of PESDKFocusMode raw values wrapped in NSNumbers. Setting this property overrides any previously set values in allowedFocusModes with the corresponding PESDKFocusMode values.

    Declaration

    Swift

    open var allowedFocusModesAsNSNumbers: [NSNumber] { get set }