![]() ![]() get original asset file name public var originalFileName: String ? public func exportVideoFile( options: PHVideoRequestOptions ? = nil,ĬompletionBlock: ((URL, String) -> Void)) ProgressBlock:(( Double) -> Void) ? = nil,ĬompletionBlock: ((URL, String) -> Void)) -> PHImageRequestID ? //Apparently, This is not the only way to export video. LivePhotoRequestOptions: PHLivePhotoRequestOptions ? = nil,ĮxportPreset: String = AVAssetExportPresetHighestQuality, ImageRequestOptions: PHImageRequestOptions ? = nil, ![]() parmeter : convertLivePhotosToJPG // false : If you want mov file at live photos // true : If you want png file at live photos ( HEIC ) public func tempCopyMediaFile( videoRequestOptions: PHVideoRequestOptions ? = nil, get async icloud image (download) public func cloudImageDownload( progressBlock: ( Double) -> Void, completionBlock: (UIImage ?) -> Void ) -> PHImageRequestID ? // get original media file async copy temporary media file ( photo(png,gif.etc.) and video ) -> Don't forget, You should delete temporary file. get video file size (async) public func videoSize( options: PHVideoRequestOptions ? = nil, completion: (( Int) -> Void)) get full resolution image public var fullResolutionImage: UIImage ? // get photo file size (async) public func photoSize( options: PHImageRequestOptions ? = nil, completion: (( Int) -> Void), livePhotoVideoSize: Bool = false) phasset public var phAsset: PHAsset ? = nil // selected order index public var selectedOrder: Int = 0 // asset type public var type: AssetType To install it, simply add the following line to your Podfile:Ĭlass ViewController: UIViewController, TLPhotosPickerViewControllerDelegate TLPhotoPicker is available through CocoaPods.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |