AdobeImageEditorSession Class Reference
| Inherits from | NSObject |
| Declared in | AdobeImageEditorSession.h |
Overview
Photo Editor Sessions are obtained from instances of
AdobeUXImageEditorViewController through the session property. A session
tracks and stores all user actions taken in the
AdobeUXImageEditorViewController it was obtained from.
Tasks
Compatibility Methods
-
openproperty -
cancelledproperty -
modifiedproperty -
– createContextWithImage: -
– createContextWithImage:maxSize:
Properties
cancelled
Specifies if the session has been cancelled.
@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelledDiscussion
Specifies if the session has been cancelled.
Value will be YES if the user has invalided all actions by pressing “Cancel” in the generating AdobeUXImageEditorViewController.
Declared In
AdobeImageEditorSession.hmodified
Specifies whether the session contains any actions.
@property (nonatomic, assign, readonly, getter=isModified) BOOL modifiedDiscussion
Specifies whether the session contains any actions.
Value will be YES if the user has modified the image in the generating AdobeUXImageEditorViewController.
Declared In
AdobeImageEditorSession.hopen
Specifies whether the session is still open.
@property (nonatomic, assign, readonly, getter=isOpen) BOOL openDiscussion
Specifies whether the session is still open.
Value will be YES if the generating AdobeUXImageEditorViewController has not been dismissed.
Declared In
AdobeImageEditorSession.hInstance Methods
createContextWithImage:
Generates a new AdobeImageEditorContext.
- (AdobeImageEditorContext *)createContextWithImage:(UIImage *)imageParameters
- image
The image to generate the context with.
Return Value
A new photo editor context.
Discussion
Generates a new AdobeImageEditorContext.
Contexts may be used to replay the session’s actions on images. See AdobeImageEditorContext for more information.
Warning: Calling this method from any thread other in the main thread may result in undefined behavior.
Declared In
AdobeImageEditorSession.hcreateContextWithImage:maxSize:
Generates a new AFPhotoEditorContext with a maximum size.
- (AdobeImageEditorContext *)createContextWithImage:(UIImage *)image maxSize:(CGSize)sizeParameters
- image
The image to generate the context with.
- size
The maximum size the context should render the image at.
Return Value
A new photo editor context that can be used to replay the session’s actions. See AFPhotoEditorContext.
Discussion
Generates a new AFPhotoEditorContext with a maximum size.
Warning: Calling this method from any thread other in the main thread may result in undefined behavior.
Declared In
AdobeImageEditorSession.h