Class UIDocumentPickerViewController

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

public class UIDocumentPickerViewController
extends UIViewController
  • Constructor Details

    • UIDocumentPickerViewController

      public UIDocumentPickerViewController()
    • UIDocumentPickerViewController

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

      protected UIDocumentPickerViewController​(NSObject.SkipInit skipInit)
    • UIDocumentPickerViewController

      @Deprecated public UIDocumentPickerViewController​(List<String> allowedUTIs, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForOpeningContentTypes:asCopy: or initForOpeningContentTypes: instead
    • UIDocumentPickerViewController

      public UIDocumentPickerViewController​(NSCoder coder)
    • UIDocumentPickerViewController

      @Deprecated public UIDocumentPickerViewController​(NSURL url, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForExportingURLs:asCopy: or initForExportingURLs: instead
    • UIDocumentPickerViewController

      @Deprecated public UIDocumentPickerViewController​(NSArray<NSURL> urls, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForExportingURLs:asCopy: or initForExportingURLs: instead
      Since:
      Available in iOS 11.0 and later.
    • UIDocumentPickerViewController

      public UIDocumentPickerViewController​(NSArray<NSURL> urls)
      Since:
      Available in iOS 14.0 and later.
    • UIDocumentPickerViewController

      public UIDocumentPickerViewController​(String nibNameOrNil, NSBundle nibBundleOrNil)
  • Method Details

    • createForOpeningContentTypes

      public static UIDocumentPickerViewController createForOpeningContentTypes​(NSArray<UTType> contentTypes, boolean asCopy)
      Since:
      Available in iOS 14.0 and later.
    • createForOpeningContentTypes

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

      public static UIDocumentPickerViewController createForExportingURLs​(NSArray<NSURL> urls, boolean asCopy)
      Since:
      Available in iOS 14.0 and later.
    • getDelegate

      public UIDocumentPickerDelegate getDelegate()
    • setDelegate

      public void setDelegate​(UIDocumentPickerDelegate v)
    • getDocumentPickerMode

      @Deprecated public UIDocumentPickerMode getDocumentPickerMode()
      Deprecated.
      Deprecated in iOS 14.0. Use appropriate initializers instead
    • allowsMultipleSelection

      public boolean allowsMultipleSelection()
      Since:
      Available in iOS 11.0 and later.
    • setAllowsMultipleSelection

      public void setAllowsMultipleSelection​(boolean v)
      Since:
      Available in iOS 11.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.
    • getDirectoryURL

      public NSURL getDirectoryURL()
      Since:
      Available in iOS 13.0 and later.
    • setDirectoryURL

      public void setDirectoryURL​(NSURL v)
      Since:
      Available in iOS 13.0 and later.
    • init

      @Deprecated protected long init​(List<String> allowedUTIs, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForOpeningContentTypes:asCopy: or initForOpeningContentTypes: instead
    • initForOpeningContentTypesAsCopy

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

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

      protected long init​(NSCoder coder)
      Overrides:
      init in class UIViewController
    • init

      @Deprecated protected long init​(NSURL url, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForExportingURLs:asCopy: or initForExportingURLs: instead
    • init

      @Deprecated protected long init​(NSArray<NSURL> urls, UIDocumentPickerMode mode)
      Deprecated.
      Deprecated in iOS 14.0. use initForExportingURLs:asCopy: or initForExportingURLs: instead
      Since:
      Available in iOS 11.0 and later.
    • initForExportingURLsAsCopy

      protected long initForExportingURLsAsCopy​(NSArray<NSURL> urls, boolean asCopy)
      Since:
      Available in iOS 14.0 and later.
    • initForExportingURLs

      protected long initForExportingURLs​(NSArray<NSURL> urls)
      Since:
      Available in iOS 14.0 and later.