NSFileProviderExtension.ImportDocument Method

Definition

When implemented by the developer, imports the resource at the specified fileURL into the directory that is identified by parentItemIdentifier.

[Foundation.Export("importDocumentAtURL:toParentItemIdentifier:completionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void ImportDocument (Foundation.NSUrl fileUrl, string parentItemIdentifier, Action<FileProvider.INSFileProviderItem,Foundation.NSError> completionHandler);
abstract member ImportDocument : Foundation.NSUrl * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit
override this.ImportDocument : Foundation.NSUrl * string * Action<FileProvider.INSFileProviderItem, Foundation.NSError> -> unit

Parameters

fileUrl
NSUrl

The URL for the file.

parentItemIdentifier
String

The parent directory's persistent identifier.

completionHandler
Action<INSFileProviderItem,NSError>

A handler to run after the operation completes.

Attributes

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Applies to