NSString.LoadData(String, Action<NSData,NSError>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implement this method to customize the loading of data by an NSItemProvider.
[Foundation.Export("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.Arch64, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSProgress LoadData (string typeIdentifier, Action<Foundation.NSData,Foundation.NSError> completionHandler);
abstract member LoadData : string * Action<Foundation.NSData, Foundation.NSError> -> Foundation.NSProgress
override this.LoadData : string * Action<Foundation.NSData, Foundation.NSError> -> Foundation.NSProgress
Parameters
- typeIdentifier
- String
A Universal Type Identifier (UTI) indicating the type of data to load.
Returns
An T:Monotouch.Foundation.NSProgress object reflecting the data-loading operation.
Implements
- Attributes
Remarks
The must be in the set of values returned by GetWritableTypeIdentifiersForItemProvider(INSItemProviderWriting).