A set of methods that you implement to track when the user selects a document or destination, or to track when the operation is canceled.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
protocol UIDocumentPickerDelegate
A set of methods that you implement to track when the user selects a document or destination, or to track when the operation is canceled.
SDKs
Framework
protocol UIDocumentPickerDelegate
func document Picker(UIDocument Picker View Controller, did Pick Documents At: [URL])
Tells the delegate that the user has selected one or more documents.
func document Picker Was Cancelled(UIDocument Picker View Controller)
Tells the delegate that the user canceled the document picker.
func document Picker(UIDocument Picker View Controller, did Pick Document At: URL)
Tells the delegate that the user has selected a document or a destination.
var delegate: UIDocument Picker Delegate?
An object that adheres to the UIDocument
protocol.
var allows Multiple Selection: Bool
A Boolean value that determines whether the user can select more than one document at a time.
var directory URL: URL?
The initial directory displayed by the document picker.