FUIAddPhotoLibraryItemsAttachmentActionDelegate
@available(iOS 14.0, *)
public protocol FUIAddPhotoLibraryItemsAttachmentActionDelegate : AnyObject
The delegate protocol for FUIAddPhotoLibraryItemAttachmentAction.
The function when PHPicker is used for selecting Photo Library items.
-
The function is invoked when
PHPickeris used for selecting Photo Library items.Declaration
Swift
func addPhotoLibraryItemAttachmentAction(_ action: FUIAddPhotoLibraryItemsAttachmentAction, didFinishPicking results: [PHPickerResult])Parameters
actionThe
FUIAddPhotoLibraryItemsAttachmentActionobject.resultsThe photos that were selected by the user.
-
The function is invoked when
PHPickeris used for selecting Photo Library items. The attachment controller that this action was added to is passed in as a parameter.Declaration
Swift
func addPhotoLibraryItemAttachmentAction(_ attachmentsViewController: FUIAttachmentsViewController, action: FUIAddPhotoLibraryItemsAttachmentAction, didFinishPicking results: [PHPickerResult])Parameters
attachmentsViewControllerThe
FUIAttachmentsViewControllerthat this action was added to.actionThe
FUIAddPhotoLibraryItemsAttachmentActionobject.resultsThe photos that were selected by the user.
-
The function is invoked when
PHPickeris used for selecting Photo Library items with location extraction enabled. Location is extracted from the PHAsset metadata in the photo library.Declaration
Swift
func addPhotoLibraryItemAttachmentAction(_ attachmentsViewController: FUIAttachmentsViewController, action: FUIAddPhotoLibraryItemsAttachmentAction, didFinishPicking results: [FUIPhotoPickerResult])Parameters
attachmentsViewControllerThe
FUIAttachmentsViewControllerthat this action was added to.actionThe
FUIAddPhotoLibraryItemsAttachmentActionobject.resultsArray of
FUIPhotoPickerResultcontaining each selected item and its extracted location (if available).
-
This function is invoked immediately after the photo picker is dismissed and before location extraction begins. Use this to show a loading indicator while locations are being extracted from selected photos.
Declaration
Swift
func addPhotoLibraryItemAttachmentActionDidStartProcessing(_ attachmentsViewController: FUIAttachmentsViewController, action: FUIAddPhotoLibraryItemsAttachmentAction)Parameters
attachmentsViewControllerThe
FUIAttachmentsViewControllerthat this action was added to.actionThe
FUIAddPhotoLibraryItemsAttachmentActionobject.