One Logo Pool Ball
UIKit · IOS API REFERENCE

UIDocumentInteractionController

class · iOS 3.2+ · SDK 27.1

@MainActor class UIDocumentInteractionController

Members (20)

init · iOS 3.2+

init

TypeScript
static init(url: string): Promise<UIDocumentInteractionController>
Swift declaration
init(url: URL)
method · iOS 3.2+

dismissMenu

TypeScript
dismissMenu(animated: boolean): Promise<void>
Swift declaration
func dismissMenu(animated: Bool)
method · iOS 3.2+

dismissPreview

TypeScript
dismissPreview(animated: boolean): Promise<void>
Swift declaration
func dismissPreview(animated: Bool)
method · iOS 3.2+

presentOpenInMenu

TypeScript
presentOpenInMenuFromAnimated(item: UIBarButtonItem, animated: boolean): Promise<boolean>
Swift declaration
func presentOpenInMenu(from item: UIBarButtonItem, animated: Bool) -> Bool
method · iOS 3.2+

presentOpenInMenu

TypeScript
presentOpenInMenuFromInAnimated(rect: { x: number; y: number; width: number; height: number }, view: UIView, animated: boolean): Promise<boolean>
Swift declaration
func presentOpenInMenu(from rect: CGRect, in view: UIView, animated: Bool) -> Bool
method · iOS 3.2+

presentOptionsMenu

TypeScript
presentOptionsMenuFromAnimated(item: UIBarButtonItem, animated: boolean): Promise<boolean>
Swift declaration
func presentOptionsMenu(from item: UIBarButtonItem, animated: Bool) -> Bool
method · iOS 3.2+

presentOptionsMenu

TypeScript
presentOptionsMenuFromInAnimated(rect: { x: number; y: number; width: number; height: number }, view: UIView, animated: boolean): Promise<boolean>
Swift declaration
func presentOptionsMenu(from rect: CGRect, in view: UIView, animated: Bool) -> Bool
method · iOS 3.2+

presentPreview

TypeScript
presentPreview(animated: boolean): Promise<boolean>
Swift declaration
func presentPreview(animated: Bool) -> Bool
get · iOS 3.2+

url

TypeScript
get url(): Promise<(string) | null>
Swift declaration
var url: URL? { get set }
set · iOS 3.2+

url

TypeScript
setUrl(value?: (string) | null): Promise<void>
Swift declaration
var url: URL? { get set }
get · iOS 3.2+

uti

TypeScript
get uti(): Promise<(string) | null>
Swift declaration
var uti: String? { get set }
set · iOS 3.2+

uti

TypeScript
setUti(value?: (string) | null): Promise<void>
Swift declaration
var uti: String? { get set }
get · iOS 3.2+

annotation

TypeScript
get annotation(): Promise<(unknown) | null>
Swift declaration
var annotation: Any? { get set }
set · iOS 3.2+

annotation

TypeScript
setAnnotation(value?: (unknown) | null): Promise<void>
Swift declaration
var annotation: Any? { get set }
get · iOS 3.2+

delegate

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

delegate

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

gestureRecognizers

TypeScript
get gestureRecognizers(): Promise<Array<UIGestureRecognizer>>
Swift declaration
var gestureRecognizers: [UIGestureRecognizer] { get }
get · iOS 3.2+

icons

TypeScript
get icons(): Promise<Array<UIImage>>
Swift declaration
var icons: [UIImage] { get }
get · iOS 3.2+

name

TypeScript
get name(): Promise<(string) | null>
Swift declaration
var name: String? { get set }
set · iOS 3.2+

name

TypeScript
setName(value?: (string) | null): Promise<void>
Swift declaration
var name: String? { get set }

Skipped declarations

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

UIDocumentInteractionController.init()

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

All UIKit types →