Class UIDocumentBrowserViewController

All Implemented Interfaces:
NSCoding, NSExtensionRequestHandling, NSObjectProtocol, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UIContentContainer, UIFocusEnvironment, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UIStateRestoring, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class UIDocumentBrowserViewController
extends UIViewController
implements NSCoding
Since:
Available in iOS 11.0 and later.
  • Constructor Details

    • UIDocumentBrowserViewController

      public UIDocumentBrowserViewController()
    • UIDocumentBrowserViewController

      protected UIDocumentBrowserViewController​(NSObject.Handle h, long handle)
    • UIDocumentBrowserViewController

      protected UIDocumentBrowserViewController​(NSObject.SkipInit skipInit)
    • UIDocumentBrowserViewController

      @Deprecated public UIDocumentBrowserViewController​(NSArray<NSString> allowedContentTypes)
      Deprecated.
      Deprecated in iOS 14.0. use initForOpeningContentTypes: instead
      Since:
      Available in iOS 11.0 and later.
    • UIDocumentBrowserViewController

      public UIDocumentBrowserViewController​(NSCoder coder)
  • Method Details

    • createForOpeningContentTypes

      public static UIDocumentBrowserViewController createForOpeningContentTypes​(NSArray<UTType> contentTypes)
      Since:
      Available in iOS 14.0 and later.
    • getDelegate

    • setDelegate

      public void setDelegate​(UIDocumentBrowserViewControllerDelegate v)
    • allowsDocumentCreation

      public boolean allowsDocumentCreation()
    • setAllowsDocumentCreation

      public void setAllowsDocumentCreation​(boolean v)
    • allowsPickingMultipleItems

      public boolean allowsPickingMultipleItems()
    • setAllowsPickingMultipleItems

      public void setAllowsPickingMultipleItems​(boolean v)
    • getAllowedContentTypes

      @Deprecated public NSArray<NSString> getAllowedContentTypes()
      Deprecated.
      Deprecated in iOS 14.0. allowedContentTypes is no longer supported
      Since:
      Available in iOS 11.0 and later.
    • getRecentDocumentsContentTypes

      @Deprecated public NSArray<NSString> getRecentDocumentsContentTypes()
      Deprecated.
      Deprecated in iOS 14.0. use contentTypesForRecentDocuments instead
      Since:
      Available in iOS 11.0 and later.
    • getContentTypesForRecentDocuments

      public NSArray<UTType> getContentTypesForRecentDocuments()
      Since:
      Available in iOS 14.0 and later.
    • shouldShowFileExtensions

      public boolean shouldShowFileExtensions()
      Since:
      Available in iOS 13.0 and later.
    • setShouldShowFileExtensions

      public void setShouldShowFileExtensions​(boolean v)
      Since:
      Available in iOS 13.0 and later.
    • getAdditionalLeadingNavigationBarButtonItems

      public NSArray<UIBarButtonItem> getAdditionalLeadingNavigationBarButtonItems()
    • setAdditionalLeadingNavigationBarButtonItems

      public void setAdditionalLeadingNavigationBarButtonItems​(NSArray<UIBarButtonItem> v)
    • getAdditionalTrailingNavigationBarButtonItems

      public NSArray<UIBarButtonItem> getAdditionalTrailingNavigationBarButtonItems()
    • setAdditionalTrailingNavigationBarButtonItems

      public void setAdditionalTrailingNavigationBarButtonItems​(NSArray<UIBarButtonItem> v)
    • getCustomActions

      public NSArray<UIDocumentBrowserAction> getCustomActions()
    • setCustomActions

      public void setCustomActions​(NSArray<UIDocumentBrowserAction> v)
    • getBrowserUserInterfaceStyle

      public UIDocumentBrowserUserInterfaceStyle getBrowserUserInterfaceStyle()
    • setBrowserUserInterfaceStyle

      public void setBrowserUserInterfaceStyle​(UIDocumentBrowserUserInterfaceStyle v)
    • getLocalizedCreateDocumentActionTitle

      public String getLocalizedCreateDocumentActionTitle()
      Since:
      Available in iOS 13.0 and later.
    • setLocalizedCreateDocumentActionTitle

      public void setLocalizedCreateDocumentActionTitle​(String v)
      Since:
      Available in iOS 13.0 and later.
    • getDefaultDocumentAspectRatio

      public double getDefaultDocumentAspectRatio()
      Since:
      Available in iOS 13.0 and later.
    • setDefaultDocumentAspectRatio

      public void setDefaultDocumentAspectRatio​(double v)
      Since:
      Available in iOS 13.0 and later.
    • initForOpeningFilesUsingContentTypes

      @Deprecated protected long initForOpeningFilesUsingContentTypes​(NSArray<NSString> allowedContentTypes)
      Deprecated.
      Deprecated in iOS 14.0. use initForOpeningContentTypes: instead
      Since:
      Available in iOS 11.0 and later.
    • initForOpeningContentTypes

      protected long initForOpeningContentTypes​(NSArray<UTType> contentTypes)
      Since:
      Available in iOS 14.0 and later.
    • revealDocument

      public void revealDocument​(NSURL url, boolean importIfNeeded, VoidBlock2<NSURL,​NSError> completion)
    • importDocument

      public void importDocument​(NSURL documentURL, NSURL neighbourURL, UIDocumentBrowserImportMode importMode, VoidBlock2<NSURL,​NSError> completion)
    • transitionControllerForDocumentAtURL

      public UIDocumentBrowserTransitionController transitionControllerForDocumentAtURL​(NSURL documentURL)
      Since:
      Available in iOS 12.0 and later.
    • transitionControllerForDocumentURL

      @Deprecated public UIDocumentBrowserTransitionController transitionControllerForDocumentURL​(NSURL documentURL)
      Deprecated.
      Deprecated in iOS 12.0. Use transitionControllerForDocumentAtURL:
      Since:
      Available in iOS 11.0 and later.