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
-
open
property -
cancelled
property -
modified
property -
– createContextWithImage:
-
– createContextWithImage:maxSize:
Properties
cancelled
Specifies if the session has been cancelled.
@property (nonatomic, assign, readonly, getter=isCancelled) BOOL cancelled
Discussion
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.h
modified
Specifies whether the session contains any actions.
@property (nonatomic, assign, readonly, getter=isModified) BOOL modified
Discussion
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.h
open
Specifies whether the session is still open.
@property (nonatomic, assign, readonly, getter=isOpen) BOOL open
Discussion
Specifies whether the session is still open.
Value will be YES if the generating AdobeUXImageEditorViewController has not been dismissed.
Declared In
AdobeImageEditorSession.h
Instance Methods
createContextWithImage:
Generates a new AdobeImageEditorContext.
- (AdobeImageEditorContext *)createContextWithImage:(UIImage *)image
Parameters
- 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.h
createContextWithImage:maxSize:
Generates a new AFPhotoEditorContext with a maximum size.
- (AdobeImageEditorContext *)createContextWithImage:(UIImage *)image maxSize:(CGSize)size
Parameters
- 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