共用方式為


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>

接受即時相片和錯誤的處理常式,並在處理完成時在主執行緒上執行。

屬性

適用於