ImagePickerPresenterDelegate
public protocol ImagePickerPresenterDelegate : AnyObject
Represents a type that receives selection and cancel events from a ImagePickerPresenter
.
-
Method called when an image has been selected by the
ImagePickerPresenter
.Declaration
Swift
func didSelect(asset: PHAsset?, image: UIImage, with imageURL: URL?, from imagePickerPresenter: ImagePickerPresenter)
Parameters
asset
The
PHAsset
associated with the image.image
The image selected.
imageURL
The
URL
where the image is located.imagePickerPresenter
The
ImagePickerPresenter
that selected the image. -
Method called when a movie has been selected by the
ImagePickerPresenter
.Declaration
Swift
func didSelect(asset: PHAsset?, movieURL: URL, from imagePickerPresenter: ImagePickerPresenter)
Parameters
asset
The
PHAsset
associated with the movie.imageURL
The
URL
where the movie is located.imagePickerPresenter
The
ImagePickerPresenter
that selected the movie. -
Method called when image picking has been cancelled.
Declaration
Swift
func didCancelPickingImage()