ConfigurationBuilder
@available(iOS 9.0, *)
@objcMembers
@objc(PESDKConfigurationBuilder)
open class ConfigurationBuilder : NSObject
The configuration builder object offers all properties of Configuration
in
a mutable version, in order to build an immutable Configuration
object. To
further configure the different viewcontrollers, use the configureXYZViewController
methods to edit the given options.
-
The overall theme used to configure colors of the UI elements. Defaults to
Theme.dark
.Declaration
Swift
open var theme: Theme { get set }
-
The overall theme used to configure colors of the UI elements. Defaults to
PESDKTheme.dark
. This property should only be used if you are using Objective-C.Declaration
Swift
@objc(theme) open var _objCTheme: _ObjCTheme
-
This closure is called after the theme was applied via
UIAppearance
proxies during the initialization of aCameraViewController
or aMediaEditViewController
. It is intended to run custom calls toUIAppearance
proxies. The immutable active theme is passed to this closure.Declaration
Swift
open var appearanceProxyConfigurationClosure: ((Theme) -> Void)?
-
This closure is called after the theme was applied via
UIAppearance
proxies during the initialization of aCameraViewController
or aMediaEditViewController
. It is intended to run custom calls toUIAppearance
proxies. The immutable active theme is passed to this closure. This property should only be used if you are using Objective-C and it will only be called if the corresponding Swift closureappearanceProxyConfigurationClosure
isnil
.Declaration
Swift
@objc(appearanceProxyConfigurationClosure) open var _objCAppearanceProxyConfigurationClosure: ((_ObjCTheme) -> Void)?
-
The asset catalog which configures all assets that are available for editing tasks, such as stickers, frames, effects, overlays, fonts, and text designs. Defaults to
AssetCatalog.shared
.Declaration
Swift
open var assetCatalog: AssetCatalog
-
Generic method that returns the options of a given type, if available.
Declaration
Swift
public func getOptions<T>() -> T? where T : AnyObject
Return Value
The options for the given type.
-
Adds an options object to this builder.
Declaration
Swift
public func addOptions(_ options: AnyObject)
Parameters
options
The options object to add.
-
Options for the
CameraViewController
.Declaration
Swift
open func configureCameraViewController(_ builder: (CameraViewControllerOptionsBuilder) -> Void)
-
Options for the
FilterToolController
.Declaration
Swift
open func configureFilterToolController(_ builder: (FilterToolControllerOptionsBuilder) -> Void)
-
Options for the
OverlayToolController
.Declaration
Swift
open func configureOverlayToolController(_ builder: (OverlayToolControllerOptionsBuilder) -> Void)
-
Options for the
StickerToolController
.Declaration
Swift
open func configureStickerToolController(_ builder: (StickerToolControllerOptionsBuilder) -> Void)
-
Options for the
StickerOptionsToolController
.Declaration
Swift
open func configureStickerOptionsToolController(_ builder: (StickerOptionsToolControllerOptionsBuilder) -> Void)
-
Options for the
StickerColorToolController
.Declaration
Swift
open func configureStickerColorToolController(_ builder: (ColorToolControllerOptionsBuilder) -> Void)
-
Options for the
FocusToolController
.Declaration
Swift
open func configureFocusToolController(_ builder: (FocusToolControllerOptionsBuilder) -> Void)
-
Options for the
TransformToolController
.Declaration
Swift
@available(*, deprecated, renamed: "configureTransformToolController") open func transformToolControllerOptions(_ builder: (TransformToolControllerOptionsBuilder) -> Void)
-
Options for the
TextToolController
.Declaration
Swift
open func configureTextToolController(_ builder: (TextToolControllerOptionsBuilder) -> Void)
-
Options for the
TextOptionsToolController
.Declaration
Swift
open func configureTextOptionsToolController(_ builder: (TextOptionsToolControllerOptionsBuilder) -> Void)
-
Options for the
TextFontToolController
.Declaration
Swift
open func configureTextFontToolController(_ builder: (TextFontToolControllerOptionsBuilder) -> Void)
-
Options for the
TextColorToolController
.Declaration
Swift
open func configureTextColorToolController(_ builder: (TextColorToolControllerOptionsBuilder) -> Void)
-
Options for the
AdjustToolController
.Declaration
Swift
open func configureAdjustToolController(_ builder: (AdjustToolControllerOptionsBuilder) -> Void)
-
Options for the
BrushToolController
.Declaration
Swift
open func configureBrushToolController(_ builder: (BrushToolControllerOptionsBuilder) -> Void)
-
Options for the
BrushToolController
.Declaration
Swift
open func configureBrushColorToolController(_ builder: (BrushColorToolControllerOptionsBuilder) -> Void)
-
Options for the
TransformToolController
.Declaration
Swift
open func configureTransformToolController(_ builder: (TransformToolControllerOptionsBuilder) -> Void)
-
Options for the
FrameToolController
.Declaration
Swift
open func configureFrameToolController(_ builder: (FrameToolControllerOptionsBuilder) -> Void)
-
Options for the
FrameOptionsToolController
.Declaration
Swift
open func configureFrameOptionsToolController(_ builder: (FrameOptionsToolControllerOptionsBuilder) -> Void)
-
Options for the
TextDesignToolController
.Declaration
Swift
open func configureTextDesignToolController(_ builder: (TextDesignToolControllerOptionsBuilder) -> Void)
-
Options for the
TextDesignOptionsToolController
.Declaration
Swift
open func configureTextDesignOptionsToolController(_ builder: (TextDesignOptionsToolControllerOptionsBuilder) -> Void)
-
Global snapping options for all sprites, e.g., stickers, texts, and text designs.
Declaration
Swift
open func configureSnapping(_ builder: (SnappingOptionsBuilder) -> Void)
-
Read configuration from a dictionary. This process will modify the current
assetCatalog
associated with this builder if the givendictionary
configures any assets.Declaration
Swift
@objc(configureFromDictionary:error:) func configure(from dictionary: [String : Any]) throws
Parameters
dictionary
A valid JSON object.
-
Read configuration from data. This process will modify the current
assetCatalog
associated with this builder if the givendata
configures any assets.Declaration
Swift
@objc(configureFromData:error:) func configure(from data: Data) throws
Parameters
data
A serialized JSON object.
-
Options for the
TrimToolController
.Declaration
Swift
open func configureTrimToolController(_ builder: (TrimToolControllerOptionsBuilder) -> Void)
-
Options for the
VideoEditViewController
.Declaration
Swift
open func configureVideoEditViewController(_ builder: (VideoEditViewControllerOptionsBuilder) -> Void)