Enums

The following enums are available globally.

  • The RecordingMode determins if a photo or a video should be recorded.

    See more

    Declaration

    Swift

    @objc public enum RecordingMode: Int
  • This enum is used to set the the tiling mode to strech or repeat.

    See more

    Declaration

    Swift

    @objc public enum FrameTileMode: Int
  • This enum is used during the builder to detmin the current phase.

    See more

    Declaration

    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 more

    Declaration

    Swift

    @objc public enum FrameLayoutMode: Int
  • The CropHandle enum provides helper methods to the CropHandleView class and identifies the position of a crop handle.

    See more

    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.
    See more

    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.
    See more

    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.
    See more

    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
    See more

    Declaration

    Swift

    @objc public enum StickerOverlayAction: Int
  • Represents the type of blend that should be used for several operations such as overlay.

    See more

    Declaration

    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.
    See more

    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.
    See more

    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.
    See more

    Declaration

    Swift

    @objc public enum BrushOverlayAction: Int
  • Represents the type of focus that should be used in an image.

    See more

    Declaration

    Swift

    @objc(PESDKFocusType) public enum FocusType: Int
  • A MenuItem represents an item in the menu. It can either be a tool controller, an action or a visual separator.

    See more

    Declaration

    Swift

    public enum MenuItem
  • The log level determins what messages should be logged. For example if the log level is set to warn, messages classified as info wont be logged.

    See more

    Declaration

    Swift

    @objc public enum LogLevel: 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.
    See more

    Declaration

    Swift

    @objc public enum TextColorToolControllerMode: Int
  • Describes all available transform actions.

    See more

    Declaration

    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.
    See more

    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 more

    Declaration

    Swift

    @objc(PESDKOrientation) public enum Orientation: Int
  • A MenuItem represents an item in the menu. It can either be a tool controller, an action or a visual separator.

    See more

    Declaration

    Swift

    public enum CustomMenuItem
  • 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.
    See more

    Declaration

    Swift

    @objc(PESDKStickerTintMode) public enum StickerTintMode: 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.
    See more

    Declaration

    Swift

    public enum ConfigurationError: Error