ToolControllerOptionsBuilder
@objcMembers
@objc(PESDKToolControllerOptionsBuilder)
open class ToolControllerOptionsBuilder : NSObject
The default ToolControllerOptionsBuilder
for ToolControllerOptions
.
-
The background color of the menu. Unless this is set the configuration’s global background color, will be used.
Declaration
Swift
open var menuBackgroundColor: UIColor?
-
A configuration closure to configure the toolbars title view.
Declaration
Swift
open var titleViewConfigurationClosure: ViewConfigurationClosure?
-
This closure will be called when a tool has been entered.
Declaration
Swift
open var didEnterToolClosure: DidEnterToolClosure?
-
The closure will be called when a tool is about to be left.
Declaration
Swift
open var willLeaveToolClosure: WillLeaveToolClosure?
-
A configuration closure to configure the apply button displayed at the bottom right. Defaults to a checkmark icon.
Declaration
Swift
open var applyButtonConfigurationClosure: ButtonConfigurationClosure?
-
A configuration closure to configure the discard button displayed at the bottom left. Defaults to a cross icon.
Declaration
Swift
open var discardButtonConfigurationClosure: ButtonConfigurationClosure?
-
Creates a new instance of
ToolControllerOptionsBuilder
initialized with the given options.Declaration
Swift
public init(editorOptions: ToolControllerOptions)
Parameters
editorOptions
A
ToolControllerOptions
instance.