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

定义

从项提供程序加载已标识类型的数据。

[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

参数

typeIdentifier
String

通用类型标识符 (UTI) 指示要加载的数据类型。

completionHandler
Action<NSData,NSError>

加载数据后调用的方法。

返回

实现

属性

适用于