FUIDocumentPickerAttachmentActionDelegate
public protocol FUIDocumentPickerAttachmentActionDelegate : AnyObject
The delegate protocol for FUIDocumentPickerAttachmentAction.
-
The
UIDocumentPickerViewControllerto be used inFUIDocumentPickerAttachmentAction.Declaration
Swift
var documentPicker: UIDocumentPickerViewController { get } -
This function is invoked when a file is selected from the file picker.
Declaration
Swift
func documentPickerAttachmentAction(_ action: FUIDocumentPickerAttachmentAction, didPickFileAt url: URL)Parameters
actionThe
FUIDocumentPickerAttachmentActionobject.urlThe URL for the selected file. Note that
UIDocumentPickerViewControllerreturns a temporary url which may not be available after theUIDocumentPickerViewControllersession is gone. It is recommended to copy the file content to a temporary location for further use.