PHLivePhotoEditingContext.PrepareLivePhotoForPlaybackAsync 方法

定义

重载

PrepareLivePhotoForPlaybackAsync(CGSize)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

PrepareLivePhotoForPlaybackAsync(CGSize, NSDictionary<NSString,NSObject>)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

PrepareLivePhotoForPlaybackAsync(CGSize, PHLivePhotoEditingOption)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

PrepareLivePhotoForPlaybackAsync(CGSize)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

public System.Threading.Tasks.Task<Photos.PHLivePhoto> PrepareLivePhotoForPlaybackAsync (CoreGraphics.CGSize targetSize);
member this.PrepareLivePhotoForPlaybackAsync : CoreGraphics.CGSize -> System.Threading.Tasks.Task<Photos.PHLivePhoto>

参数

targetSize
CGSize

要面向的输出视图的大小。

返回

适用于

PrepareLivePhotoForPlaybackAsync(CGSize, NSDictionary<NSString,NSObject>)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

public virtual System.Threading.Tasks.Task<Photos.PHLivePhoto> PrepareLivePhotoForPlaybackAsync (CoreGraphics.CGSize targetSize, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> options);
abstract member PrepareLivePhotoForPlaybackAsync : CoreGraphics.CGSize * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> System.Threading.Tasks.Task<Photos.PHLivePhoto>
override this.PrepareLivePhotoForPlaybackAsync : CoreGraphics.CGSize * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> -> System.Threading.Tasks.Task<Photos.PHLivePhoto>

参数

targetSize
CGSize

要面向的输出视图的大小。

options
NSDictionary<NSString,NSObject>

实时照片处理选项。此参数可以是 。

返回

表示异步 PrepareLivePhotoForPlayback 操作的任务。 TResult 参数的值的类型为 Action<Photos.PHLivePhoto,Foundation.NSError>

适用于

PrepareLivePhotoForPlaybackAsync(CGSize, PHLivePhotoEditingOption)

异步准备编辑的实时照片以进行播放,并返回提供实时照片的任务。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 12, ObjCRuntime.PlatformArchitecture.Arch64, null)]
public System.Threading.Tasks.Task<Photos.PHLivePhoto> PrepareLivePhotoForPlaybackAsync (CoreGraphics.CGSize targetSize, Photos.PHLivePhotoEditingOption options);
member this.PrepareLivePhotoForPlaybackAsync : CoreGraphics.CGSize * Photos.PHLivePhotoEditingOption -> System.Threading.Tasks.Task<Photos.PHLivePhoto>

参数

targetSize
CGSize

要面向的输出视图的大小。

options
PHLivePhotoEditingOption

实时照片处理选项。

此参数可以为 null

返回

属性

适用于