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
@available(*, deprecated, message: "Use addPhotoLibraryItemAttachmentAction(_ attachmentsViewController: FUIAttachmentsViewController, action: FUIAddPhotoLibraryItemsAttachmentAction, didFinishPicking results: [PHPickerResult]﹚ instead") 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.