PHLivePhotoEditingContext.PrepareLivePhotoForPlayback 方法

定义

重载

PrepareLivePhotoForPlayback(CGSize, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

PrepareLivePhotoForPlayback(CGSize, NSDictionary<NSString,NSObject>, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

PrepareLivePhotoForPlayback(CGSize, PHLivePhotoEditingOption, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

PrepareLivePhotoForPlayback(CGSize, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

public void PrepareLivePhotoForPlayback (CoreGraphics.CGSize targetSize, Action<Photos.PHLivePhoto,Foundation.NSError> handler);
member this.PrepareLivePhotoForPlayback : CoreGraphics.CGSize * Action<Photos.PHLivePhoto, Foundation.NSError> -> unit

参数

targetSize
CGSize

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

handler
Action<PHLivePhoto,NSError>

一个处理程序,它接受实时照片和一个错误,并在处理完成后在主线程上运行。

适用于

PrepareLivePhotoForPlayback(CGSize, NSDictionary<NSString,NSObject>, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

public virtual void PrepareLivePhotoForPlayback (CoreGraphics.CGSize targetSize, Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> options, Action<Photos.PHLivePhoto,Foundation.NSError> handler);
abstract member PrepareLivePhotoForPlayback : CoreGraphics.CGSize * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> * Action<Photos.PHLivePhoto, Foundation.NSError> -> unit
override this.PrepareLivePhotoForPlayback : CoreGraphics.CGSize * Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject> * Action<Photos.PHLivePhoto, Foundation.NSError> -> unit

参数

targetSize
CGSize

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

options
NSDictionary<NSString,NSObject>

实时照片处理选项。

此参数可以为 null

handler
Action<PHLivePhoto,NSError>

一个处理程序,它接受实时照片和一个错误,并在处理完成后在主线程上运行。

适用于

PrepareLivePhotoForPlayback(CGSize, PHLivePhotoEditingOption, Action<PHLivePhoto,NSError>)

准备编辑后的实时照片以进行播放。

[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 void PrepareLivePhotoForPlayback (CoreGraphics.CGSize targetSize, Photos.PHLivePhotoEditingOption options, Action<Photos.PHLivePhoto,Foundation.NSError> handler);
member this.PrepareLivePhotoForPlayback : CoreGraphics.CGSize * Photos.PHLivePhotoEditingOption * Action<Photos.PHLivePhoto, Foundation.NSError> -> unit

参数

targetSize
CGSize

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

options
PHLivePhotoEditingOption

实时照片处理选项。

此参数可以为 null

handler
Action<PHLivePhoto,NSError>

一个处理程序,它接受实时照片和一个错误,并在处理完成后在主线程上运行。

属性

适用于