FlaneurImagePickerControllerDelegate
public protocol FlaneurImagePickerControllerDelegate: AnyObject
A set of methods that your delegate object must implement to interact with the image picker interface.
-
Tells the delegate that the user is done picking images.
Declaration
Swift
func flaneurImagePickerController(_ picker: FlaneurImagePickerController,
Parameters
picker
The controller object managing the image picker interface.
images
An array of picked images of type FlaneurImageDescription.
userInfo
Arbitrary data that was passed to the controller.
-
Asks the delegate what to do with the new image the user just tapped.
Declaration
Swift
func flaneurImagePickerController(_ picker: FlaneurImagePickerController,
Parameters
picker
The controller object managing the image picker interface.
count
The current size of the image selection (ignoring the new image).
newImage
The new image the user just tapped.
Return Value
The action to perform regarding this new image.
-
Tells the delegate that the user cancelled the pick operation.
Declaration
Swift
func flaneurImagePickerControllerDidCancel(_ picker: FlaneurImagePickerController)
Parameters
picker
The controller object managing the image picker interface.
-
Tells the delegate that the image picker controller met an error. It shouldn’t be called but it can be useful for error reporting on implementing clients.
Declaration
Swift
func flaneurImagePickerControllerDidFail(_ error: FlaneurImagePickerError)
Parameters
error
The error met by the picker.