The protocol you implement to respond as the user interacts with the document browser.
SDKs
- iOS 11.0+
- Mac Catalyst 13.0+
Framework
- UIKit
Declaration
protocol UIDocumentBrowserViewControllerDelegate
The protocol you implement to respond as the user interacts with the document browser.
SDKs
Framework
protocol UIDocumentBrowserViewControllerDelegate
func document Browser(UIDocument Browser View Controller, did Request Document Creation With Handler: (URL?, UIDocument Browser View Controller .Import Mode) -> Void)
Asks the delegate to create a new document.
enum UIDocument Browser View Controller .Import Mode
The document browser's import modes.
func document Browser(UIDocument Browser View Controller, did Import Document At: URL, to Destination URL: URL)
Tells the delegate that a document has been successfully imported.
func document Browser(UIDocument Browser View Controller, failed To Import Document At: URL, error: Error?)
Tells the delegate that the document browser failed to import the specified document.
func document Browser(UIDocument Browser View Controller, did Pick Documents At: [URL])
Tells the delegate that the user has selected one or more documents.
func document Browser(UIDocument Browser View Controller, will Present: UIActivity View Controller)
Tells the delegate that the document browser will display an activity view.
func document Browser(UIDocument Browser View Controller, application Activities For Document URLs: [URL]) -> [UIActivity]
Asks the delegate for additional activities when displaying an activity view.
func document Browser(UIDocument Browser View Controller, did Pick Document URLs: [URL])
Tells the delegate that the user has selected one or more documents.
var delegate: UIDocument Browser View Controller Delegate?
The document browser's delegate.
func import Document(at: URL, next To Document At: URL, mode: UIDocument Browser View Controller .Import Mode, completion Handler: (URL?, Error?) -> Void)
Imports a document into the same location as an existing document.