FUIAttachmentsViewControllerDelegate
public protocol FUIAttachmentsViewControllerDelegate : AnyObject
A delegate protocol for FUIAttachmentsViewController
.
-
To notify when user tapped delete to an attachment.
Declaration
Swift
func attachmentsViewController(_ attachmentsViewController: FUIAttachmentsViewController, didPressDeleteAtIndex index: Int)
Parameters
attachmentsViewController
The calling
FUIAttachmentsViewController
.index
The location of the attachment to be deleted.
-
This function is invoked, if the controller failed to obtain a valid file URL for an attachment which should be presented. This may occur when the developer returns
nil
toFUIAttachmentsViewControllerDataSource
urlForAttachmentAtIndex:
method, or if the file at the URL provided cannot be presented by aUIDocumentInteractionController
.Declaration
Swift
func attachmentsViewController(_ attachmentsViewController: FUIAttachmentsViewController, couldNotPresentAttachmentAtIndex index: Int)
Parameters
attachmentsViewController
The calling
FUIAttachmentsViewController
.index
The index of the attachment, for which presentation was attempted.