Common
-
The
See moreCameraViewController
class provides a dialog to perform serveral tasks regarding the camera. These include taking photos, switching on the flash, and such.Declaration
Swift
@available(iOS 9.0, *) @objcMembers @objc(PESDKCameraViewController) open class CameraViewController : UIViewController
-
An Configuration defines behaviour and look of all view controllers provided by the PhotoEditorSDK. It uses the builder pattern to create an immutable object via a closure. To configure the different editors and viewControllers contained in the SDK, edit their options in the corresponding
See moreconfigure*ViewController
method of theConfigurationBuilder
.Declaration
Swift
@available(iOS 9.0, *) @objcMembers @objc(PESDKConfiguration) open class Configuration : NSObject
-
See moreIMGLY
provides methods to unlock and customize the SDK.Declaration
Swift
@available(iOS 9.0, *) @objcMembers open class IMGLY : NSObject
-
PESDK
provides methods to unlock and customize the SDK.Declaration
Swift
@available(iOS 9.0, *) @objcMembers public final class PESDK : IMGLY
-
An object that wraps different types of image data.
The
Photo
class currently supportsURL
,Data
andUIImage
as sources for photos. The image type to choose depends on where the image comes from:- Use
URL
for image files on disk. - Use
Data
for images from the web. - Use
UIImage
only if the image was already used in the UI.
Using
URL
orData
will have the least amount of memory footprint because we will do the image scaling without reading the full image if possible. We also try to do this withUIImage
, however if the instance ofUIImage
represents a wide-color image we will have to read the full image which can lead to memory pressure for large images.If memory is still an issue when using
Data
objects, it is recommended that you write the data to disk and initialize aPhoto
with a file url instead.When
URL
orData
is used we are also able to keep any associated EXIF data, whichUIImage
does not support.The data format can be any image format that can be read by iOS, for example PNG, JPEG or HEIF.
Note
You don’t have to pre-scale your image because we’re already doing any work that is necessary.Declaration
Swift
@objcMembers @objc(PESDKPhoto) public final class Photo : NSObject
- Use
-
A
See morePhotoEditModel
holds information about any modification that should be applied to an image.Declaration
Swift
@available(iOS 9.0, *) public struct PhotoEditModel : Equatable
-
A
See morePhotoEditRenderer
takes aCIImage
and aPhotoEditModel
as input and takes care of applying all necessary effects and filters to the image. The output image can then be rendered into anEAGLContext
or converted into aCGImage
instance.Declaration
Swift
@available(iOS 9.0, *) @objcMembers @objc(PESDKPhotoEditRenderer) open class PhotoEditRenderer : NSObject
-
A
See morePhotoEditToolController
is the base class for any tool controller. Tool controllers can be presented in aPhotoEditViewController
and are displayed above aPhotoEditPreviewController
.Declaration
Swift
@available(iOS 9.0, *) @objcMembers @objc(PESDKPhotoEditToolController) open class PhotoEditToolController : ViewController
-
A
See morePhotoEditViewController
is the main starting point for the SDK. It displays the rendered photo and a menu. It can presentPhotoEditToolController
objects and react to changes. It can be presented on its own (thus displaying a toolbar for navigation at the bottom) or be embedded into aUINavigationController
(thus using the navigation controller’s navigation bar for navigation).Declaration
Swift
@available(iOS 9.0, *) @objcMembers @objc(PESDKPhotoEditViewController) open class PhotoEditViewController : MediaEditViewController
-
The
See morePhotoEditViewControllerDelegate
protocol defines methods that allow you to respond to the events of an instance ofPhotoEditViewController
.Declaration
Swift
@available(iOS 9.0, *) @objc(PESDKPhotoEditViewControllerDelegate) public protocol PhotoEditViewControllerDelegate