共用方式為


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>

載入資料之後呼叫的方法。

傳回

實作

屬性

適用於