TextOptionsToolControllerOptionsBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKTextOptionsToolControllerOptionsBuilder)
open class TextOptionsToolControllerOptionsBuilder : ToolControllerOptionsBuilder
The default TextOptionsToolControllerOptionsBuilder
for TextOptionsToolControllerOptions
.
-
Defines all allowed actions. Only buttons for allowed action are visible. Defaults to show all available actions.
Declaration
Swift
open var allowedTextActions: [TextAction]
-
This closure allows further configuration of the action buttons. The closure is called for each action button and has the button and its corresponding action as parameters.
Declaration
Swift
open var actionButtonConfigurationClosure: ((MenuCollectionViewCell, TextAction) -> Void)?
-
This closure allows further configuration of the overlay actions. The closure is called for each overlay and has the overlay and its corresponding enum value as parameters.
Declaration
Swift
open var overlayButtonConfigurationClosure: ((OverlayButton, TextOverlayAction) -> Void)?
-
This closure is called when the user selects an action.
Declaration
Swift
open var textActionSelectedClosure: ((TextAction) -> Void)?
-
This closure is called when the user selects an overlay action.
Declaration
Swift
open var overlayActionSelectedClosure: ((TextOverlayAction) -> Void)?
-
Defines all allowed overlay actions. Only buttons for allowed action are visible.
Declaration
Swift
open var allowedTextOverlayActions: [TextOverlayAction]
-
The insets used to layout the overlay buttons in their container. The
.top
value is ignored.Declaration
Swift
open var overlayButtonInsets: UIEdgeInsets
-
An array of
TextAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedTextActions
with the correspondingTextAction
values.Declaration
Swift
@objc(allowedTextActions) open var _objCAllowedTextActions: [NSNumber] { get set }
-
An array of
TextOverlayAction
raw values wrapped in NSNumbers. Setting this property overrides any previously set values inallowedTextOverlayActions
with the correspondingTextOverlayAction
values.Declaration
Swift
@objc(allowedTextOverlayActions) open var _objCAllowedTextOverlayActions: [NSNumber] { get set }