One Logo Pool Ball
Photos · IOS API REFERENCE

PHLivePhoto

class · iOS 9.1+ · SDK 27.1

class PHLivePhoto

Members (3)

static · iOS 9.1+

cancelRequest

TypeScript
static cancelRequest(requestID: number): void
Swift declaration
class func cancelRequest(withRequestID requestID: PHLivePhotoRequestID)
static · iOS 9.1+

request

TypeScript
static request(fileURLs: Array<string>, image: (_UIKit_UIImage) | null, targetSize: { width: number; height: number }, contentMode: PHImageContentMode, resultHandler: ((arg0: (PHLivePhoto) | null, arg1: NativeMap<unknown, unknown>) => void)): number
Swift declaration
class func request(withResourceFileURLs fileURLs: [URL], placeholderImage image: UIImage?, targetSize: CGSize, contentMode: PHImageContentMode, resultHandler: @escaping (PHLivePhoto?, [AnyHashable : Any]) -> Void) -> PHLivePhotoRequestID
get · iOS 9.1+

size

TypeScript
get size(): { width: number; height: number }
Swift declaration
var size: CGSize { get }

Skipped declarations

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

PHLivePhoto.init()

inherited init: clang: 'init' is unavailable

All Photos types →