FrameToolControllerOptionsBuilder
@objc(PESDKFrameToolControllerOptionsBuilder) open class FrameToolControllerOptionsBuilder: ToolControllerOptionsBuilder
The default FrameToolControllerOptionsBuilder
for FrameToolControllerOptions
.
-
This closure is called when the user selects a frame. The closure is passed
nil
when no frame was selected.Declaration
Swift
open var selectedFrameClosure: ((Frame?) -> Void)?
-
This closure allows further customization of the ‘No Frame’ cell.
Declaration
Swift
open var noFrameCellConfigurationClosure: ((IconCaptionCollectionViewCell) -> Void)?
-
This closure allows further customization of the cells of a frame.
Declaration
Swift
open var frameCellConfigurationClosure: ((IconBorderedCollectionViewCell, Frame) -> Void)?
-
This closure is called when installing the frame data source. You can use it to save a reference to the frame data source.
Declaration
Swift
open var frameDataSourceConfigurationClosure: ((FrameDataSource) -> 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
open var overlayButtonConfigurationClosure: ((OverlayButton, FrameOverlayAction) -> Void)?
-
Defines all allowed actions. Only buttons for allowed actions are visible. Defaults to show all available actions. To set this property from Obj-C, see the
allowedFrameOverlayActionsAsNSNumbers
property.Declaration
Swift
open var allowedFrameOverlayActions: [FrameOverlayAction] = [.bringToFront]
-
This closure is called when the user selects an action.
Declaration
Swift
open var frameOverlayActionSelectedClosure: ((FrameOverlayAction) -> Void)?
-
An array of
FrameOverlayAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedFrameOverlayActions
with the correspondingFrameOverlayAction
values.Declaration
Swift
open var allowedFrameOverlayActionsAsNSNumbers: [NSNumber]