One Logo Pool Ball
Photos · IOS API REFERENCE

PHLivePhotoEditingContext

class · iOS 10.0+ · SDK 27.1

class PHLivePhotoEditingContext

Members (11)

method · iOS 10.0+

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 10.0+

init

TypeScript
static init(livePhotoInput: PHContentEditingInput): (PHLivePhotoEditingContext) | null
Swift declaration
init?(livePhotoEditingInput livePhotoInput: PHContentEditingInput)
method · iOS 10.0+

prepareLivePhotoForPlayback

TypeScript
prepareLivePhotoForPlayback(targetSize: { width: number; height: number }, options: (Record<string, unknown>) | null, handler: ((arg0: (PHLivePhoto) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func livePhotoForPlayback(targetSize: CGSize, options: [String : Any]? = nil) async throws -> PHLivePhoto
method · iOS 10.0+

saveLivePhoto

TypeScript
saveLivePhoto(output: PHContentEditingOutput, options: (Record<string, unknown>) | null, handler: ((arg0: boolean, arg1: (NativeError) | null) => void)): void
Swift declaration
func saveLivePhoto(to output: PHContentEditingOutput, options: [String : Any]? = nil) async throws
get · iOS 10.0+

audioVolume

TypeScript
get audioVolume(): number
Swift declaration
var audioVolume: Float { get set }
set · iOS 10.0+

audioVolume

TypeScript
set audioVolume(value: number)
Swift declaration
var audioVolume: Float { get set }
get · iOS 10.0+

duration

TypeScript
get duration(): _CoreMedia_CMTime
Swift declaration
var duration: CMTime { get }
get · iOS 10.0+

frameProcessor

TypeScript
get frameProcessor(): (((arg0: SDKHandle, arg1: (SDKHandle) | null) => Promise<(_CoreImage_CIImage) | null>)) | null
Swift declaration
var frameProcessor: PHLivePhotoFrameProcessingBlock? { get set }
get · iOS 10.0+

fullSizeImage

TypeScript
get fullSizeImage(): _CoreImage_CIImage
Swift declaration
var fullSizeImage: CIImage { get }
get · iOS 10.0+

orientation

TypeScript
get orientation(): _ImageIO_CGImagePropertyOrientation
Swift declaration
var orientation: CGImagePropertyOrientation { get }
get · iOS 10.0+

photoTime

TypeScript
get photoTime(): _CoreMedia_CMTime
Swift declaration
var photoTime: CMTime { get }

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

PHLivePhotoEditingContext.frameProcessor

closure property answers its caller

PHLivePhotoEditingContext.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Photos types →