FUIDocumentPickerAttachmentActionDelegate
public protocol FUIDocumentPickerAttachmentActionDelegate : AnyObject
The delegate protocol for FUIDocumentPickerAttachmentAction
.
-
The
UIDocumentPickerViewController
to 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
action
The
FUIDocumentPickerAttachmentAction
object.url
The URL for the selected file. Note that
UIDocumentPickerViewController
returns a temporary url which may not be available after theUIDocumentPickerViewController
session is gone. It is recommended to copy the file content to a temporary location for further use.