FUIAttachmentsViewControllerDelegate

public protocol FUIAttachmentsViewControllerDelegate: class

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 to FUIAttachmentsViewControllerDataSource urlForAttachmentAtIndex: method, or if the file at the URL provided cannot be presented by a UIDocumentInteractionController.

    Declaration

    Swift

    func attachmentsViewController(_ attachmentsViewController: FUIAttachmentsViewController, couldNotPresentAttachmentAtIndex index: Int) -> Void

    Parameters

    attachmentsViewController

    The calling FUIAttachmentsViewController.

    index

    The index of the attachment, for which presentation was attempted.