Package apple.uikit.protocol
Interface UIDocumentBrowserViewControllerDelegate
-
public interface UIDocumentBrowserViewControllerDelegateAPI-Since: 11.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceUIDocumentBrowserViewControllerDelegate.Block_documentBrowserDidRequestDocumentCreationWithHandler
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default @NotNull NSArray<? extends UIActivity>documentBrowserApplicationActivitiesForDocumentURLs(@NotNull UIDocumentBrowserViewController controller, @NotNull NSArray<? extends NSURL> documentURLs)Allows clients to add application specific UIActivity instancesdefault voiddocumentBrowserDidImportDocumentAtURLToDestinationURL(@NotNull UIDocumentBrowserViewController controller, @NotNull NSURL sourceURL, @NotNull NSURL destinationURL)default voiddocumentBrowserDidPickDocumentsAtURLs(@NotNull UIDocumentBrowserViewController controller, @NotNull NSArray<? extends NSURL> documentURLs)API-Since: 12.0default voiddocumentBrowserDidPickDocumentURLs(@NotNull UIDocumentBrowserViewController controller, @NotNull NSArray<? extends NSURL> documentURLs)Deprecated.default voiddocumentBrowserDidRequestDocumentCreationWithHandler(@NotNull UIDocumentBrowserViewController controller, @NotNull UIDocumentBrowserViewControllerDelegate.Block_documentBrowserDidRequestDocumentCreationWithHandler importHandler)When the user requests the creation of a new document, this method will be called.default voiddocumentBrowserFailedToImportDocumentAtURLError(@NotNull UIDocumentBrowserViewController controller, @NotNull NSURL documentURL, @Nullable NSError error)default voiddocumentBrowserWillPresentActivityViewController(@NotNull UIDocumentBrowserViewController controller, @NotNull UIActivityViewController activityViewController)Implement this to customize the UIActivityViewController before it's presented.
-
-
-
Method Detail
-
documentBrowserApplicationActivitiesForDocumentURLs
@NotNull default @NotNull NSArray<? extends UIActivity> documentBrowserApplicationActivitiesForDocumentURLs(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull NSArray<? extends NSURL> documentURLs)
Allows clients to add application specific UIActivity instances
-
documentBrowserDidImportDocumentAtURLToDestinationURL
default void documentBrowserDidImportDocumentAtURLToDestinationURL(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull NSURL sourceURL, @NotNull @NotNull NSURL destinationURL)
-
documentBrowserDidPickDocumentURLs
@Deprecated default void documentBrowserDidPickDocumentURLs(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull NSArray<? extends NSURL> documentURLs)Deprecated.Called when the user validates a selection of items to open or pick. If you have created this document manager to open files, you should then open the document, potentially using a @c UIDocumentBrowserTransitionController for the transition. API-Since: 11.0 Deprecated-Since: 12.0
-
documentBrowserDidRequestDocumentCreationWithHandler
default void documentBrowserDidRequestDocumentCreationWithHandler(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull UIDocumentBrowserViewControllerDelegate.Block_documentBrowserDidRequestDocumentCreationWithHandler importHandler)When the user requests the creation of a new document, this method will be called. The application can then, optionally, present UI it deems appropriate to let the user configure the new document (for example, it could show a list of templates). When done, create an empty document or a copy of your template to a temporary location. Then use the importHandler to pass the document URL to be imported. If the user cancels the document creation, it's still expetected to call importHandler(nil, UIDocumentBrowserImportModeNone). The Document Browser will asynchronously move the document to its final destination and call back one of the following delegate methods: -documentBrowser:didImportDocumentURL:toDestinationURL: -documentBrowser:failedToImportDocumentAtURL:error: The app should wait for the delegate callbacks before presenting the imported document at the destination URL. Usage of UIDocument is recommended. If you do not implement this method, document creation will not be available.
-
documentBrowserFailedToImportDocumentAtURLError
default void documentBrowserFailedToImportDocumentAtURLError(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull NSURL documentURL, @Nullable @Nullable NSError error)
-
documentBrowserWillPresentActivityViewController
default void documentBrowserWillPresentActivityViewController(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull UIActivityViewController activityViewController)Implement this to customize the UIActivityViewController before it's presented.
-
documentBrowserDidPickDocumentsAtURLs
default void documentBrowserDidPickDocumentsAtURLs(@NotNull @NotNull UIDocumentBrowserViewController controller, @NotNull @NotNull NSArray<? extends NSURL> documentURLs)API-Since: 12.0
-
-