One Logo Pool Ball
UIKit · IOS API REFERENCE

UIDocumentViewController

class · iOS 17.0+ · SDK 27.1

@MainActor class UIDocumentViewController

Members (9)

method · iOS 17.0+

documentDidOpen

TypeScript
documentDidOpen(): Promise<void>
Swift declaration
func documentDidOpen()
init · iOS 17.0+

init

TypeScript
static init(document?: (UIDocument) | null): Promise<UIDocumentViewController>
Swift declaration
init(document: UIDocument?)
method · iOS 17.0+

navigationItemDidUpdate

TypeScript
navigationItemDidUpdate(): Promise<void>
Swift declaration
func navigationItemDidUpdate()
method · iOS 17.0+

openDocument

TypeScript
openDocument(completionHandler: ((arg0: boolean) => void)): Promise<void>
Swift declaration
func openDocument() async -> Bool
get · iOS 17.0+

document

TypeScript
get document(): Promise<(UIDocument) | null>
Swift declaration
var document: UIDocument? { get set }
set · iOS 17.0+

document

TypeScript
setDocument(value?: (UIDocument) | null): Promise<void>
Swift declaration
var document: UIDocument? { get set }
get · iOS 18.0+

launchOptions

TypeScript
get launchOptions(): Promise<UIDocumentViewController_LaunchOptions>
Swift declaration
var launchOptions: UIDocumentViewController.LaunchOptions { get set }
set · iOS 18.0+

launchOptions

TypeScript
setLaunchOptions(value: UIDocumentViewController_LaunchOptions): Promise<void>
Swift declaration
var launchOptions: UIDocumentViewController.LaunchOptions { get set }
get · iOS 17.0+

undoRedoItemGroup

TypeScript
get undoRedoItemGroup(): Promise<UIBarButtonItemGroup>
Swift declaration
var undoRedoItemGroup: UIBarButtonItemGroup { get }

Skipped declarations

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

UIDocumentViewController.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All UIKit types →