One Logo Pool Ball
UIKit · IOS API REFERENCE

UIDocumentBrowserViewController

class · iOS 11.0+ · SDK 27.1

@MainActor class UIDocumentBrowserViewController

Members (31)

method · iOS 11.0+

importDocument

TypeScript
importDocument(documentURL: string, neighbourURL: string, importMode: UIDocumentBrowserViewController_ImportMode, completion: ((arg0: (string) | null, arg1: (NativeError) | null) => void)): Promise<void>
Swift declaration
func importDocument(at documentURL: URL, nextToDocumentAt neighbourURL: URL, mode importMode: UIDocumentBrowserViewController.ImportMode) async throws -> URL
init · iOS 14.0+

init

TypeScript
static initForOpening(contentTypes?: (Array<_UniformTypeIdentifiers_UTType>) | null): Promise<UIDocumentBrowserViewController>
Swift declaration
init(forOpening contentTypes: [UTType]?)
init · iOS 11.0+ · Deprecated in iOS 14.0

init

TypeScript
static initForOpeningFilesWithContentTypes(allowedContentTypes?: (Array<string>) | null): Promise<UIDocumentBrowserViewController>
Swift declaration
init(forOpeningFilesWithContentTypes allowedContentTypes: [String]?)
method · iOS 16.0+

renameDocument

TypeScript
renameDocument(documentURL: string, proposedName: string, completionHandler: ((arg0: (string) | null, arg1: (NativeError) | null) => void)): Promise<void>
Swift declaration
func renameDocument(at documentURL: URL, proposedName: String) async throws -> URL
method · iOS 11.0+

revealDocument

TypeScript
revealDocument(url: string, importIfNeeded: boolean, completion?: (((arg0: (string) | null, arg1: (NativeError) | null) => void)) | null): Promise<void>
Swift declaration
func revealDocument(at url: URL, importIfNeeded: Bool) async throws -> URL
method · iOS 12.0+

transitionController

TypeScript
transitionControllerForDocumentAt(documentURL: string): Promise<UIDocumentBrowserTransitionController>
Swift declaration
func transitionController(forDocumentAt documentURL: URL) -> UIDocumentBrowserTransitionController
method · iOS 11.0+ · Deprecated in iOS 12.0

transitionController

TypeScript
transitionControllerForDocumentURL(documentURL: string): Promise<UIDocumentBrowserTransitionController>
Swift declaration
func transitionController(forDocumentURL documentURL: URL) -> UIDocumentBrowserTransitionController
get · iOS 18.0+

activeDocumentCreationIntent

TypeScript
get activeDocumentCreationIntent(): Promise<(UIDocument_CreationIntent) | null>
Swift declaration
var activeDocumentCreationIntent: UIDocument.CreationIntent? { get }
get · iOS 11.0+

additionalLeadingNavigationBarButtonItems

TypeScript
get additionalLeadingNavigationBarButtonItems(): Promise<Array<UIBarButtonItem>>
Swift declaration
var additionalLeadingNavigationBarButtonItems: [UIBarButtonItem] { get set }
set · iOS 11.0+

additionalLeadingNavigationBarButtonItems

TypeScript
setAdditionalLeadingNavigationBarButtonItems(value: Array<UIBarButtonItem>): Promise<void>
Swift declaration
var additionalLeadingNavigationBarButtonItems: [UIBarButtonItem] { get set }
get · iOS 11.0+

additionalTrailingNavigationBarButtonItems

TypeScript
get additionalTrailingNavigationBarButtonItems(): Promise<Array<UIBarButtonItem>>
Swift declaration
var additionalTrailingNavigationBarButtonItems: [UIBarButtonItem] { get set }
set · iOS 11.0+

additionalTrailingNavigationBarButtonItems

TypeScript
setAdditionalTrailingNavigationBarButtonItems(value: Array<UIBarButtonItem>): Promise<void>
Swift declaration
var additionalTrailingNavigationBarButtonItems: [UIBarButtonItem] { get set }
get · iOS 11.0+ · Deprecated in iOS 14.0

allowedContentTypes

TypeScript
get allowedContentTypes(): Promise<Array<string>>
Swift declaration
var allowedContentTypes: [String] { get }
get · iOS 11.0+

allowsDocumentCreation

