INSItemProviderWriting.LoadData(String, Action<NSData,NSError>) Method

Definition

Implement this method to customize the loading of data by an NSItemProvider.

[Foundation.Export("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")]
[Foundation.Preserve(Conditional=true)]
public Foundation.NSProgress LoadData (string typeIdentifier, Action<Foundation.NSData,Foundation.NSError> completionHandler);
abstract member LoadData : string * Action<Foundation.NSData, Foundation.NSError> -> Foundation.NSProgress

Parameters

typeIdentifier
String

A Universal Type Identifier (UTI) indicating the type of data to load.

completionHandler
Action<NSData,NSError>

The method called after the data is loaded.

Returns

An T:Monotouch.Foundation.NSProgress object reflecting the data-loading operation.

Attributes

Remarks

The must be in the set of values returned by GetWritableTypeIdentifiersForItemProvider(INSItemProviderWriting).

Applies to