PHLivePhotoEditingContext.PrepareLivePhotoForPlaybackAsync Method

Definition

Overloads

PrepareLivePhotoForPlaybackAsync(CGSize)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

PrepareLivePhotoForPlaybackAsync(CGSize, NSDictionary<NSString,NSObject>)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

PrepareLivePhotoForPlaybackAsync(CGSize, PHLivePhotoEditingOption)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

PrepareLivePhotoForPlaybackAsync(CGSize)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

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

Parameters

targetSize
CGSize

The size of the output view to target.

Returns

Applies to

PrepareLivePhotoForPlaybackAsync(CGSize, NSDictionary<NSString,NSObject>)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

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>

Parameters

targetSize
CGSize

The size of the output view to target.

options
NSDictionary<NSString,NSObject>

Live Photo processing options.This parameter can be .

Returns

A task that represents the asynchronous PrepareLivePhotoForPlayback operation. The value of the TResult parameter is of type Action<Photos.PHLivePhoto,Foundation.NSError>.

Applies to

PrepareLivePhotoForPlaybackAsync(CGSize, PHLivePhotoEditingOption)

Asynchronously prepares an edited Live Photo for playback, returning a task that provides the live photo.

[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>

Parameters

targetSize
CGSize

The size of the output view to target.

options
PHLivePhotoEditingOption

Live Photo processing options.

This parameter can be null.

Returns

Attributes

Applies to