TypeScript
get allowsDocumentCreation(): Promise<boolean>
Swift declaration
var allowsDocumentCreation: Bool { get set }
set · iOS 11.0+

allowsDocumentCreation

TypeScript
setAllowsDocumentCreation(value: boolean): Promise<void>
Swift declaration
var allowsDocumentCreation: Bool { get set }
get · iOS 11.0+

allowsPickingMultipleItems

TypeScript
get allowsPickingMultipleItems(): Promise<boolean>
Swift declaration
var allowsPickingMultipleItems: Bool { get set }
set · iOS 11.0+

allowsPickingMultipleItems

TypeScript
setAllowsPickingMultipleItems(value: boolean): Promise<void>
Swift declaration
var allowsPickingMultipleItems: Bool { get set }
get · iOS 11.0+

browserUserInterfaceStyle

TypeScript
get browserUserInterfaceStyle(): Promise<UIDocumentBrowserViewController_BrowserUserInterfaceStyle>
Swift declaration
var browserUserInterfaceStyle: UIDocumentBrowserViewController.BrowserUserInterfaceStyle { get set }
set · iOS 11.0+

browserUserInterfaceStyle

TypeScript
setBrowserUserInterfaceStyle(value: UIDocumentBrowserViewController_BrowserUserInterfaceStyle): Promise<void>
Swift declaration
var browserUserInterfaceStyle: UIDocumentBrowserViewController.BrowserUserInterfaceStyle { get set }
get · iOS 14.0+

contentTypesForRecentDocuments

TypeScript
get contentTypesForRecentDocuments(): Promise<Array<_UniformTypeIdentifiers_UTType>>
Swift declaration
var contentTypesForRecentDocuments: [UTType] { get }
get · iOS 11.0+

customActions

TypeScript
get customActions(): Promise<Array<UIDocumentBrowserAction>>
Swift declaration
var customActions: [UIDocumentBrowserAction] { get set }
set · iOS 11.0+

customActions

TypeScript
setCustomActions(value: Array<UIDocumentBrowserAction>): Promise<void>
Swift declaration
var customActions: [UIDocumentBrowserAction] { get set }
get · iOS 13.0+

defaultDocumentAspectRatio

TypeScript
get defaultDocumentAspectRatio(): Promise<number>
Swift declaration
var defaultDocumentAspectRatio: CGFloat { get set }
set · iOS 13.0+

defaultDocumentAspectRatio

TypeScript
setDefaultDocumentAspectRatio(value: number): Promise<void>
Swift declaration
var defaultDocumentAspectRatio: CGFloat { get set }
get · iOS 11.0+

delegate

TypeScript
get delegate(): Promise<(SDKHandle) | null>
Swift declaration
weak var delegate: (any UIDocumentBrowserViewControllerDelegate)? { get set }
set · iOS 11.0+

delegate

TypeScript
setDelegate(value?: (Implements<UIDocumentBrowserViewControllerDelegate> | SDKHandle) | null): Promise<void>
Swift declaration
weak var delegate: (any UIDocumentBrowserViewControllerDelegate)? { get set }
get · iOS 13.0+

localizedCreateDocumentActionTitle

TypeScript
get localizedCreateDocumentActionTitle(): Promise<string>
Swift declaration
var localizedCreateDocumentActionTitle: String { get set }
set · iOS 13.0+

localizedCreateDocumentActionTitle

TypeScript
setLocalizedCreateDocumentActionTitle(value: string): Promise<void>
Swift declaration
var localizedCreateDocumentActionTitle: String { get set }
get · iOS 11.0+ · Deprecated in iOS 14.0

recentDocumentsContentTypes

TypeScript
get recentDocumentsContentTypes(): Promise<Array<string>>
Swift declaration
var recentDocumentsContentTypes: [String] { get }
get · iOS 13.0+

shouldShowFileExtensions

TypeScript
get shouldShowFileExtensions(): Promise<boolean>
Swift declaration
var shouldShowFileExtensions: Bool { get set }
set · iOS 13.0+

shouldShowFileExtensions

TypeScript
setShouldShowFileExtensions(value: boolean): Promise<void>
Swift declaration
var shouldShowFileExtensions: Bool { get set }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIDocumentBrowserViewController.init()

inherited init: cannot prove legal (class declares 3 custom initializers)

All UIKit types →