@protocol PSPDFImagePickerControllerDelegate <NSObject>
Delegate informing about image selection and editing in
Called when the image picker selected an image from the photo library or when an image from the camera has been taken. Dimensions of the image are derived from the original image, without modifications.
Called when the image picker did finish selecting an image or, if
shouldShowImageEditorenabled, when the image editor finished. Dimensions of the image are derived from the original image, without modifications, if
shouldShowImageEditoris disabled The cropped image dimensions from the image editor are used, if
shouldShowImageEditoris enabled. Images may be post processed to use a smaller size, depending on
- (void)imagePickerController:(nonnull PSPDFImagePickerController *)picker didFinishWithImage:(nonnull UIImage *)image andInfo:(nonnull NSDictionary<NSString *, id> *)info;
optional func imagePickerController(_ picker: PSPDFImagePickerController, didFinishWith image: NSImage, andInfo info: [String : Any])
The image info of the original image, selecting from the image picker.
Called when the image picker or the image editor cancelled without selecting an image.
NoteIf you implement this method, you are responsile for dismissing the image picker. Otherwise it will be dismissed automatically.