Edytuj

Udostępnij za pośrednictwem


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

Definition

Loads data for the identified type from an item provider.

[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.

completionHandler
Action<NSData,NSError>

The method called after the data is loaded.

Returns

Implements

Attributes

Applies to