Enums
The following enums are available globally.
-
The
See moreRecordingMode
determins if a photo or a video should be recorded.Declaration
Swift
@objc public enum RecordingMode: Int
-
This enum is used to set the the tiling mode to strech or repeat.
See moreDeclaration
Swift
@objc public enum FrameTileMode: Int
-
This enum is used during the builder to detmin the current phase.
See moreDeclaration
Swift
@objc public enum FrameBuildMode: Int
-
Each patch consists of four groups. There are two basic layouts. The first one places the top and bottom group above the full width of the image, and the left and right group in between. The second layout works the other way around. This enum determins, what groups will be placed ‘inside’.
See moreDeclaration
Swift
@objc public enum FrameLayoutMode: Int
-
The
See moreCropHandle
enum provides helper methods to theCropHandleView
class and identifies the position of a crop handle.Declaration
Swift
public enum CropHandle
-
The actions that can be used in an instance of
TextOptionsToolController
.- selectFont: Change the font of the text.
- selectColor: Change the color of the text.
- selectBackgroundColor: Change the color of the text’s bounding box.
- selectAlignment: Change the alignment of the text.
- flip: Flip the label.
- straighten: Straighten the label.
- bringToFront: Bring the label to the front.
Declaration
Swift
@objc public enum TextAction: Int
-
The overlay actions that can be used in an instance of
TextToolControllerOptions
.- add: Switch to the add text UI.
- delete: Delete the label.
- undo: Undo the latest operation.
- redo: Redo the latest operation.
Declaration
Swift
@objc public enum TextOverlayAction: Int
-
The actions that can be used in an instance of
StickerOptionsToolController
.- selectColor: Change the color of the sticker.
- flip: Flip the sticker.
- straighten: Straighten the sticker.
- bringToFront: Bring the sticker to the front.
Declaration
Swift
@objc public enum StickerAction: Int
-
The overlay actions that can be used in an instance of
StickerToolControllerOptions
.- add: Switch to the add sticker UI.
- delete: Delete the sticker.
- undo: Undo
- redo: Redo
Declaration
Swift
@objc public enum StickerOverlayAction: Int
-
Represents the type of blend that should be used for several operations such as overlay.
See moreDeclaration
Swift
@objc(PESDKBlendMode) public enum BlendMode: Int
-
The tools that can be used in an instance of
AdjustToolController
.- Brightness: Change the brightness of the image.
- Contrast: Change the contrast of the image.
- Saturation: Change the saturation of the image.
Declaration
Swift
@objc public enum AdjustTool: Int
-
The tools that can be used in an instance of
BrushToolController
.- color: Change the color of the brush.
- size: Change the size of the brush.
- hardness: Change the hardness of the brush.
- bringToFront: Bring the drawing to the front.
Declaration
Swift
@objc public enum BrushTool: Int
-
The overlay actions that can be used in an instance of
BrushToolControllerOptions
.- undo: Undo the latest stroke.
- redo: Redo the latest stroke.
- delete: Delete the drawing.
Declaration
Swift
@objc public enum BrushOverlayAction: Int
-
Represents the type of focus that should be used in an image.
See moreDeclaration
Swift
@objc(PESDKFocusType) public enum FocusType: Int
-
A
See moreMenuItem
represents an item in the menu. It can either be a tool controller, an action or a visual separator.Declaration
Swift
public enum MenuItem
-
The log level determins what messages should be logged. For example if the log level is set to
See morewarn
, messages classified asinfo
wont be logged.Declaration
Swift
@objc public enum LogLevel: Int
-
The overlay actions that can be used in an instance of
PhotoEditViewControllerOptions
.- Undo: Undo the latest operation.
- Redo: Redo the latest operation.
Declaration
Swift
@objc public enum PhotoEditOverlayAction: Int
-
The different modes that an instance of
TextColorToolController
can handle.- Foreground: The mode to handle the foreground appearance of the text.
- Background: The mode to handle the background appearance of the text.
Declaration
Swift
@objc public enum TextColorToolControllerMode: Int
-
Describes all available transform actions.
See moreDeclaration
Swift
@objc public enum TransformAction: Int
-
This enum holds types of errors that occur while using the
CameraController
.- MultipleCallsToSetup: Indicates that setup is called multiple times.
- UnableToInitializeCaptureDevice: Indicates that the capture device can’t be initialized.
Declaration
Swift
@objc public enum CameraControllerError: Int, Error
-
Represents the orientation of an image and has the same meaning as the corresponding EXIF value.
See moreDeclaration
Swift
@objc(PESDKOrientation) public enum Orientation: Int
-
The tinting mode a sticker supports.
- none: The sticker’s color cannot be changed.
- solid: The sticker’s color is changed completely (i.e.
tintColor
is used). - colorized: The sticker is converted to a gray scale image and the selected tint color is then applied by the amount of the gray scale value.
Declaration
Swift
@objc(PESDKStickerTintMode) public enum StickerTintMode: Int
-
The overlay actions that can be used in an instance of
FrameToolController
.- BringToFront: Bring the frame to the front.
Declaration
Swift
@objc public enum FrameOverlayAction: Int
-
Used to represent the possible errors that can occur when configuring a
Configuration
object.- ReplacingClassNotASubclass: The class that is used to replace another class is not a subclass of that class.
Declaration
Swift
public enum ConfigurationError: Error