iOS Guides | Samples

UIKit.UIDocumentBrowserViewController Class

A viewer for browsing documents.

See Also: UIDocumentBrowserViewController

Syntax

[Foundation.Register("UIDocumentBrowserViewController", true)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.None, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public class UIDocumentBrowserViewController : UIViewController, IDisposable

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0

The members of UIKit.UIDocumentBrowserViewController are listed below.

See Also: UIViewController

Public Constructors

Default constructor, initializes a new instance of this class.
A constructor that initializes the object from the data stored in the unarchiver object.
Creates a new UIDocumentBrowserViewController for documents of the specified content types.

Protected Constructors

Constructor to call on derived classes to skip initialization and merely allocate the object.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

AdditionalLeadingNavigationBarButtonItemsUIBarButtonItem[]. Gets or sets the array of bar button items for display on the leading side of the app's navigation bar.
AdditionalTrailingNavigationBarButtonItemsUIBarButtonItem[]. ets or sets the array of bar button items for display on the trailing side of the app's navigation bar.
[read-only]
AllowedContentTypesString[]. Gets the allowed content types with which the document browser was created.
AllowsDocumentCreationBoolean. Gets or sets a Boolean value that controls whether the document browser may create new documents.
AllowsPickingMultipleItemsBoolean. Gets or sets a Boolean value that controls whether the document browser allows the user to select multiple items.
BrowserUserInterfaceStyleUIDocumentBrowserUserInterfaceStyle. Gets or sets the theme of the document browser UI.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
CustomActionsUIDocumentBrowserAction[]. Gets or sets an array of custom actions.
DelegateIUIDocumentBrowserViewControllerDelegate. An instance of the UIKit.IUIDocumentBrowserViewControllerDelegate model class which acts as the class delegate.

Public Methods

EncodeTo(NSCoder)
Encodes the state of the object on the provided encoder
GetTransitionController(NSUrl) : UIDocumentBrowserTransitionController
Creates and returns a transition controller for the document at the specified URL.
ImportDocument(NSUrl, NSUrl, UIDocumentBrowserImportMode, Action<Foundation.NSUrl, Foundation.NSError>)
Imports the document at documentURL to be ajacent to neighbourUrl.
ImportDocumentAsync(NSUrl, NSUrl, UIDocumentBrowserImportMode) : System.Threading.Tasks.Task<Foundation.NSUrl>
Asynchronously imports the document at documentURL to be ajacent to neighbourUrl, returning a task that provides the resulting document URL.
RevealDocument(NSUrl, Boolean, Action<Foundation.NSUrl, Foundation.NSError>)
Reveals the document at the provided URL in the browser, and imports it if importIfNeede is true.
RevealDocumentAsync(NSUrl, Boolean) : System.Threading.Tasks.Task<Foundation.NSUrl>
Asynchronously reveals the document at the provided URL in the browser, and imports it if importIfNeede is true, returning a task the the final URL.

Protected Methods

override
Dispose(Boolean)
Releases the resources used by the UIDocumentBrowserViewController object.