AssetLivePhoto
public class AssetLivePhoto : @unchecked Sendable
-
LivePhoto资源定义
Declaration
Swift
public typealias Resources = (pairedImage: URL, pairedVideo: URL)
-
导出LivePhoto资源
Declaration
Swift
public class func extractResources(from livePhoto: PHLivePhoto, completion: @escaping @MainActor @Sendable (Resources?) -> Void)
-
生成LivePhoto对象
Declaration
Swift
public class func generate(from imageURL: URL, videoURL: URL, progress: @escaping @MainActor @Sendable (CGFloat) -> Void, completion: @escaping @MainActor @Sendable (PHLivePhoto?, Resources?) -> Void)
-
保存LivePhoto资源到相册
Declaration
Swift
public class func saveToLibrary(_ resources: Resources, completion: @escaping @MainActor @Sendable (Bool, Error?) -> Void)
-
Undocumented
Declaration
Swift
public init()