wangguolei

sdk upgrade

Showing 100 changed files with 5 additions and 4144 deletions

Too many changes to show.

To preserve performance only 100 of 100+ files are displayed.

Pod::Spec.new do |s|
s.name = "HHVDoctorSDK"
s.version = "3.1.4.050616"
s.version = "3.1.4.050715"
s.summary = "和缓视频医生 SDK"
s.description = <<-DESC
... ...
No preview for this file type
... ... @@ -3,7 +3,6 @@
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHMedicSDK
import Foundation
@_exported import HHMedicSDK
import HHSDKBase
import HHSDKVideo
import ImSDK_Smart
import Swift
... ... @@ -34,8 +33,8 @@ extension HHMSDK {
public func waitExpert(userToken: Swift.String, callOrderId: Swift.String)
}
extension HHMSDK {
@objc dynamic public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler)
@objc dynamic public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler)
@objc dynamic public func login(userToken: Swift.String, completion: @escaping HHSDKVideo.HHLoginHandler)
@objc dynamic public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKVideo.HHLoginHandler)
@objc dynamic public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil)
@objc dynamic public func terminate()
@objc dynamic public func checkAutoLogin()
... ...
... ... @@ -3,7 +3,6 @@
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHMedicSDK
import Foundation
@_exported import HHMedicSDK
import HHSDKBase
import HHSDKVideo
import ImSDK_Smart
import Swift
... ... @@ -34,8 +33,8 @@ extension HHMSDK {
public func waitExpert(userToken: Swift.String, callOrderId: Swift.String)
}
extension HHMSDK {
@objc dynamic public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler)
@objc dynamic public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKBase.HHLoginHandler)
@objc dynamic public func login(userToken: Swift.String, completion: @escaping HHSDKVideo.HHLoginHandler)
@objc dynamic public func autoLogin(uuid: Swift.Int, completion: @escaping HHSDKVideo.HHLoginHandler)
@objc dynamic public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil)
@objc dynamic public func terminate()
@objc dynamic public func checkAutoLogin()
... ...
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef HHPHOTOPICKER_SWIFT_H
#define HHPHOTOPICKER_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#include <Foundation/Foundation.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import AVFoundation;
@import CoreFoundation;
@import CoreGraphics;
@import CoreMedia;
@import Foundation;
@import ObjectiveC;
@import Photos;
@import QuartzCore;
@import UIKit;
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHPhotoPicker",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
SWIFT_CLASS("_TtC13HHPhotoPicker18HHPhotoConfigModel")
@interface HHPhotoConfigModel : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC13HHPhotoPicker20HHPhotoPickerManager")
@interface HHPhotoPickerManager : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class UIColor;
SWIFT_CLASS("_TtC13HHPhotoPicker20HHPhotoUIConfigModel")
@interface HHPhotoUIConfigModel : NSObject
@property (nonatomic, strong) UIColor * _Nonnull indexLabelBgColor;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC13HHPhotoPicker16ZLAlbumListModel")
@interface ZLAlbumListModel : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
enum CaptureSessionPreset : NSInteger;
enum FocusMode : NSInteger;
enum ExposureMode : NSInteger;
enum FlashMode : NSInteger;
enum VideoExportType : NSInteger;
SWIFT_CLASS("_TtC13HHPhotoPicker21ZLCameraConfiguration")
@interface ZLCameraConfiguration : NSObject
/// Video resolution. Defaults to hd1280x720.
@property (nonatomic) enum CaptureSessionPreset sessionPreset;
/// Camera focus mode. Defaults to continuousAutoFocus
@property (nonatomic) enum FocusMode focusMode;
/// Camera exposure mode. Defaults to continuousAutoExposure
@property (nonatomic) enum ExposureMode exposureMode;
/// Camera flahs mode. Default is off. Defaults to off.
@property (nonatomic) enum FlashMode flashMode;
/// Video export format for recording video and editing video. Defaults to mov.
@property (nonatomic) enum VideoExportType videoExportType;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, CaptureSessionPreset, open) {
CaptureSessionPresetCif352x288 = 0,
CaptureSessionPresetVga640x480 = 1,
CaptureSessionPresetHd1280x720 = 2,
CaptureSessionPresetHd1920x1080 = 3,
CaptureSessionPresetHd4K3840x2160 = 4,
};
typedef SWIFT_ENUM(NSInteger, FocusMode, open) {
FocusModeAutoFocus = 0,
FocusModeContinuousAutoFocus = 1,
};
typedef SWIFT_ENUM(NSInteger, ExposureMode, open) {
ExposureModeAutoExpose = 0,
ExposureModeContinuousAutoExposure = 1,
};
typedef SWIFT_ENUM(NSInteger, FlashMode, open) {
FlashModeAuto = 0,
FlashModeOn = 1,
FlashModeOff = 2,
};
typedef SWIFT_ENUM(NSInteger, VideoExportType, open) {
VideoExportTypeMov = 0,
VideoExportTypeMp4 = 1,
};
@class UIImage;
@class NSURL;
@class NSNumber;
@class NSCoder;
@class CAAnimation;
@class NSString;
@class NSBundle;
SWIFT_CLASS("_TtC13HHPhotoPicker14ZLCustomCamera")
@interface ZLCustomCamera : UIViewController <CAAnimationDelegate>
@property (nonatomic, copy) void (^ _Nullable takeDoneBlock)(UIImage * _Nullable, NSURL * _Nullable);
@property (nonatomic, copy) void (^ _Nullable cancelBlock)(void);
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
- (void)viewDidLoad;
- (void)viewWillAppear:(BOOL)animated;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewWillDisappear:(BOOL)animated;
- (void)viewDidDisappear:(BOOL)animated;
- (void)viewDidLayoutSubviews;
- (void)animationDidStop:(CAAnimation * _Nonnull)anim finished:(BOOL)flag;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end
@class UIGestureRecognizer;
@interface ZLCustomCamera (SWIFT_EXTENSION(HHPhotoPicker)) <UIGestureRecognizerDelegate>
- (BOOL)gestureRecognizer:(UIGestureRecognizer * _Nonnull)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer * _Nonnull)otherGestureRecognizer SWIFT_WARN_UNUSED_RESULT;
@end
@class AVCapturePhotoOutput;
@class AVCaptureResolvedPhotoSettings;
@class AVCaptureBracketedStillImageSettings;
@interface ZLCustomCamera (SWIFT_EXTENSION(HHPhotoPicker)) <AVCapturePhotoCaptureDelegate>
- (void)captureOutput:(AVCapturePhotoOutput * _Nonnull)output willCapturePhotoForResolvedSettings:(AVCaptureResolvedPhotoSettings * _Nonnull)resolvedSettings;
- (void)captureOutput:(AVCapturePhotoOutput * _Nonnull)output didFinishProcessingPhotoSampleBuffer:(CMSampleBufferRef _Nullable)photoSampleBuffer previewPhotoSampleBuffer:(CMSampleBufferRef _Nullable)previewPhotoSampleBuffer resolvedSettings:(AVCaptureResolvedPhotoSettings * _Nonnull)resolvedSettings bracketSettings:(AVCaptureBracketedStillImageSettings * _Nullable)bracketSettings error:(NSError * _Nullable)error;
@end
@class AVCaptureFileOutput;
@class AVCaptureConnection;
@interface ZLCustomCamera (SWIFT_EXTENSION(HHPhotoPicker)) <AVCaptureFileOutputRecordingDelegate>
- (void)captureOutput:(AVCaptureFileOutput * _Nonnull)output didStartRecordingToOutputFileAtURL:(NSURL * _Nonnull)fileURL fromConnections:(NSArray<AVCaptureConnection *> * _Nonnull)connections;
- (void)captureOutput:(AVCaptureFileOutput * _Nonnull)output didFinishRecordingToOutputFileAtURL:(NSURL * _Nonnull)outputFileURL fromConnections:(NSArray<AVCaptureConnection *> * _Nonnull)connections error:(NSError * _Nullable)error;
@end
SWIFT_CLASS("_TtC13HHPhotoPicker10ZLDrawPath")
@interface ZLDrawPath : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class ZLImageClipRatio;
@class ZLFilter;
@class UIView;
@protocol ZLImageStickerContainerDelegate;
SWIFT_CLASS("_TtC13HHPhotoPicker24ZLEditImageConfiguration")
@interface ZLEditImageConfiguration : NSObject
/// Edit image tools. (This property is only for objc).
/// warning:
/// If you want to use the image sticker feature, you must provide a view that implements ZLImageStickerContainerDelegate.
@property (nonatomic, copy) NSArray<NSNumber *> * _Nonnull tools_objc;
/// Draw colors for image editor.
@property (nonatomic, copy) NSArray<UIColor *> * _Nonnull drawColors;
/// The default draw color. If this color not in editImageDrawColors, will pick the first color in editImageDrawColors as the default.
@property (nonatomic, strong) UIColor * _Nonnull defaultDrawColor;
/// Edit ratios for image editor.
@property (nonatomic, copy) NSArray<ZLImageClipRatio *> * _Nonnull clipRatios;
/// Text sticker colors for image editor.
@property (nonatomic, copy) NSArray<UIColor *> * _Nonnull textStickerTextColors;
/// The default text sticker color. If this color not in textStickerTextColors, will pick the first color in textStickerTextColors as the default.
@property (nonatomic, strong) UIColor * _Nonnull textStickerDefaultTextColor;
/// Filters for image editor.
@property (nonatomic, copy) NSArray<ZLFilter *> * _Nonnull filters;
@property (nonatomic, strong) UIView <ZLImageStickerContainerDelegate> * _Nullable imageStickerContainerView;
/// Adjust image tools. (This property is only for objc).
/// Valid when the tools contain EditTool.adjust
@property (nonatomic, copy) NSArray<NSNumber *> * _Nonnull adjustTools_objc;
/// Give an impact feedback when the adjust slider value is zero. Defaults to true.
@property (nonatomic) BOOL impactFeedbackWhenAdjustSliderValueIsZero;
/// Impact feedback style. Defaults to .medium
@property (nonatomic) enum UIImpactFeedbackStyle impactFeedbackStyle;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, EditTool, open) {
EditToolDraw = 0,
EditToolClip = 1,
EditToolImageSticker = 2,
EditToolTextSticker = 3,
EditToolMosaic = 4,
EditToolFilter = 5,
EditToolAdjust = 6,
};
typedef SWIFT_ENUM(NSInteger, AdjustTool, open) {
AdjustToolBrightness = 0,
AdjustToolContrast = 1,
AdjustToolSaturation = 2,
};
SWIFT_CLASS("_TtC13HHPhotoPicker16ZLEditImageModel")
@interface ZLEditImageModel : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class ZLEnlargeButton;
@class UIScrollView;
@class CAGradientLayer;
@class UIButton;
@class UIImageView;
SWIFT_CLASS("_TtC13HHPhotoPicker25ZLEditImageViewController")
@interface ZLEditImageViewController : UIViewController
@property (nonatomic) CGFloat drawColViewH;
@property (nonatomic) CGFloat filterColViewH;
@property (nonatomic) CGFloat adjustColViewH;
@property (nonatomic, strong) UIColor * _Nonnull ashbinNormalBgColor;
@property (nonatomic, strong) ZLEnlargeButton * _Nonnull cancelBtn;
@property (nonatomic, strong) UIScrollView * _Nonnull mainScrollView;
@property (nonatomic, strong) UIView * _Nonnull topShadowView;
@property (nonatomic, strong) CAGradientLayer * _Nonnull topShadowLayer;
@property (nonatomic, strong) UIView * _Nonnull bottomShadowView;
@property (nonatomic, strong) CAGradientLayer * _Nonnull bottomShadowLayer;
@property (nonatomic, strong) UIButton * _Nonnull doneBtn;
@property (nonatomic, strong) UIButton * _Nonnull revokeBtn;
@property (nonatomic, strong) UIView * _Nonnull ashbinView;
@property (nonatomic, strong) UIImageView * _Nonnull ashbinImgView;
@property (nonatomic) CGFloat drawLineWidth;
@property (nonatomic) CGFloat mosaicLineWidth;
@property (nonatomic, copy) void (^ _Nullable editFinishBlock)(UIImage * _Nonnull, ZLEditImageModel * _Nullable);
@property (nonatomic, copy) void (^ _Nullable cancelEditBlock)(void);
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
+ (void)showEditImageVCWithParentVC:(UIViewController * _Nullable)parentVC animate:(BOOL)animate image:(UIImage * _Nonnull)image editModel:(ZLEditImageModel * _Nullable)editModel cancel:(void (^ _Nullable)(void))cancel completion:(void (^ _Nullable)(UIImage * _Nonnull, ZLEditImageModel * _Nullable))completion;
- (nonnull instancetype)initWithImage:(UIImage * _Nonnull)image editModel:(ZLEditImageModel * _Nullable)editModel OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
- (void)viewDidLoad;
- (void)viewDidLayoutSubviews;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end
@interface ZLEditImageViewController (SWIFT_EXTENSION(HHPhotoPicker)) <UIGestureRecognizerDelegate>
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
@end
@class UICollectionView;
@class NSIndexPath;
@class UICollectionViewCell;
@interface ZLEditImageViewController (SWIFT_EXTENSION(HHPhotoPicker)) <UICollectionViewDataSource, UICollectionViewDelegate>
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
@end
@interface ZLEditImageViewController (SWIFT_EXTENSION(HHPhotoPicker)) <UIScrollViewDelegate>
- (UIView * _Nullable)viewForZoomingInScrollView:(UIScrollView * _Nonnull)scrollView SWIFT_WARN_UNUSED_RESULT;
- (void)scrollViewDidZoom:(UIScrollView * _Nonnull)scrollView;
- (void)scrollViewDidEndZooming:(UIScrollView * _Nonnull)scrollView withView:(UIView * _Nullable)view atScale:(CGFloat)scale;
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
- (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
- (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView * _Nonnull)scrollView;
@end
@class AVAsset;
SWIFT_CLASS("_TtC13HHPhotoPicker25ZLEditVideoViewController")
@interface ZLEditVideoViewController : UIViewController
@property (nonatomic, copy) void (^ _Nullable editFinishBlock)(NSURL * _Nullable);
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
/// initialize
/// \param avAsset AVAsset对象,需要传入本地视频,网络视频不支持
///
/// \param animateDismiss 退出界面时是否显示dismiss动画
///
- (nonnull instancetype)initWithAvAsset:(AVAsset * _Nonnull)avAsset animateDismiss:(BOOL)animateDismiss OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)viewDidLoad;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidLayoutSubviews;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end
@interface ZLEditVideoViewController (SWIFT_EXTENSION(HHPhotoPicker)) <UIGestureRecognizerDelegate>
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
@end
@class UICollectionViewLayout;
@interface ZLEditVideoViewController (SWIFT_EXTENSION(HHPhotoPicker)) <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
- (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
- (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
- (UIEdgeInsets)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout insetForSectionAtIndex:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
@end
@class UIEvent;
SWIFT_CLASS("_TtC13HHPhotoPicker15ZLEnlargeButton")
@interface ZLEnlargeButton : UIButton
- (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent * _Nullable)event SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
@end
enum ZLFilterType : NSInteger;
SWIFT_CLASS("_TtC13HHPhotoPicker8ZLFilter")
@interface ZLFilter : NSObject
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name filterType:(enum ZLFilterType)filterType OBJC_DESIGNATED_INITIALIZER;
/// 可传入 applier 自定义滤镜
- (nonnull instancetype)initWithName:(NSString * _Nonnull)name applier:(UIImage * _Nonnull (^ _Nullable)(UIImage * _Nonnull))applier OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface ZLFilter (SWIFT_EXTENSION(HHPhotoPicker))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, copy) NSArray<ZLFilter *> * _Nonnull all;)
+ (NSArray<ZLFilter *> * _Nonnull)all SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull normal;)
+ (ZLFilter * _Nonnull)normal SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull clarendon;)
+ (ZLFilter * _Nonnull)clarendon SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull nashville;)
+ (ZLFilter * _Nonnull)nashville SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull apply1977;)
+ (ZLFilter * _Nonnull)apply1977 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull toaster;)
+ (ZLFilter * _Nonnull)toaster SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull chrome;)
+ (ZLFilter * _Nonnull)chrome SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull fade;)
+ (ZLFilter * _Nonnull)fade SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull instant;)
+ (ZLFilter * _Nonnull)instant SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull process;)
+ (ZLFilter * _Nonnull)process SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull transfer;)
+ (ZLFilter * _Nonnull)transfer SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull tone;)
+ (ZLFilter * _Nonnull)tone SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull linear;)
+ (ZLFilter * _Nonnull)linear SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull sepia;)
+ (ZLFilter * _Nonnull)sepia SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull mono;)
+ (ZLFilter * _Nonnull)mono SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull noir;)
+ (ZLFilter * _Nonnull)noir SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLFilter * _Nonnull tonal;)
+ (ZLFilter * _Nonnull)tonal SWIFT_WARN_UNUSED_RESULT;
@end
typedef SWIFT_ENUM(NSInteger, ZLFilterType, open) {
ZLFilterTypeNormal = 0,
ZLFilterTypeChrome = 1,
ZLFilterTypeFade = 2,
ZLFilterTypeInstant = 3,
ZLFilterTypeProcess = 4,
ZLFilterTypeTransfer = 5,
ZLFilterTypeTone = 6,
ZLFilterTypeLinear = 7,
ZLFilterTypeSepia = 8,
ZLFilterTypeMono = 9,
ZLFilterTypeNoir = 10,
ZLFilterTypeTonal = 11,
};
SWIFT_CLASS("_TtC13HHPhotoPicker16ZLImageClipRatio")
@interface ZLImageClipRatio : NSObject
- (nonnull instancetype)initWithTitle:(NSString * _Nonnull)title whRatio:(CGFloat)whRatio isCircle:(BOOL)isCircle OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@interface ZLImageClipRatio (SWIFT_EXTENSION(HHPhotoPicker))
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull custom;)
+ (ZLImageClipRatio * _Nonnull)custom SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull circle;)
+ (ZLImageClipRatio * _Nonnull)circle SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh1x1;)
+ (ZLImageClipRatio * _Nonnull)wh1x1 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh3x4;)
+ (ZLImageClipRatio * _Nonnull)wh3x4 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh4x3;)
+ (ZLImageClipRatio * _Nonnull)wh4x3 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh2x3;)
+ (ZLImageClipRatio * _Nonnull)wh2x3 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh3x2;)
+ (ZLImageClipRatio * _Nonnull)wh3x2 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh9x16;)
+ (ZLImageClipRatio * _Nonnull)wh9x16 SWIFT_WARN_UNUSED_RESULT;
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) ZLImageClipRatio * _Nonnull wh16x9;)
+ (ZLImageClipRatio * _Nonnull)wh16x9 SWIFT_WARN_UNUSED_RESULT;
@end
enum ZLURLType : NSInteger;
SWIFT_CLASS("_TtC13HHPhotoPicker24ZLImagePreviewController")
@interface ZLImagePreviewController : UIViewController
@property (nonatomic, copy) void (^ _Nullable longPressBlock)(ZLImagePreviewController * _Nullable, UIImage * _Nullable, NSInteger);
@property (nonatomic, copy) void (^ _Nullable doneBlock)(NSArray * _Nonnull);
@property (nonatomic, copy) NSDictionary<NSString *, id> * _Nullable videoHttpHeader;
@property (nonatomic, readonly) BOOL prefersStatusBarHidden;
@property (nonatomic, readonly) UIStatusBarStyle preferredStatusBarStyle;
/// \param datas Must be one of PHAsset, UIImage and URL, will filter others in init function.
///
/// \param showBottomView If showSelectBtn is true, showBottomView is always true.
///
/// \param index Index for first display.
///
/// \param urlType Tell me the url is image or video.
///
/// \param urlImageLoader Called when cell will display, cell will layout after callback when image load finish. The first block is progress callback, second is load finish callback.
///
- (nonnull instancetype)initWithDatas:(NSArray * _Nonnull)datas index:(NSInteger)index showSelectBtn:(BOOL)showSelectBtn showBottomView:(BOOL)showBottomView urlType:(enum ZLURLType (^ _Nullable)(NSURL * _Nonnull))urlType urlImageLoader:(void (^ _Nullable)(NSURL * _Nonnull, UIImageView * _Nonnull, void (^ _Nonnull)(CGFloat), void (^ _Nonnull)(void)))urlImageLoader OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)viewDidLoad;
- (void)viewWillAppear:(BOOL)animated;
- (void)viewDidAppear:(BOOL)animated;
- (void)viewDidLayoutSubviews;
- (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
@end
@interface ZLImagePreviewController (SWIFT_EXTENSION(HHPhotoPicker))
- (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
- (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
@end
@interface ZLImagePreviewController (SWIFT_EXTENSION(HHPhotoPicker)) <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
- (CGFloat)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (CGFloat)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (UIEdgeInsets)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout insetForSectionAtIndex:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (void)collectionView:(UICollectionView * _Nonnull)collectionView didEndDisplayingCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
@end
/// Provide an image sticker container view that conform to this protocol must be a subclass of UIView
/// 必须是UIView的子类遵循这个协议
SWIFT_PROTOCOL("_TtP13HHPhotoPicker31ZLImageStickerContainerDelegate_")
@protocol ZLImageStickerContainerDelegate
@property (nonatomic, copy) void (^ _Nullable selectImageBlock)(UIImage * _Nonnull);
@property (nonatomic, copy) void (^ _Nullable hideBlock)(void);
- (void)showIn:(UIView * _Nonnull)view;
@end
SWIFT_CLASS("_TtC13HHPhotoPicker19ZLImageStickerState")
@interface ZLImageStickerState : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
typedef SWIFT_ENUM(NSInteger, ZLLanguageType, open) {
ZLLanguageTypeSystem = 0,
ZLLanguageTypeChineseSimplified = 1,
ZLLanguageTypeChineseTraditional = 2,
ZLLanguageTypeEnglish = 3,
ZLLanguageTypeJapanese = 4,
ZLLanguageTypeFrench = 5,
ZLLanguageTypeGerman = 6,
ZLLanguageTypeRussian = 7,
ZLLanguageTypeVietnamese = 8,
ZLLanguageTypeKorean = 9,
ZLLanguageTypeMalay = 10,
ZLLanguageTypeItalian = 11,
ZLLanguageTypeIndonesian = 12,
ZLLanguageTypePortuguese = 13,
ZLLanguageTypeSpanish = 14,
ZLLanguageTypeTurkish = 15,
};
SWIFT_CLASS("_TtC13HHPhotoPicker12ZLMosaicPath")
@interface ZLMosaicPath : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
typedef SWIFT_ENUM(NSInteger, ZLNoAuthorityType, open) {
ZLNoAuthorityTypeLibrary = 0,
ZLNoAuthorityTypeCamera = 1,
ZLNoAuthorityTypeMicrophone = 2,
};
typedef SWIFT_ENUM(NSInteger, ZLPhotoBrowserStyle, open) {
/// The album list is embedded in the navigation of the thumbnail interface, click the drop-down display.
ZLPhotoBrowserStyleEmbedAlbumList = 0,
/// The display relationship between the album list and the thumbnail interface is push.
ZLPhotoBrowserStyleExternalAlbumList = 1,
};
enum HUDStyle : NSInteger;
@class PHAsset;
SWIFT_CLASS("_TtC13HHPhotoPicker20ZLPhotoConfiguration")
@interface ZLPhotoConfiguration : NSObject
+ (ZLPhotoConfiguration * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
+ (void)resetConfiguration;
/// Photo sorting method, the preview interface is not affected by this parameter. Defaults to true.
@property (nonatomic) BOOL sortAscending;
/// Anything superior than 1 will enable the multiple selection feature. Defaults to 9.
@property (nonatomic) NSInteger maxSelectCount;
/// A count for video max selection. Defaults to 0.
/// warning:
/// Only valid in mix selection mode. (i.e. allowMixSelect = true)
@property (nonatomic) NSInteger maxVideoSelectCount;
/// A count for video min selection. Defaults to 0.
/// warning:
/// Only valid in mix selection mode. (i.e. allowMixSelect = true)
@property (nonatomic) NSInteger minVideoSelectCount;
/// Whether photos and videos can be selected together. Defaults to true.
/// If set to false, only one video can be selected. Defaults to true.
@property (nonatomic) BOOL allowMixSelect;
/// Preview selection max preview count, if the value is zero, only show <code>Camera</code>, <code>Album</code>, <code>Cancel</code> buttons. Defaults to 20.
@property (nonatomic) NSInteger maxPreviewCount;
@property (nonatomic) CGFloat cellCornerRadio;
/// If set to false, gif and livephoto cannot be selected either. Defaults to true.
@property (nonatomic) BOOL allowSelectImage;
@property (nonatomic) BOOL allowSelectVideo;
/// Allow select Gif, it only controls whether it is displayed in Gif form.
/// If value is false, the Gif logo is not displayed. Defaults to true.
@property (nonatomic) BOOL allowSelectGif;
/// Allow select LivePhoto, it only controls whether it is displayed in LivePhoto form.
/// If value is false, the LivePhoto logo is not displayed. Defaults to false.
@property (nonatomic) BOOL allowSelectLivePhoto;
/// Allow take photos in the album. Defaults to true.
/// warning:
/// If allowTakePhoto and allowRecordVideo are both false, it will not be displayed.
@property (nonatomic) BOOL allowTakePhotoInLibrary;
@property (nonatomic) BOOL allowEditImage;
@property (nonatomic) BOOL allowEditVideo;
/// Control whether to display the selection button animation when selecting. Defaults to true.
@property (nonatomic) BOOL animateSelectBtnWhenSelect;
/// Animation duration for select button
@property (nonatomic) CFTimeInterval selectBtnAnimationDuration;
/// After selecting a image/video in the thumbnail interface, enter the editing interface directly. Defaults to false.
/// <ul>
/// <li>
/// discussion: Editing image is only valid when allowEditImage is true and maxSelectCount is 1.
/// Editing video is only valid when allowEditVideo is true and maxSelectCount is 1.
/// </li>
/// </ul>
@property (nonatomic) BOOL editAfterSelectThumbnailImage;
/// Only valid when allowMixSelect is false and allowEditVideo is true. Defaults to true.
/// Just like the Wechat-Timeline selection style. If you want to crop the video after select thumbnail under allowMixSelect = true, please use <em>editAfterSelectThumbnailImage</em>.
@property (nonatomic) BOOL cropVideoAfterSelectThumbnail;
/// If image edit tools only has clip and this property is true. When you click edit, the cropping interface (i.e. ZLClipImageViewController) will be displayed. Defaults to false.
@property (nonatomic) BOOL showClipDirectlyIfOnlyHasClipTool;
/// Save the edited image to the album after editing. Defaults to true.
@property (nonatomic) BOOL saveNewImageAfterEdit;
/// If true, you can slide select photos in album. Defaults to true.
@property (nonatomic) BOOL allowSlideSelect;
/// When slide select is active, will auto scroll to top or bottom when your finger at the top or bottom. Defaults to true.
@property (nonatomic) BOOL autoScrollWhenSlideSelectIsActive;
/// The max speed (pt/s) of auto scroll. Defaults to 600.
@property (nonatomic) CGFloat autoScrollMaxSpeed;
/// If true, you can drag select photo when preview selection style. Defaults to false.
@property (nonatomic) BOOL allowDragSelect;
/// Allow select full image. Defaults to true.
@property (nonatomic) BOOL allowSelectOriginal;
/// Allow access to the preview large image interface (That is, whether to allow access to the large image interface after clicking the thumbnail image). Defaults to true.
@property (nonatomic) BOOL allowPreviewPhotos;
/// Whether to show the preview button (i.e. the preview button in the lower left corner of the thumbnail interface). Defaults to true.
@property (nonatomic) BOOL showPreviewButtonInAlbum;
/// Whether to display the selected count on the button. Defaults to true.
@property (nonatomic) BOOL showSelectCountOnDoneBtn;
/// The column count when iPhone is in portait mode. Minimum is 2, maximum is 6. Defaults to 4.
/// \code
/// iPhone landscape mode: columnCount += 2.
/// iPad portait mode: columnCount += 2.
/// iPad landscape mode: columnCount += 4.
///
/// \endcode
@property (nonatomic) NSInteger columnCount;
/// Maximum cropping time when editing video, unit: second. Defaults to 10.
@property (nonatomic) NSInteger maxEditVideoTime;
/// Allow to choose the maximum duration of the video. Defaults to 120.
@property (nonatomic) NSInteger maxSelectVideoDuration;
/// Allow to choose the minimum duration of the video. Defaults to 0.
@property (nonatomic) NSInteger minSelectVideoDuration;
/// Image editor configuration.
@property (nonatomic, strong) ZLEditImageConfiguration * _Nonnull editImageConfiguration;
/// Show the image captured by the camera is displayed on the camera button inside the album. Defaults to false.
@property (nonatomic) BOOL showCaptureImageOnTakePhotoBtn;
/// In single selection mode, whether to display the selection button. Defaults to false.
@property (nonatomic) BOOL showSelectBtnWhenSingleSelect;
/// Overlay a mask layer on top of the selected photos. Defaults to true.
@property (nonatomic) BOOL showSelectedMask;
/// Display a border on the selected photos cell. Defaults to false.
@property (nonatomic) BOOL showSelectedBorder;
/// Overlay a mask layer above the cells that cannot be selected. Defaults to true.
@property (nonatomic) BOOL showInvalidMask;
/// Display the index of the selected photos. Defaults to true.
@property (nonatomic) BOOL showSelectedIndex;
/// Display the selected photos at the bottom of the preview large photos interface. Defaults to true.
@property (nonatomic) BOOL showSelectedPhotoPreview;
/// Allow framework fetch photos when callback. Defaults to true.
@property (nonatomic) BOOL shouldAnialysisAsset;
/// Timeout for image parsing. Defaults to 20.
@property (nonatomic) NSTimeInterval timeout;
/// Language for framework.
@property (nonatomic) enum ZLLanguageType languageType;
/// Whether to use custom camera. Defaults to true.
@property (nonatomic) BOOL useCustomCamera;
/// Allow taking photos in the camera (Need allowSelectImage to be true). Defaults to true.
@property (nonatomic) BOOL allowTakePhoto;
/// Allow recording in the camera (Need allowSelectVideo to be true). Defaults to true.
@property (nonatomic) BOOL allowRecordVideo;
/// Minimum recording duration. Defaults to 0.
@property (nonatomic) NSInteger minRecordDuration;
/// Maximum recording duration. Defaults to 10, minimum is 1.
@property (nonatomic) NSInteger maxRecordDuration;
/// The configuration for camera.
@property (nonatomic, strong) ZLCameraConfiguration * _Nonnull cameraConfiguration;
/// Hud style. Defaults to lightBlur.
@property (nonatomic) enum HUDStyle hudStyle;
/// This block will be called before selecting an image, the developer can first determine whether the asset is allowed to be selected.
/// Only control whether it is allowed to be selected, and will not affect the selection logic in the framework.
/// <ul>
/// <li>
/// Tips: If the choice is not allowed, the developer can toast prompt the user for relevant information.
/// </li>
/// </ul>
@property (nonatomic, copy) BOOL (^ _Nullable canSelectAsset)(PHAsset * _Nonnull);
/// If user choose limited Photo mode, a button with ‘+’ will be added to the ZLThumbnailViewController. It will call PHPhotoLibrary.shared().presentLimitedLibraryPicker(from:) to add photo. Defaults to true.
/// E.g., Sina Weibo’s ImagePicker
@property (nonatomic) BOOL showAddPhotoButton;
/// iOS14 limited Photo mode, will show collection footer view in ZLThumbnailViewController.
/// Will go to system setting if clicked. Defaults to true.
@property (nonatomic) BOOL showEnterSettingTips;
/// Callback after the no authority alert dismiss.
@property (nonatomic, copy) void (^ _Nullable noAuthorityCallback)(enum ZLNoAuthorityType);
/// Allow user to do something before select photo result callback.
/// And you must call the second parameter of this block to continue the photos selection.
/// The first parameter is the current controller.
/// The second parameter is the block that needs to be called after the user completes the operation.
@property (nonatomic, copy) void (^ _Nullable operateBeforeDoneAction)(UIViewController * _Nonnull, void (^ _Nonnull)(void));
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@interface ZLPhotoConfiguration (SWIFT_EXTENSION(HHPhotoPicker))
- (ZLPhotoConfiguration * _Nonnull)allowSelectVideo:(BOOL)value;
- (ZLPhotoConfiguration * _Nonnull)canSelectAsset:(BOOL (^ _Nullable)(PHAsset * _Nonnull))block;
- (ZLPhotoConfiguration * _Nonnull)showAddPhotoButton:(BOOL)value;
- (ZLPhotoConfiguration * _Nonnull)showEnterSettingTips:(BOOL)value;
- (ZLPhotoConfiguration * _Nonnull)noAuthorityCallback:(void (^ _Nullable)(enum ZLNoAuthorityType))callback;
- (ZLPhotoConfiguration * _Nonnull)operateBeforeDoneAction:(void (^ _Nullable)(UIViewController * _Nonnull, void (^ _Nonnull)(void)))block;
@end
@class ZLPhotoModel;
@class NSData;
@class PHLivePhoto;
@class AVPlayerItem;
SWIFT_CLASS("_TtC13HHPhotoPicker14ZLPhotoManager")
@interface ZLPhotoManager : NSObject
/// Save image to album.
+ (void)saveImageToAlbumWithImage:(UIImage * _Nonnull)image completion:(void (^ _Nullable)(BOOL, PHAsset * _Nullable))completion;
/// Save video to album.
+ (void)saveVideoToAlbumWithUrl:(NSURL * _Nonnull)url completion:(void (^ _Nullable)(BOOL, PHAsset * _Nullable))completion;
/// Fetch photos from result.
+ (NSArray<ZLPhotoModel *> * _Nonnull)fetchPhotoIn:(PHFetchResult<PHAsset *> * _Nonnull)result ascending:(BOOL)ascending allowSelectImage:(BOOL)allowSelectImage allowSelectVideo:(BOOL)allowSelectVideo limitCount:(NSInteger)limitCount SWIFT_WARN_UNUSED_RESULT;
/// Fetch all album list.
+ (void)getPhotoAlbumListWithAscending:(BOOL)ascending allowSelectImage:(BOOL)allowSelectImage allowSelectVideo:(BOOL)allowSelectVideo completion:(SWIFT_NOESCAPE void (^ _Nonnull)(NSArray<ZLAlbumListModel *> * _Nonnull))completion;
/// Fetch camera roll album.
+ (void)getCameraRollAlbumWithAllowSelectImage:(BOOL)allowSelectImage allowSelectVideo:(BOOL)allowSelectVideo completion:(void (^ _Nonnull)(ZLAlbumListModel * _Nonnull))completion;
+ (PHImageRequestID)fetchImageFor:(PHAsset * _Nonnull)asset size:(CGSize)size progress:(void (^ _Nullable)(CGFloat, NSError * _Nullable, BOOL * _Nonnull, NSDictionary * _Nullable))progress completion:(void (^ _Nonnull)(UIImage * _Nullable, BOOL))completion;
+ (PHImageRequestID)fetchOriginalImageFor:(PHAsset * _Nonnull)asset progress:(void (^ _Nullable)(CGFloat, NSError * _Nullable, BOOL * _Nonnull, NSDictionary * _Nullable))progress completion:(void (^ _Nonnull)(UIImage * _Nullable, BOOL))completion;
/// Fetch asset data.
+ (PHImageRequestID)fetchOriginalImageDataFor:(PHAsset * _Nonnull)asset progress:(void (^ _Nullable)(CGFloat, NSError * _Nullable, BOOL * _Nonnull, NSDictionary * _Nullable))progress completion:(void (^ _Nonnull)(NSData * _Nonnull, NSDictionary * _Nullable, BOOL))completion;
+ (PHImageRequestID)fetchLivePhotoFor:(PHAsset * _Nonnull)asset completion:(void (^ _Nonnull)(PHLivePhoto * _Nullable, NSDictionary * _Nullable, BOOL))completion SWIFT_WARN_UNUSED_RESULT;
+ (PHImageRequestID)fetchVideoFor:(PHAsset * _Nonnull)asset progress:(void (^ _Nullable)(CGFloat, NSError * _Nullable, BOOL * _Nonnull, NSDictionary * _Nullable))progress completion:(void (^ _Nonnull)(AVPlayerItem * _Nullable, NSDictionary * _Nullable, BOOL))completion SWIFT_WARN_UNUSED_RESULT;
+ (PHImageRequestID)fetchAVAssetForVideo:(PHAsset * _Nonnull)asset completion:(void (^ _Nonnull)(AVAsset * _Nullable, NSDictionary * _Nullable))completion SWIFT_WARN_UNUSED_RESULT;
/// Fetch asset local file path.
+ (void)fetchAssetFilePathWithAsset:(PHAsset * _Nonnull)asset completion:(void (^ _Nonnull)(NSString * _Nullable))completion;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@interface ZLPhotoManager (SWIFT_EXTENSION(HHPhotoPicker))
+ (BOOL)hasPhotoLibratyAuthority SWIFT_WARN_UNUSED_RESULT;
+ (BOOL)hasCameraAuthority SWIFT_WARN_UNUSED_RESULT;
+ (BOOL)hasMicrophoneAuthority SWIFT_WARN_UNUSED_RESULT;
@end
SWIFT_CLASS("_TtC13HHPhotoPicker12ZLPhotoModel")
@interface ZLPhotoModel : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
SWIFT_CLASS("_TtC13HHPhotoPicker19ZLPhotoPreviewSheet")
@interface ZLPhotoPreviewSheet : UIView
/// Success callback
/// block params
/// <ul>
/// <li>
/// params1: images for asset.
/// </li>
/// <li>
/// params2: selected assets
/// </li>
/// <li>
/// params3: is full image
/// </li>
/// </ul>
@property (nonatomic, copy) void (^ _Nullable selectImageBlock)(NSArray<UIImage *> * _Nonnull, NSArray<PHAsset *> * _Nonnull, BOOL);
/// Callback for photos that failed to parse
/// block params
/// <ul>
/// <li>
/// params1: failed assets.
/// </li>
/// <li>
/// params2: index for asset
/// </li>
/// </ul>
@property (nonatomic, copy) void (^ _Nullable selectImageRequestErrorBlock)(NSArray<PHAsset *> * _Nonnull, NSArray<NSNumber *> * _Nonnull);
@property (nonatomic, copy) void (^ _Nullable cancelBlock)(void);
- (nonnull instancetype)initWithFrame:(CGRect)frame;
/// \param selectedAssets preselected assets
///
- (nonnull instancetype)initWithSelectedAssets:(NSArray<PHAsset *> * _Nullable)selectedAssets OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder OBJC_DESIGNATED_INITIALIZER;
- (void)layoutSubviews;
- (void)showPreviewWithAnimate:(BOOL)animate sender:(UIViewController * _Nonnull)sender;
- (void)showPhotoLibraryWithSender:(UIViewController * _Nonnull)sender;
/// 传入已选择的assets,并预览
- (void)previewAssetsWithSender:(UIViewController * _Nonnull)sender assets:(NSArray<PHAsset *> * _Nonnull)assets index:(NSInteger)index isOriginal:(BOOL)isOriginal showBottomViewAndSelectBtn:(BOOL)showBottomViewAndSelectBtn;
@end
@class PHChange;
@interface ZLPhotoPreviewSheet (SWIFT_EXTENSION(HHPhotoPicker)) <PHPhotoLibraryChangeObserver>
- (void)photoLibraryDidChange:(PHChange * _Nonnull)changeInstance;
@end
@interface ZLPhotoPreviewSheet (SWIFT_EXTENSION(HHPhotoPicker)) <UIGestureRecognizerDelegate>
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer * _Nonnull)gestureRecognizer SWIFT_WARN_UNUSED_RESULT;
@end
@class UIImagePickerController;
@interface ZLPhotoPreviewSheet (SWIFT_EXTENSION(HHPhotoPicker)) <UIImagePickerControllerDelegate, UINavigationControllerDelegate>
- (void)imagePickerController:(UIImagePickerController * _Nonnull)picker didFinishPickingMediaWithInfo:(NSDictionary<UIImagePickerControllerInfoKey, id> * _Nonnull)info;
@end
@interface ZLPhotoPreviewSheet (SWIFT_EXTENSION(HHPhotoPicker)) <UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
- (CGSize)collectionView:(UICollectionView * _Nonnull)collectionView layout:(UICollectionViewLayout * _Nonnull)collectionViewLayout sizeForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
- (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
- (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
- (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
@end
enum CancelButtonStyle : NSInteger;
@class UIBlurEffect;
/// Custom UI configuration (include colors, images, text, font)
SWIFT_CLASS("_TtC13HHPhotoPicker22ZLPhotoUIConfiguration")
@interface ZLPhotoUIConfiguration : NSObject
+ (ZLPhotoUIConfiguration * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
+ (void)resetConfiguration;
@property (nonatomic) enum ZLPhotoBrowserStyle style;
@property (nonatomic) UIStatusBarStyle statusBarStyle;
/// text: Cancel. image: ‘x’. Default to image.
@property (nonatomic) enum CancelButtonStyle navCancelButtonStyle;
/// Whether to show the status bar when previewing photos. Defaults to false.
@property (nonatomic) BOOL showStatusBarInPreviewInterface;
/// The blur effect of the navigation bar in the album list
@property (nonatomic, strong) UIBlurEffect * _Nullable navViewBlurEffectOfAlbumList;
/// The blur effect of the navigation bar in the preview interface
@property (nonatomic, strong) UIBlurEffect * _Nullable navViewBlurEffectOfPreview;
/// The blur effect of the bottom tool bar in the album list
@property (nonatomic, strong) UIBlurEffect * _Nullable bottomViewBlurEffectOfAlbumList;
/// The blur effect of the bottom tool bar in the preview interface
@property (nonatomic, strong) UIBlurEffect * _Nullable bottomViewBlurEffectOfPreview;
/// Developers can customize images, but the name of the custom image resource must be consistent with the image name in the replaced bundle.
/// <ul>
/// <li>
/// example: Developers need to replace the selected and unselected image resources, and the array that needs to be passed in is
/// [“zl_btn_selected”, “zl_btn_unselected”].
/// </li>
/// </ul>
@property (nonatomic, copy) NSArray<NSString *> * _Nonnull customImageNames;
/// Developers can customize images, but the name of the custom image resource must be consistent with the image name in the replaced bundle.
/// <ul>
/// <li>
/// example: Developers need to replace the selected and unselected image resources, and the array that needs to be passed in is
/// [“zl_btn_selected”: selectedImage, “zl_btn_unselected”: unselectedImage].
/// </li>
/// </ul>
@property (nonatomic, copy) NSDictionary<NSString *, UIImage *> * _Nonnull customImageForKey_objc;
/// Developers can customize languages (This property is only for objc).
/// warning:
/// Please pay attention to the placeholders contained in languages when changing, such as %ld, %@.
/// <ul>
/// <li>
/// example: If you needs to replace
/// key: @“loading”, value: @“loading, waiting please” language,
/// The dictionary that needs to be passed in is @[@“loading”: @“text to be replaced”].
/// </li>
/// </ul>
@property (nonatomic, copy) NSDictionary<NSString *, NSString *> * _Nonnull customLanguageKeyValue_objc;
/// Font name.
@property (nonatomic, copy) NSString * _Nullable themeFontName;
/// Preview selection mode, translucent background color above.
/// 预览快速选择模式下,上方透明区域背景色
@property (nonatomic, strong) UIColor * _Nonnull sheetTranslucentColor;
/// Preview selection mode, a background color for <code>Camera</code>, <code>Album</code>, <code>Cancel</code> buttons.
/// 预览快速选择模式下,按钮背景颜色
@property (nonatomic, strong) UIColor * _Nonnull sheetBtnBgColor;
/// Preview selection mode, a text color for <code>Camera</code>, <code>Album</code>, <code>Cancel</code> buttons.
/// 预览快速选择模式下,按钮标题颜色
@property (nonatomic, strong) UIColor * _Nonnull sheetBtnTitleColor;
/// Preview selection mode, cancel button title color when the selection amount is superior than 0.
/// 预览快速选择模式下,按钮标题高亮颜色
@property (nonatomic, strong) UIColor * _Nonnull sheetBtnTitleTintColor;
/// A color for navigation bar.
/// 相册列表及小图界面导航条背景色
@property (nonatomic, strong) UIColor * _Nonnull navBarColor;
/// A color for navigation bar in preview interface.
/// 预览大图界面的导航条背景色
@property (nonatomic, strong) UIColor * _Nonnull navBarColorOfPreviewVC;
/// A color for Navigation bar text.
/// 相册列表及小图界面导航栏标题颜色
@property (nonatomic, strong) UIColor * _Nonnull navTitleColor;
/// A color for Navigation bar text of preview vc.
/// 预览大图界面导航栏标题颜色
@property (nonatomic, strong) UIColor * _Nonnull navTitleColorOfPreviewVC;
/// The background color of the title view when the frame style is embedAlbumList.
/// 下拉选择相册列表模式下,选择区域的背景色
@property (nonatomic, strong) UIColor * _Nonnull navEmbedTitleViewBgColor;
/// A color for background in album list.
/// 相册列表背景色
@property (nonatomic, strong) UIColor * _Nonnull albumListBgColor;
/// A color of the translucent area below the embed album list.
/// 嵌入式相册列表下方透明区域颜色
@property (nonatomic, strong) UIColor * _Nonnull embedAlbumListTranslucentColor;
/// A color for album list title label.
/// 相册列表标题颜色
@property (nonatomic, strong) UIColor * _Nonnull albumListTitleColor;
/// A color for album list count label.
/// 相册列表数量label的颜色
@property (nonatomic, strong) UIColor * _Nonnull albumListCountColor;
/// A color for album list separator.
/// 相册列表分割线颜色
@property (nonatomic, strong) UIColor * _Nonnull separatorColor;
/// A color for background in thumbnail interface.
/// 相册小图界面背景色
@property (nonatomic, strong) UIColor * _Nonnull thumbnailBgColor;
/// A color for background in preview interface..
/// 预览大图界面背景色
@property (nonatomic, strong) UIColor * _Nonnull previewVCBgColor;
/// A color for background in bottom tool view.
/// 相册小图界面底部工具条背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBgColor;
/// A color for background in bottom tool view in preview interface.
/// 预览大图界面底部工具条背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBgColorOfPreviewVC;
/// The normal state title color of bottom tool view buttons. Without done button.
/// 相册小图界面底部按钮可交互状态下标题颜色,不包括 <code>完成</code> 按钮
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnNormalTitleColor;
/// The normal state title color of bottom tool view done button.
/// 相册小图界面底部 <code>完成</code> 按钮可交互状态下标题颜色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewDoneBtnNormalTitleColor;
/// The normal state title color of bottom tool view buttons in preview interface. Without done button.
/// 预览大图界面底部按钮可交互状态下标题颜色,不包括 <code>完成</code> 按钮
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnNormalTitleColorOfPreviewVC;
/// The normal state title color of bottom tool view done button.
/// 预览大图界面底部 <code>完成</code> 按钮可交互状态下标题颜色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewDoneBtnNormalTitleColorOfPreviewVC;
/// The disable state title color of bottom tool view buttons. Without done button.
/// 相册小图界面底部按钮不可交互状态下标题颜色,不包括 <code>完成</code> 按钮
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnDisableTitleColor;
/// The disable state title color of bottom tool view done button.
/// 相册小图界面底部 <code>完成</code> 按钮不可交互状态下标题颜色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewDoneBtnDisableTitleColor;
/// The disable state title color of bottom tool view buttons in preview interface. Without done button.
/// 预览大图界面底部按钮不可交互状态下标题颜色,不包括 <code>完成</code> 按钮
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnDisableTitleColorOfPreviewVC;
/// The disable state title color of bottom tool view done button in preview interface.
/// 预览大图界面底部 <code>完成</code> 按钮不可交互状态下标题颜色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewDoneBtnDisableTitleColorOfPreviewVC;
/// The normal state background color of bottom tool view buttons.
/// 相册小图界面底部按钮可交互状态下背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnNormalBgColor;
/// The normal state background color of bottom tool view buttons in preview interface.
/// 预览大图界面底部按钮可交互状态下背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnNormalBgColorOfPreviewVC;
/// The disable state background color of bottom tool view buttons.
/// 相册小图界面底部按钮不可交互状态下背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnDisableBgColor;
/// The disable state background color of bottom tool view buttons in preview interface.
/// 预览大图界面底部按钮不可交互状态下背景色
@property (nonatomic, strong) UIColor * _Nonnull bottomToolViewBtnDisableBgColorOfPreviewVC;
/// With iOS14 limited authority, a color for select more photos at the bottom of the thumbnail interface.
/// iOS14 limited权限下,下方提示选择更多图片信息文字的颜色
@property (nonatomic, strong) UIColor * _Nonnull selectMorePhotoWhenAuthIsLismitedTitleColor;
/// The record progress color of custom camera.
/// 自定义相机录制视频时进度条颜色
@property (nonatomic, strong) UIColor * _Nonnull cameraRecodeProgressColor;
/// Mask layer color of selected cell.
/// 已选择照片上方遮罩阴影颜色
@property (nonatomic, strong) UIColor * _Nonnull selectedMaskColor;
/// Border color of selected cell.
/// 已选择照片border颜色
@property (nonatomic, strong) UIColor * _Nonnull selectedBorderColor;
/// Mask layer color of the cell that cannot be selected.
/// 不可选的照片上方遮罩阴影颜色
@property (nonatomic, strong) UIColor * _Nonnull invalidMaskColor;
/// The text color of selected cell index label.
/// 已选照片右上角序号label背景色
@property (nonatomic, strong) UIColor * _Nonnull indexLabelTextColor;
/// The background color of selected cell index label.
/// 已选照片右上角序号label背景色
@property (nonatomic, strong) UIColor * _Nonnull indexLabelBgColor;
/// The background color of camera cell inside album.
/// 相册小图界面拍照按钮背景色
@property (nonatomic, strong) UIColor * _Nonnull cameraCellBgColor;
/// The normal color of adjust slider.
/// 编辑图片,调整饱和度、对比度、亮度时,右侧slider背景色
@property (nonatomic, strong) UIColor * _Nonnull adjustSliderNormalColor;
/// The tint color of adjust slider.
/// 编辑图片,调整饱和度、对比度、亮度时,右侧slider背景高亮色
@property (nonatomic, strong) UIColor * _Nonnull adjustSliderTintColor;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
typedef SWIFT_ENUM(NSInteger, CancelButtonStyle, open) {
CancelButtonStyleText = 0,
CancelButtonStyleImage = 1,
};
SWIFT_CLASS("_TtC13HHPhotoPicker13ZLProgressHUD")
@interface ZLProgressHUD : UIView
- (nonnull instancetype)initWithStyle:(enum HUDStyle)style OBJC_DESIGNATED_INITIALIZER;
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
- (void)showWithTimeout:(NSTimeInterval)timeout;
- (void)hide;
- (nonnull instancetype)initWithFrame:(CGRect)frame SWIFT_UNAVAILABLE;
@end
typedef SWIFT_ENUM(NSInteger, HUDStyle, open) {
HUDStyleLight = 0,
HUDStyleLightBlur = 1,
HUDStyleDark = 2,
HUDStyleDarkBlur = 3,
};
SWIFT_CLASS("_TtC13HHPhotoPicker18ZLTextStickerState")
@interface ZLTextStickerState : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
typedef SWIFT_ENUM(NSInteger, ZLURLType, open) {
ZLURLTypeImage = 0,
ZLURLTypeVideo = 1,
};
SWIFT_CLASS("_TtC13HHPhotoPicker14ZLVideoManager")
@interface ZLVideoManager : NSObject
/// 没有针对不同分辨率视频做处理,仅用于处理相机拍照的视频
+ (void)mergeVideosWithFileUrls:(NSArray<NSURL *> * _Nonnull)fileUrls completion:(void (^ _Nonnull)(NSURL * _Nullable, NSError * _Nullable))completion;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@interface ZLVideoManager (SWIFT_EXTENSION(HHPhotoPicker))
@end
typedef SWIFT_ENUM(NSInteger, ExportType, open) {
ExportTypeMov = 0,
ExportTypeMp4 = 1,
};
@interface ZLVideoManager (SWIFT_EXTENSION(HHPhotoPicker))
+ (void)exportVideoFor:(PHAsset * _Nonnull)asset exportType:(enum ExportType)exportType presetName:(NSString * _Nonnull)presetName complete:(void (^ _Nonnull)(NSURL * _Nullable, NSError * _Nullable))complete;
+ (void)exportVideoFor:(AVAsset * _Nonnull)asset range:(CMTimeRange)range exportType:(enum ExportType)exportType presetName:(NSString * _Nonnull)presetName complete:(void (^ _Nonnull)(NSURL * _Nullable, NSError * _Nullable))complete;
@end
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double HHPhotoPickerVersionNumber;
FOUNDATION_EXPORT const unsigned char HHPhotoPickerVersionString[];
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name HHPhotoPicker
import AVFoundation
import Accelerate
import CoreMotion
import Foundation
@_exported import HHPhotoPicker
import Photos
import PhotosUI
import Swift
import UIKit
public protocol HHPhotoPickerManagerDelegate {
func selectImage(_ selectedImages: [UIKit.UIImage])
func cancelImage()
func selectImageRequestError(_ errorAssets: [Photos.PHAsset], errorIndexs: [Swift.Int])
}
@objc public class HHPhotoPickerManager : ObjectiveC.NSObject {
public var viewDelegate: HHPhotoPicker.HHPhotoPickerManagerDelegate?
public var photoConfigModel: HHPhotoPicker.HHPhotoConfigModel
public var photoUIConfigModel: HHPhotoPicker.HHPhotoUIConfigModel
required public init(showVC: UIKit.UIViewController)
public func showImagePicker()
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class HHPhotoConfigModel : ObjectiveC.NSObject {
public var maxPreviewCount: Swift.Int
public var maxSelectCount: Swift.Int {
get
set(newValue)
}
public var minVideoSelectCount: Swift.Int {
get
set(newValue)
}
public var maxVideoSelectCount: Swift.Int {
get
set(newValue)
}
public var minSelectVideoDuration: Swift.Int
public var maxSelectVideoDuration: Swift.Int
public var cellCornerRadio: CoreGraphics.CGFloat
public var languageType: HHPhotoPicker.ZLLanguageType {
get
set(value)
}
public var columnCount: Swift.Int {
get
set(newValue)
}
public var sortAscending: Swift.Bool
public var allowSelectImage: Swift.Bool
public var allowTakePhotoInLibrary: Swift.Bool
public var allowSelectOriginal: Swift.Bool
public var allowSelectGif: Swift.Bool
public var allowSelectVideo: Swift.Bool
public var allowSelectLivePhoto: Swift.Bool
public var allowEditImage: Swift.Bool
public var allowMixSelect: Swift.Bool
public var allowPreviewPhotos: Swift.Bool
public var editImageWithDraw: Swift.Bool
public var editImageWithClip: Swift.Bool
public var editImageWithImageSticker: Swift.Bool
public var editImageWithTextSticker: Swift.Bool
public var editImageWithMosaic: Swift.Bool
public var editImageWithFilter: Swift.Bool
public var editImageWithAdjust: Swift.Bool
public var editImageWitAdjustBrightness: Swift.Bool
public var editImageWitAdjustContrast: Swift.Bool
public var editImageWitAdjustSaturation: Swift.Bool
public var shouldAnialysisAsset: Swift.Bool
public var allowEditVideo: Swift.Bool {
get
set(newValue)
}
public var saveNewImageAfterEdit: Swift.Bool
public var allowDragSelect: Swift.Bool
public var allowSlideSelect: Swift.Bool
public var autoScrollWhenSlideSelectIsActive: Swift.Bool
public var autoScrollMaxSpeed: CoreGraphics.CGFloat
public var showCaptureImageOnTakePhotoBtn: Swift.Bool
public var showSelectedIndex: Swift.Bool
public var showSelectedMask: Swift.Bool
public var showSelectedBorder: Swift.Bool
public var showInvalidMask: Swift.Bool
public var useCustomCamera: Swift.Bool
public var flashMode: HHPhotoPicker.ZLCameraConfiguration.FlashMode
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class HHPhotoUIConfigModel : ObjectiveC.NSObject {
public var style: HHPhotoPicker.ZLPhotoBrowserStyle
public var bottomToolViewBtnNormalBgColor: UIKit.UIColor
public var bottomToolViewBtnNormalBgColorOfPreviewVC: UIKit.UIColor
@objc public var indexLabelBgColor: UIKit.UIColor
@objc override dynamic public init()
@objc deinit
}
@objc public class ZLAlbumListModel : ObjectiveC.NSObject {
final public let title: Swift.String
public var count: Swift.Int {
get
}
public var result: Photos.PHFetchResult<Photos.PHAsset>
final public let collection: Photos.PHAssetCollection
final public let option: Photos.PHFetchOptions
final public let isCameraRoll: Swift.Bool
public var headImageAsset: Photos.PHAsset? {
get
}
public var models: [HHPhotoPicker.ZLPhotoModel]
public init(title: Swift.String, result: Photos.PHFetchResult<Photos.PHAsset>, collection: Photos.PHAssetCollection, option: Photos.PHFetchOptions, isCameraRoll: Swift.Bool)
public func refetchPhotos()
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class ZLCameraConfiguration : ObjectiveC.NSObject {
@objc public enum CaptureSessionPreset : Swift.Int {
case cif352x288
case vga640x480
case hd1280x720
case hd1920x1080
case hd4K3840x2160
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum FocusMode : Swift.Int {
case autoFocus
case continuousAutoFocus
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum ExposureMode : Swift.Int {
case autoExpose
case continuousAutoExposure
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum FlashMode : Swift.Int {
case auto
case on
case off
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum VideoExportType : Swift.Int {
case mov
case mp4
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public var sessionPreset: HHPhotoPicker.ZLCameraConfiguration.CaptureSessionPreset
@objc public var focusMode: HHPhotoPicker.ZLCameraConfiguration.FocusMode
@objc public var exposureMode: HHPhotoPicker.ZLCameraConfiguration.ExposureMode
@objc public var flashMode: HHPhotoPicker.ZLCameraConfiguration.FlashMode
@objc public var videoExportType: HHPhotoPicker.ZLCameraConfiguration.VideoExportType
@objc override dynamic public init()
@objc deinit
}
extension ZLCameraConfiguration {
@discardableResult
public func sessionPreset(_ sessionPreset: HHPhotoPicker.ZLCameraConfiguration.CaptureSessionPreset) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func focusMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.FocusMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func exposureMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.ExposureMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func flashMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.FlashMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func videoExportType(_ type: HHPhotoPicker.ZLCameraConfiguration.VideoExportType) -> HHPhotoPicker.ZLCameraConfiguration
}
@objc open class ZLCustomCamera : UIKit.UIViewController, QuartzCore.CAAnimationDelegate {
@objc public var takeDoneBlock: ((UIKit.UIImage?, Foundation.URL?) -> Swift.Void)?
@objc public var cancelBlock: (() -> Swift.Void)?
public var tipsLabel: UIKit.UILabel {
get
set(value)
}
public var bottomView: UIKit.UIView {
get
set(value)
}
public var largeCircleView: UIKit.UIVisualEffectView {
get
set(value)
}
public var smallCircleView: UIKit.UIView {
get
set(value)
}
public var animateLayer: QuartzCore.CAShapeLayer {
get
set(value)
}
public var retakeBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var doneBtn: UIKit.UIButton {
get
set(value)
}
public var dismissBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var switchCameraBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var focusCursorView: UIKit.UIImageView {
get
set(value)
}
public var takedImageView: UIKit.UIImageView {
get
set(value)
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc deinit
@objc dynamic public init()
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic open func viewDidLoad()
@objc override dynamic open func viewWillAppear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic open func viewWillDisappear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidDisappear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidLayoutSubviews()
@objc public func animationDidStop(_ anim: QuartzCore.CAAnimation, finished flag: Swift.Bool)
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLCustomCamera : AVFoundation.AVCapturePhotoCaptureDelegate {
@objc dynamic public func photoOutput(_ output: AVFoundation.AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVFoundation.AVCaptureResolvedPhotoSettings)
@objc dynamic public func photoOutput(_ output: AVFoundation.AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CoreMedia.CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CoreMedia.CMSampleBuffer?, resolvedSettings: AVFoundation.AVCaptureResolvedPhotoSettings, bracketSettings: AVFoundation.AVCaptureBracketedStillImageSettings?, error: Swift.Error?)
}
extension ZLCustomCamera : AVFoundation.AVCaptureFileOutputRecordingDelegate {
@objc dynamic public func fileOutput(_ output: AVFoundation.AVCaptureFileOutput, didStartRecordingTo fileURL: Foundation.URL, from connections: [AVFoundation.AVCaptureConnection])
@objc dynamic public func fileOutput(_ output: AVFoundation.AVCaptureFileOutput, didFinishRecordingTo outputFileURL: Foundation.URL, from connections: [AVFoundation.AVCaptureConnection], error: Swift.Error?)
}
extension ZLCustomCamera : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizer(_ gestureRecognizer: UIKit.UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
@objc public protocol ZLImageStickerContainerDelegate {
@objc var selectImageBlock: ((UIKit.UIImage) -> Swift.Void)? { get set }
@objc var hideBlock: (() -> Swift.Void)? { get set }
@objc func show(in view: UIKit.UIView)
}
@objc @_inheritsConvenienceInitializers public class ZLEditImageConfiguration : ObjectiveC.NSObject {
@objc public enum EditTool : Swift.Int, Swift.CaseIterable {
case draw
case clip
case imageSticker
case textSticker
case mosaic
case filter
case adjust
public init?(rawValue: Swift.Int)
public typealias AllCases = [HHPhotoPicker.ZLEditImageConfiguration.EditTool]
public typealias RawValue = Swift.Int
public static var allCases: [HHPhotoPicker.ZLEditImageConfiguration.EditTool] {
get
}
public var rawValue: Swift.Int {
get
}
}
@objc public enum AdjustTool : Swift.Int, Swift.CaseIterable {
case brightness
case contrast
case saturation
public init?(rawValue: Swift.Int)
public typealias AllCases = [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool]
public typealias RawValue = Swift.Int
public static var allCases: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool] {
get
}
public var rawValue: Swift.Int {
get
}
}
public var tools: [HHPhotoPicker.ZLEditImageConfiguration.EditTool] {
get
set(newValue)
}
@objc public var tools_objc: [Swift.Int] {
@objc get
@objc set(value)
}
@objc public var drawColors: [UIKit.UIColor] {
@objc get
@objc set(newValue)
}
@objc public var defaultDrawColor: UIKit.UIColor
@objc public var clipRatios: [HHPhotoPicker.ZLImageClipRatio] {
@objc get
@objc set(newValue)
}
@objc public var textStickerTextColors: [UIKit.UIColor] {
@objc get
@objc set(newValue)
}
@objc public var textStickerDefaultTextColor: UIKit.UIColor
@objc public var filters: [HHPhotoPicker.ZLFilter] {
@objc get
@objc set(newValue)
}
@objc public var imageStickerContainerView: (UIKit.UIView & HHPhotoPicker.ZLImageStickerContainerDelegate)?
public var adjustTools: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool] {
get
set(newValue)
}
@objc public var adjustTools_objc: [Swift.Int] {
@objc get
@objc set(value)
}
@objc public var impactFeedbackWhenAdjustSliderValueIsZero: Swift.Bool
@objc public var impactFeedbackStyle: UIKit.UIImpactFeedbackGenerator.FeedbackStyle
@objc override dynamic public init()
@objc deinit
}
extension ZLEditImageConfiguration {
@discardableResult
public func tools(_ tools: [HHPhotoPicker.ZLEditImageConfiguration.EditTool]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func drawColors(_ colors: [UIKit.UIColor]) -> HHPhotoPicker.ZLEditImageConfiguration
public func defaultDrawColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func clipRatios(_ ratios: [HHPhotoPicker.ZLImageClipRatio]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func textStickerTextColors(_ colors: [UIKit.UIColor]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func textStickerDefaultTextColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func filters(_ filters: [HHPhotoPicker.ZLFilter]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func imageStickerContainerView(_ view: (UIKit.UIView & HHPhotoPicker.ZLImageStickerContainerDelegate)?) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func adjustTools(_ tools: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func impactFeedbackWhenAdjustSliderValueIsZero(_ value: Swift.Bool) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func impactFeedbackStyle(_ style: UIKit.UIImpactFeedbackGenerator.FeedbackStyle) -> HHPhotoPicker.ZLEditImageConfiguration
}
@objc public class ZLImageClipRatio : ObjectiveC.NSObject {
public var title: Swift.String
final public let whRatio: CoreGraphics.CGFloat
@objc public init(title: Swift.String, whRatio: CoreGraphics.CGFloat, isCircle: Swift.Bool = false)
@objc override dynamic public init()
@objc deinit
}
extension ZLImageClipRatio {
@objc public static var custom: HHPhotoPicker.ZLImageClipRatio
@objc public static var circle: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh1x1: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh3x4: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh4x3: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh2x3: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh3x2: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh9x16: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh16x9: HHPhotoPicker.ZLImageClipRatio
}
@objc public class ZLEditImageModel : ObjectiveC.NSObject {
final public let drawPaths: [HHPhotoPicker.ZLDrawPath]
final public let mosaicPaths: [HHPhotoPicker.ZLMosaicPath]
final public let editRect: CoreGraphics.CGRect?
final public let angle: CoreGraphics.CGFloat
final public let brightness: Swift.Float
final public let contrast: Swift.Float
final public let saturation: Swift.Float
final public let selectRatio: HHPhotoPicker.ZLImageClipRatio?
final public let selectFilter: HHPhotoPicker.ZLFilter?
final public let textStickers: [(state: HHPhotoPicker.ZLTextStickerState, index: Swift.Int)]?
final public let imageStickers: [(state: HHPhotoPicker.ZLImageStickerState, index: Swift.Int)]?
public init(drawPaths: [HHPhotoPicker.ZLDrawPath], mosaicPaths: [HHPhotoPicker.ZLMosaicPath], editRect: CoreGraphics.CGRect?, angle: CoreGraphics.CGFloat, brightness: Swift.Float, contrast: Swift.Float, saturation: Swift.Float, selectRatio: HHPhotoPicker.ZLImageClipRatio?, selectFilter: HHPhotoPicker.ZLFilter, textStickers: [(state: HHPhotoPicker.ZLTextStickerState, index: Swift.Int)]?, imageStickers: [(state: HHPhotoPicker.ZLImageStickerState, index: Swift.Int)]?)
@objc override dynamic public init()
@objc deinit
}
@objc open class ZLEditImageViewController : UIKit.UIViewController {
@objc public var drawColViewH: CoreGraphics.CGFloat
@objc public var filterColViewH: CoreGraphics.CGFloat
@objc public var adjustColViewH: CoreGraphics.CGFloat
@objc public var ashbinNormalBgColor: UIKit.UIColor
@objc public var cancelBtn: HHPhotoPicker.ZLEnlargeButton {
@objc get
@objc set(value)
}
@objc public var mainScrollView: UIKit.UIScrollView {
@objc get
@objc set(value)
}
@objc public var topShadowView: UIKit.UIView {
@objc get
@objc set(value)
}
@objc public var topShadowLayer: QuartzCore.CAGradientLayer {
@objc get
@objc set(value)
}
@objc public var bottomShadowView: UIKit.UIView
@objc public var bottomShadowLayer: QuartzCore.CAGradientLayer
@objc public var doneBtn: UIKit.UIButton
@objc public var revokeBtn: UIKit.UIButton
@objc public var ashbinView: UIKit.UIView {
@objc get
@objc set(value)
}
@objc public var ashbinImgView: UIKit.UIImageView {
@objc get
@objc set(value)
}
@objc public var drawLineWidth: CoreGraphics.CGFloat
@objc public var mosaicLineWidth: CoreGraphics.CGFloat
@objc public var editFinishBlock: ((UIKit.UIImage, HHPhotoPicker.ZLEditImageModel?) -> Swift.Void)?
@objc public var cancelEditBlock: (() -> Swift.Void)?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc deinit
@objc public class func showEditImageVC(parentVC: UIKit.UIViewController?, animate: Swift.Bool = false, image: UIKit.UIImage, editModel: HHPhotoPicker.ZLEditImageModel? = nil, cancel: (() -> Swift.Void)? = nil, completion: ((UIKit.UIImage, HHPhotoPicker.ZLEditImageModel?) -> Swift.Void)?)
@objc public init(image: UIKit.UIImage, editModel: HHPhotoPicker.ZLEditImageModel? = nil)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic open func viewDidLoad()
@objc override dynamic open func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLEditImageViewController : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLEditImageViewController : UIKit.UIScrollViewDelegate {
@objc dynamic public func viewForZooming(in scrollView: UIKit.UIScrollView) -> UIKit.UIView?
@objc dynamic public func scrollViewDidZoom(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndZooming(_ scrollView: UIKit.UIScrollView, with view: UIKit.UIView?, atScale scale: CoreGraphics.CGFloat)
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndScrollingAnimation(_ scrollView: UIKit.UIScrollView)
}
extension ZLEditImageViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegate {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
}
@objc @_hasMissingDesignatedInitializers public class ZLDrawPath : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_hasMissingDesignatedInitializers public class ZLMosaicPath : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_hasMissingDesignatedInitializers public class ZLEditVideoViewController : UIKit.UIViewController {
@objc public var editFinishBlock: ((Foundation.URL?) -> Swift.Void)?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc deinit
@objc public init(avAsset: AVFoundation.AVAsset, animateDismiss: Swift.Bool = false)
@objc override dynamic public func viewDidLoad()
@objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLEditVideoViewController : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLEditVideoViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, insetForSectionAt section: Swift.Int) -> UIKit.UIEdgeInsets
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, willDisplay cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
}
@objc @_inheritsConvenienceInitializers public class ZLEnlargeButton : UIKit.UIButton {
public var enlargeInsets: UIKit.UIEdgeInsets
public var enlargeInset: CoreGraphics.CGFloat {
get
set(value)
}
@objc override dynamic public func point(inside point: CoreGraphics.CGPoint, with event: UIKit.UIEvent?) -> Swift.Bool
@objc override dynamic public init(frame: CoreGraphics.CGRect)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
}
public typealias ZLFilterApplierType = ((UIKit.UIImage) -> UIKit.UIImage)
@objc public enum ZLFilterType : Swift.Int {
case normal
case chrome
case fade
case instant
case process
case transfer
case tone
case linear
case sepia
case mono
case noir
case tonal
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public class ZLFilter : ObjectiveC.NSObject {
public var name: Swift.String
@objc public init(name: Swift.String, filterType: HHPhotoPicker.ZLFilterType)
@objc public init(name: Swift.String, applier: HHPhotoPicker.ZLFilterApplierType?)
@objc override dynamic public init()
@objc deinit
}
extension ZLFilter {
@objc public static var all: [HHPhotoPicker.ZLFilter]
@objc public static var normal: HHPhotoPicker.ZLFilter
@objc public static var clarendon: HHPhotoPicker.ZLFilter
@objc public static var nashville: HHPhotoPicker.ZLFilter
@objc public static var apply1977: HHPhotoPicker.ZLFilter
@objc public static var toaster: HHPhotoPicker.ZLFilter
@objc public static var chrome: HHPhotoPicker.ZLFilter
@objc public static var fade: HHPhotoPicker.ZLFilter
@objc public static var instant: HHPhotoPicker.ZLFilter
@objc public static var process: HHPhotoPicker.ZLFilter
@objc public static var transfer: HHPhotoPicker.ZLFilter
@objc public static var tone: HHPhotoPicker.ZLFilter
@objc public static var linear: HHPhotoPicker.ZLFilter
@objc public static var sepia: HHPhotoPicker.ZLFilter
@objc public static var mono: HHPhotoPicker.ZLFilter
@objc public static var noir: HHPhotoPicker.ZLFilter
@objc public static var tonal: HHPhotoPicker.ZLFilter
}
@objc public enum ZLURLType : Swift.Int {
case image
case video
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc @_hasMissingDesignatedInitializers public class ZLImagePreviewController : UIKit.UIViewController {
@objc public var longPressBlock: ((HHPhotoPicker.ZLImagePreviewController?, UIKit.UIImage?, Swift.Int) -> Swift.Void)?
@objc public var doneBlock: (([Any]) -> Swift.Void)?
@objc public var videoHttpHeader: [Swift.String : Any]?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var preferredStatusBarStyle: UIKit.UIStatusBarStyle {
@objc get
}
@objc public init(datas: [Any], index: Swift.Int = 0, showSelectBtn: Swift.Bool = true, showBottomView: Swift.Bool = true, urlType: ((Foundation.URL) -> HHPhotoPicker.ZLURLType)? = nil, urlImageLoader: ((Foundation.URL, UIKit.UIImageView, @escaping (CoreGraphics.CGFloat) -> Swift.Void, @escaping () -> Swift.Void) -> Swift.Void)? = nil)
@objc override dynamic public func viewDidLoad()
@objc override dynamic public func viewWillAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
@objc deinit
}
extension ZLImagePreviewController {
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
}
extension ZLImagePreviewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Swift.Int) -> CoreGraphics.CGFloat
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, minimumLineSpacingForSectionAt section: Swift.Int) -> CoreGraphics.CGFloat
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, insetForSectionAt section: Swift.Int) -> UIKit.UIEdgeInsets
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreGraphics.CGSize
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didEndDisplaying cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
}
@objc @_hasMissingDesignatedInitializers public class ZLImageStickerState : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLLanguageType : Swift.Int {
case system
case chineseSimplified
case chineseTraditional
case english
case japanese
case french
case german
case russian
case vietnamese
case korean
case malay
case italian
case indonesian
case portuguese
case spanish
case turkish
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct ZLLocalLanguageKey : Swift.Hashable {
public let rawValue: Swift.String
public init(rawValue: Swift.String)
public static var previewCamera: HHPhotoPicker.ZLLocalLanguageKey
public static var previewCameraRecord: HHPhotoPicker.ZLLocalLanguageKey
public static var previewAlbum: HHPhotoPicker.ZLLocalLanguageKey
public static var cancel: HHPhotoPicker.ZLLocalLanguageKey
public static var noPhotoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var loading: HHPhotoPicker.ZLLocalLanguageKey
public static var hudLoading: HHPhotoPicker.ZLLocalLanguageKey
public static var done: HHPhotoPicker.ZLLocalLanguageKey
public static var ok: HHPhotoPicker.ZLLocalLanguageKey
public static var timeout: HHPhotoPicker.ZLLocalLanguageKey
public static var noPhotoLibratyAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var noCameraAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var noMicrophoneAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var cameraUnavailable: HHPhotoPicker.ZLLocalLanguageKey
public static var keepRecording: HHPhotoPicker.ZLLocalLanguageKey
public static var gotoSettings: HHPhotoPicker.ZLLocalLanguageKey
public static var photo: HHPhotoPicker.ZLLocalLanguageKey
public static var originalPhoto: HHPhotoPicker.ZLLocalLanguageKey
public static var back: HHPhotoPicker.ZLLocalLanguageKey
public static var edit: HHPhotoPicker.ZLLocalLanguageKey
public static var editFinish: HHPhotoPicker.ZLLocalLanguageKey
public static var revert: HHPhotoPicker.ZLLocalLanguageKey
public static var brightness: HHPhotoPicker.ZLLocalLanguageKey
public static var contrast: HHPhotoPicker.ZLLocalLanguageKey
public static var saturation: HHPhotoPicker.ZLLocalLanguageKey
public static var preview: HHPhotoPicker.ZLLocalLanguageKey
public static var notAllowMixSelect: HHPhotoPicker.ZLLocalLanguageKey
public static var save: HHPhotoPicker.ZLLocalLanguageKey
public static var saveImageError: HHPhotoPicker.ZLLocalLanguageKey
public static var saveVideoError: HHPhotoPicker.ZLLocalLanguageKey
public static var exceededMaxSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var exceededMaxVideoSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var lessThanMinVideoSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var longerThanMaxVideoDuration: HHPhotoPicker.ZLLocalLanguageKey
public static var shorterThanMaxVideoDuration: HHPhotoPicker.ZLLocalLanguageKey
public static var iCloudVideoLoadFaild: HHPhotoPicker.ZLLocalLanguageKey
public static var imageLoadFailed: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraTips: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraTakePhotoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraRecordVideoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var minRecordTimeTips: HHPhotoPicker.ZLLocalLanguageKey
public static var cameraRoll: HHPhotoPicker.ZLLocalLanguageKey
public static var panoramas: HHPhotoPicker.ZLLocalLanguageKey
public static var videos: HHPhotoPicker.ZLLocalLanguageKey
public static var favorites: HHPhotoPicker.ZLLocalLanguageKey
public static var timelapses: HHPhotoPicker.ZLLocalLanguageKey
public static var recentlyAdded: HHPhotoPicker.ZLLocalLanguageKey
public static var bursts: HHPhotoPicker.ZLLocalLanguageKey
public static var slomoVideos: HHPhotoPicker.ZLLocalLanguageKey
public static var selfPortraits: HHPhotoPicker.ZLLocalLanguageKey
public static var screenshots: HHPhotoPicker.ZLLocalLanguageKey
public static var depthEffect: HHPhotoPicker.ZLLocalLanguageKey
public static var livePhotos: HHPhotoPicker.ZLLocalLanguageKey
public static var animated: HHPhotoPicker.ZLLocalLanguageKey
public static var myPhotoStream: HHPhotoPicker.ZLLocalLanguageKey
public static var noTitleAlbumListPlaceholder: HHPhotoPicker.ZLLocalLanguageKey
public static var unableToAccessAllPhotos: HHPhotoPicker.ZLLocalLanguageKey
public static var textStickerRemoveTips: HHPhotoPicker.ZLLocalLanguageKey
public func hash(into hasher: inout Swift.Hasher)
public static func == (a: HHPhotoPicker.ZLLocalLanguageKey, b: HHPhotoPicker.ZLLocalLanguageKey) -> Swift.Bool
public var hashValue: Swift.Int {
get
}
}
public typealias Second = Swift.Int
@objc @_inheritsConvenienceInitializers public class ZLPhotoConfiguration : ObjectiveC.NSObject {
@objc public class func `default`() -> HHPhotoPicker.ZLPhotoConfiguration
@objc public class func resetConfiguration()
@objc public var sortAscending: Swift.Bool
@objc public var maxSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var maxVideoSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var minVideoSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var allowMixSelect: Swift.Bool
@objc public var maxPreviewCount: Swift.Int
@objc public var cellCornerRadio: CoreGraphics.CGFloat
@objc public var allowSelectImage: Swift.Bool
@objc public var allowSelectVideo: Swift.Bool
@objc public var allowSelectGif: Swift.Bool
@objc public var allowSelectLivePhoto: Swift.Bool
@objc public var allowTakePhotoInLibrary: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowEditImage: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowEditVideo: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var animateSelectBtnWhenSelect: Swift.Bool
@objc public var selectBtnAnimationDuration: Swift.Double
@objc public var editAfterSelectThumbnailImage: Swift.Bool
@objc public var cropVideoAfterSelectThumbnail: Swift.Bool
@objc public var showClipDirectlyIfOnlyHasClipTool: Swift.Bool
@objc public var saveNewImageAfterEdit: Swift.Bool
@objc public var allowSlideSelect: Swift.Bool
@objc public var autoScrollWhenSlideSelectIsActive: Swift.Bool
@objc public var autoScrollMaxSpeed: CoreGraphics.CGFloat
@objc public var allowDragSelect: Swift.Bool
@objc public var allowSelectOriginal: Swift.Bool
@objc public var allowPreviewPhotos: Swift.Bool
@objc public var showPreviewButtonInAlbum: Swift.Bool
@objc public var showSelectCountOnDoneBtn: Swift.Bool
@objc public var columnCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var maxEditVideoTime: Swift.Int
@objc public var maxSelectVideoDuration: Swift.Int
@objc public var minSelectVideoDuration: Swift.Int
@objc public var editImageConfiguration: HHPhotoPicker.ZLEditImageConfiguration
@objc public var showCaptureImageOnTakePhotoBtn: Swift.Bool
@objc public var showSelectBtnWhenSingleSelect: Swift.Bool
@objc public var showSelectedMask: Swift.Bool
@objc public var showSelectedBorder: Swift.Bool
@objc public var showInvalidMask: Swift.Bool
@objc public var showSelectedIndex: Swift.Bool
@objc public var showSelectedPhotoPreview: Swift.Bool
@objc public var shouldAnialysisAsset: Swift.Bool
@objc public var timeout: Swift.Double
@objc public var languageType: HHPhotoPicker.ZLLanguageType {
@objc get
@objc set(value)
}
@objc public var useCustomCamera: Swift.Bool
@objc public var allowTakePhoto: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowRecordVideo: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var minRecordDuration: HHPhotoPicker.Second {
@objc get
@objc set(newValue)
}
@objc public var maxRecordDuration: HHPhotoPicker.Second {
@objc get
@objc set(newValue)
}
@objc public var cameraConfiguration: HHPhotoPicker.ZLCameraConfiguration
@objc public var hudStyle: HHPhotoPicker.ZLProgressHUD.HUDStyle
@objc public var canSelectAsset: ((Photos.PHAsset) -> Swift.Bool)?
@objc public var showAddPhotoButton: Swift.Bool
@objc public var showEnterSettingTips: Swift.Bool
@objc public var noAuthorityCallback: ((HHPhotoPicker.ZLNoAuthorityType) -> Swift.Void)?
@objc public var operateBeforeDoneAction: ((UIKit.UIViewController, @escaping () -> Swift.Void) -> Swift.Void)?
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLNoAuthorityType : Swift.Int {
case library
case camera
case microphone
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension ZLPhotoConfiguration {
@discardableResult
public func sortAscending(_ ascending: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxVideoSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minVideoSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowMixSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxPreviewCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cellCornerRadio(_ cornerRadio: CoreGraphics.CGFloat) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func allowSelectVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectGif(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectLivePhoto(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowTakePhotoInLibrary(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowEditImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowEditVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func animateSelectBtnWhenSelect(_ animate: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func selectBtnAnimationDuration(_ duration: CoreFoundation.CFTimeInterval) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func editAfterSelectThumbnailImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cropVideoAfterSelectThumbnail(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showClipDirectlyIfOnlyHasClipTool(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func saveNewImageAfterEdit(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSlideSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func autoScrollWhenSlideSelectIsActive(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func autoScrollMaxSpeed(_ speed: CoreGraphics.CGFloat) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowDragSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectOriginal(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowPreviewPhotos(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showPreviewButtonInAlbum(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectCountOnDoneBtn(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func columnCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxEditVideoTime(_ second: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxSelectVideoDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minSelectVideoDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func editImageConfiguration(_ configuration: HHPhotoPicker.ZLEditImageConfiguration) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showCaptureImageOnTakePhotoBtn(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectBtnWhenSingleSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedMask(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedBorder(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showInvalidMask(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedIndex(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedPhotoPreview(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func shouldAnialysisAsset(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func timeout(_ timeout: Foundation.TimeInterval) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func languageType(_ type: HHPhotoPicker.ZLLanguageType) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func useCustomCamera(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowTakePhoto(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowRecordVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minRecordDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxRecordDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cameraConfiguration(_ configuration: HHPhotoPicker.ZLCameraConfiguration) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func hudStyle(_ style: HHPhotoPicker.ZLProgressHUD.HUDStyle) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func canSelectAsset(_ block: ((Photos.PHAsset) -> Swift.Bool)?) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func showAddPhotoButton(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func showEnterSettingTips(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func noAuthorityCallback(_ callback: ((HHPhotoPicker.ZLNoAuthorityType) -> Swift.Void)?) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func operateBeforeDoneAction(_ block: ((UIKit.UIViewController, @escaping () -> Swift.Void) -> Swift.Void)?) -> HHPhotoPicker.ZLPhotoConfiguration
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoManager : ObjectiveC.NSObject {
@objc public class func saveImageToAlbum(image: UIKit.UIImage, completion: ((Swift.Bool, Photos.PHAsset?) -> Swift.Void)?)
@objc public class func saveVideoToAlbum(url: Foundation.URL, completion: ((Swift.Bool, Photos.PHAsset?) -> Swift.Void)?)
@objc public class func fetchPhoto(in result: Photos.PHFetchResult<Photos.PHAsset>, ascending: Swift.Bool, allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, limitCount: Swift.Int = .max) -> [HHPhotoPicker.ZLPhotoModel]
@objc public class func getPhotoAlbumList(ascending: Swift.Bool, allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, completion: ([HHPhotoPicker.ZLAlbumListModel]) -> Swift.Void)
@objc public class func getCameraRollAlbum(allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, completion: @escaping (HHPhotoPicker.ZLAlbumListModel) -> Swift.Void)
@discardableResult
@objc public class func fetchImage(for asset: Photos.PHAsset, size: CoreGraphics.CGSize, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (UIKit.UIImage?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@discardableResult
@objc public class func fetchOriginalImage(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (UIKit.UIImage?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@discardableResult
@objc public class func fetchOriginalImageData(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (Foundation.Data, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchLivePhoto(for asset: Photos.PHAsset, completion: @escaping (Photos.PHLivePhoto?, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchVideo(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (AVFoundation.AVPlayerItem?, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchAVAsset(forVideo asset: Photos.PHAsset, completion: @escaping (AVFoundation.AVAsset?, [Swift.AnyHashable : Any]?) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchAssetFilePath(asset: Photos.PHAsset, completion: @escaping (Swift.String?) -> Swift.Void)
@objc override dynamic public init()
@objc deinit
}
extension ZLPhotoManager {
@objc dynamic public class func hasPhotoLibratyAuthority() -> Swift.Bool
@objc dynamic public class func hasCameraAuthority() -> Swift.Bool
@objc dynamic public class func hasMicrophoneAuthority() -> Swift.Bool
}
extension ZLPhotoModel {
public enum MediaType : Swift.Int {
case unknown
case image
case gif
case livePhoto
case video
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
}
@objc public class ZLPhotoModel : ObjectiveC.NSObject {
final public let ident: Swift.String
final public let asset: Photos.PHAsset
public var type: HHPhotoPicker.ZLPhotoModel.MediaType
public var duration: Swift.String
public var isSelected: Swift.Bool
public var editImage: UIKit.UIImage? {
get
set(newValue)
}
public var second: HHPhotoPicker.Second {
get
}
public var whRatio: CoreGraphics.CGFloat {
get
}
public var previewSize: CoreGraphics.CGSize {
get
}
public var editImageModel: HHPhotoPicker.ZLEditImageModel?
public init(asset: Photos.PHAsset)
public func transformAssetType(for asset: Photos.PHAsset) -> HHPhotoPicker.ZLPhotoModel.MediaType
public func transformDuration(for asset: Photos.PHAsset) -> Swift.String
@objc override dynamic public init()
@objc deinit
}
extension ZLPhotoModel {
public static func == (lhs: HHPhotoPicker.ZLPhotoModel, rhs: HHPhotoPicker.ZLPhotoModel) -> Swift.Bool
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoPreviewSheet : UIKit.UIView {
@objc public var selectImageBlock: (([UIKit.UIImage], [Photos.PHAsset], Swift.Bool) -> Swift.Void)?
@objc public var selectImageRequestErrorBlock: (([Photos.PHAsset], [Swift.Int]) -> Swift.Void)?
@objc public var cancelBlock: (() -> Swift.Void)?
@objc deinit
@objc override dynamic public convenience init(frame: CoreGraphics.CGRect)
@objc public init(selectedAssets: [Photos.PHAsset]? = nil)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic public func layoutSubviews()
@objc public func showPreview(animate: Swift.Bool = true, sender: UIKit.UIViewController)
@objc public func showPhotoLibrary(sender: UIKit.UIViewController)
@objc public func previewAssets(sender: UIKit.UIViewController, assets: [Photos.PHAsset], index: Swift.Int, isOriginal: Swift.Bool, showBottomViewAndSelectBtn: Swift.Bool = true)
}
extension ZLPhotoPreviewSheet : UIKit.UIGestureRecognizerDelegate {
@objc override dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLPhotoPreviewSheet : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreGraphics.CGSize
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, willDisplay cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
}
extension ZLPhotoPreviewSheet : UIKit.UIImagePickerControllerDelegate, UIKit.UINavigationControllerDelegate {
@objc dynamic public func imagePickerController(_ picker: UIKit.UIImagePickerController, didFinishPickingMediaWithInfo info: [UIKit.UIImagePickerController.InfoKey : Any])
}
extension ZLPhotoPreviewSheet : Photos.PHPhotoLibraryChangeObserver {
@objc dynamic public func photoLibraryDidChange(_ changeInstance: Photos.PHChange)
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoUIConfiguration : ObjectiveC.NSObject {
@objc public enum CancelButtonStyle : Swift.Int {
case text
case image
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public class func `default`() -> HHPhotoPicker.ZLPhotoUIConfiguration
@objc public class func resetConfiguration()
@objc public var style: HHPhotoPicker.ZLPhotoBrowserStyle
@objc public var statusBarStyle: UIKit.UIStatusBarStyle
@objc public var navCancelButtonStyle: HHPhotoPicker.ZLPhotoUIConfiguration.CancelButtonStyle
@objc public var showStatusBarInPreviewInterface: Swift.Bool
@objc public var navViewBlurEffectOfAlbumList: UIKit.UIBlurEffect?
@objc public var navViewBlurEffectOfPreview: UIKit.UIBlurEffect?
@objc public var bottomViewBlurEffectOfAlbumList: UIKit.UIBlurEffect?
@objc public var bottomViewBlurEffectOfPreview: UIKit.UIBlurEffect?
@objc public var customImageNames: [Swift.String] {
@objc get
@objc set(value)
}
public var customImageForKey: [Swift.String : UIKit.UIImage?] {
get
set(value)
}
@objc public var customImageForKey_objc: [Swift.String : UIKit.UIImage] {
@objc get
@objc set(value)
}
public var customLanguageKeyValue: [HHPhotoPicker.ZLLocalLanguageKey : Swift.String] {
get
set(value)
}
@objc public var customLanguageKeyValue_objc: [Swift.String : Swift.String] {
@objc get
@objc set(value)
}
@objc public var themeFontName: Swift.String? {
@objc get
@objc set(value)
}
@objc public var sheetTranslucentColor: UIKit.UIColor
@objc public var sheetBtnBgColor: UIKit.UIColor
@objc public var sheetBtnTitleColor: UIKit.UIColor
@objc public var sheetBtnTitleTintColor: UIKit.UIColor
@objc public var navBarColor: UIKit.UIColor
@objc public var navBarColorOfPreviewVC: UIKit.UIColor
@objc public var navTitleColor: UIKit.UIColor
@objc public var navTitleColorOfPreviewVC: UIKit.UIColor
@objc public var navEmbedTitleViewBgColor: UIKit.UIColor
@objc public var albumListBgColor: UIKit.UIColor
@objc public var embedAlbumListTranslucentColor: UIKit.UIColor
@objc public var albumListTitleColor: UIKit.UIColor
@objc public var albumListCountColor: UIKit.UIColor
@objc public var separatorColor: UIKit.UIColor
@objc public var thumbnailBgColor: UIKit.UIColor
@objc public var previewVCBgColor: UIKit.UIColor
@objc public var bottomToolViewBgColor: UIKit.UIColor
@objc public var bottomToolViewBgColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnNormalTitleColor: UIKit.UIColor
@objc public var bottomToolViewDoneBtnNormalTitleColor: UIKit.UIColor
@objc public var bottomToolViewBtnNormalTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewDoneBtnNormalTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnDisableTitleColor: UIKit.UIColor
@objc public var bottomToolViewDoneBtnDisableTitleColor: UIKit.UIColor
@objc public var bottomToolViewBtnDisableTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewDoneBtnDisableTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnNormalBgColor: UIKit.UIColor
@objc public var bottomToolViewBtnNormalBgColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnDisableBgColor: UIKit.UIColor
@objc public var bottomToolViewBtnDisableBgColorOfPreviewVC: UIKit.UIColor
@objc public var selectMorePhotoWhenAuthIsLismitedTitleColor: UIKit.UIColor
@objc public var cameraRecodeProgressColor: UIKit.UIColor
@objc public var selectedMaskColor: UIKit.UIColor
@objc public var selectedBorderColor: UIKit.UIColor
@objc public var invalidMaskColor: UIKit.UIColor
@objc public var indexLabelTextColor: UIKit.UIColor
@objc public var indexLabelBgColor: UIKit.UIColor
@objc public var cameraCellBgColor: UIKit.UIColor
@objc public var adjustSliderNormalColor: UIKit.UIColor
@objc public var adjustSliderTintColor: UIKit.UIColor
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLPhotoBrowserStyle : Swift.Int {
case embedAlbumList
case externalAlbumList
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension ZLPhotoUIConfiguration {
@discardableResult
public func style(_ style: HHPhotoPicker.ZLPhotoBrowserStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func statusBarStyle(_ statusBarStyle: UIKit.UIStatusBarStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navCancelButtonStyle(_ style: HHPhotoPicker.ZLPhotoUIConfiguration.CancelButtonStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func showStatusBarInPreviewInterface(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navViewBlurEffectOfAlbumList(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navViewBlurEffectOfPreview(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomViewBlurEffectOfAlbumList(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomViewBlurEffectOfPreview(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customImageNames(_ names: [Swift.String]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customImageForKey(_ map: [Swift.String : UIKit.UIImage?]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customLanguageKeyValue(_ map: [HHPhotoPicker.ZLLocalLanguageKey : Swift.String]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func themeFontName(_ name: Swift.String) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetTranslucentColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnTitleTintColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navBarColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navBarColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navEmbedTitleViewBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func embedAlbumListTranslucentColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListCountColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func separatorColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func thumbnailBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func previewVCBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnNormalTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnNormalTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnDisableTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnDisableTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectMorePhotoWhenAuthIsLismitedTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func cameraRecodeProgressColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectedMaskColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectedBorderColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func invalidMaskColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func indexLabelTextColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func indexLabelBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func cameraCellBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func adjustSliderNormalColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func adjustSliderTintColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
}
@objc @_hasMissingDesignatedInitializers public class ZLProgressHUD : UIKit.UIView {
@objc public enum HUDStyle : Swift.Int {
case light
case lightBlur
case dark
case darkBlur
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc deinit
@objc public init(style: HHPhotoPicker.ZLProgressHUD.HUDStyle)
@objc public func show(timeout: Foundation.TimeInterval = 100)
@objc public func hide()
@objc override dynamic public init(frame: CoreGraphics.CGRect)
}
@objc @_hasMissingDesignatedInitializers public class ZLTextStickerState : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class ZLVideoManager : ObjectiveC.NSObject {
@objc public class func mergeVideos(fileUrls: [Foundation.URL], completion: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
@objc override dynamic public init()
@objc deinit
}
extension ZLVideoManager {
@objc dynamic public class func exportVideo(for asset: Photos.PHAsset, exportType: HHPhotoPicker.ZLVideoManager.ExportType = .mov, presetName: Swift.String = AVAssetExportPresetMediumQuality, complete: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
@objc dynamic public class func exportVideo(for asset: AVFoundation.AVAsset, range: CoreMedia.CMTimeRange = CMTimeRange(start: .zero, duration: .positiveInfinity), exportType: HHPhotoPicker.ZLVideoManager.ExportType = .mov, presetName: Swift.String = AVAssetExportPresetMediumQuality, complete: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
}
extension ZLVideoManager {
@objc public enum ExportType : Swift.Int {
case mov
case mp4
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
}
// swift-interface-format-version: 1.0
// swift-compiler-version: Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
// swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -Onone -module-name HHPhotoPicker
import AVFoundation
import Accelerate
import CoreMotion
import Foundation
@_exported import HHPhotoPicker
import Photos
import PhotosUI
import Swift
import UIKit
public protocol HHPhotoPickerManagerDelegate {
func selectImage(_ selectedImages: [UIKit.UIImage])
func cancelImage()
func selectImageRequestError(_ errorAssets: [Photos.PHAsset], errorIndexs: [Swift.Int])
}
@objc public class HHPhotoPickerManager : ObjectiveC.NSObject {
public var viewDelegate: HHPhotoPicker.HHPhotoPickerManagerDelegate?
public var photoConfigModel: HHPhotoPicker.HHPhotoConfigModel
public var photoUIConfigModel: HHPhotoPicker.HHPhotoUIConfigModel
required public init(showVC: UIKit.UIViewController)
public func showImagePicker()
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class HHPhotoConfigModel : ObjectiveC.NSObject {
public var maxPreviewCount: Swift.Int
public var maxSelectCount: Swift.Int {
get
set(newValue)
}
public var minVideoSelectCount: Swift.Int {
get
set(newValue)
}
public var maxVideoSelectCount: Swift.Int {
get
set(newValue)
}
public var minSelectVideoDuration: Swift.Int
public var maxSelectVideoDuration: Swift.Int
public var cellCornerRadio: CoreGraphics.CGFloat
public var languageType: HHPhotoPicker.ZLLanguageType {
get
set(value)
}
public var columnCount: Swift.Int {
get
set(newValue)
}
public var sortAscending: Swift.Bool
public var allowSelectImage: Swift.Bool
public var allowTakePhotoInLibrary: Swift.Bool
public var allowSelectOriginal: Swift.Bool
public var allowSelectGif: Swift.Bool
public var allowSelectVideo: Swift.Bool
public var allowSelectLivePhoto: Swift.Bool
public var allowEditImage: Swift.Bool
public var allowMixSelect: Swift.Bool
public var allowPreviewPhotos: Swift.Bool
public var editImageWithDraw: Swift.Bool
public var editImageWithClip: Swift.Bool
public var editImageWithImageSticker: Swift.Bool
public var editImageWithTextSticker: Swift.Bool
public var editImageWithMosaic: Swift.Bool
public var editImageWithFilter: Swift.Bool
public var editImageWithAdjust: Swift.Bool
public var editImageWitAdjustBrightness: Swift.Bool
public var editImageWitAdjustContrast: Swift.Bool
public var editImageWitAdjustSaturation: Swift.Bool
public var shouldAnialysisAsset: Swift.Bool
public var allowEditVideo: Swift.Bool {
get
set(newValue)
}
public var saveNewImageAfterEdit: Swift.Bool
public var allowDragSelect: Swift.Bool
public var allowSlideSelect: Swift.Bool
public var autoScrollWhenSlideSelectIsActive: Swift.Bool
public var autoScrollMaxSpeed: CoreGraphics.CGFloat
public var showCaptureImageOnTakePhotoBtn: Swift.Bool
public var showSelectedIndex: Swift.Bool
public var showSelectedMask: Swift.Bool
public var showSelectedBorder: Swift.Bool
public var showInvalidMask: Swift.Bool
public var useCustomCamera: Swift.Bool
public var flashMode: HHPhotoPicker.ZLCameraConfiguration.FlashMode
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class HHPhotoUIConfigModel : ObjectiveC.NSObject {
public var style: HHPhotoPicker.ZLPhotoBrowserStyle
public var bottomToolViewBtnNormalBgColor: UIKit.UIColor
public var bottomToolViewBtnNormalBgColorOfPreviewVC: UIKit.UIColor
@objc public var indexLabelBgColor: UIKit.UIColor
@objc override dynamic public init()
@objc deinit
}
@objc public class ZLAlbumListModel : ObjectiveC.NSObject {
final public let title: Swift.String
public var count: Swift.Int {
get
}
public var result: Photos.PHFetchResult<Photos.PHAsset>
final public let collection: Photos.PHAssetCollection
final public let option: Photos.PHFetchOptions
final public let isCameraRoll: Swift.Bool
public var headImageAsset: Photos.PHAsset? {
get
}
public var models: [HHPhotoPicker.ZLPhotoModel]
public init(title: Swift.String, result: Photos.PHFetchResult<Photos.PHAsset>, collection: Photos.PHAssetCollection, option: Photos.PHFetchOptions, isCameraRoll: Swift.Bool)
public func refetchPhotos()
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class ZLCameraConfiguration : ObjectiveC.NSObject {
@objc public enum CaptureSessionPreset : Swift.Int {
case cif352x288
case vga640x480
case hd1280x720
case hd1920x1080
case hd4K3840x2160
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum FocusMode : Swift.Int {
case autoFocus
case continuousAutoFocus
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum ExposureMode : Swift.Int {
case autoExpose
case continuousAutoExposure
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum FlashMode : Swift.Int {
case auto
case on
case off
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public enum VideoExportType : Swift.Int {
case mov
case mp4
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public var sessionPreset: HHPhotoPicker.ZLCameraConfiguration.CaptureSessionPreset
@objc public var focusMode: HHPhotoPicker.ZLCameraConfiguration.FocusMode
@objc public var exposureMode: HHPhotoPicker.ZLCameraConfiguration.ExposureMode
@objc public var flashMode: HHPhotoPicker.ZLCameraConfiguration.FlashMode
@objc public var videoExportType: HHPhotoPicker.ZLCameraConfiguration.VideoExportType
@objc override dynamic public init()
@objc deinit
}
extension ZLCameraConfiguration {
@discardableResult
public func sessionPreset(_ sessionPreset: HHPhotoPicker.ZLCameraConfiguration.CaptureSessionPreset) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func focusMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.FocusMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func exposureMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.ExposureMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func flashMode(_ mode: HHPhotoPicker.ZLCameraConfiguration.FlashMode) -> HHPhotoPicker.ZLCameraConfiguration
@discardableResult
public func videoExportType(_ type: HHPhotoPicker.ZLCameraConfiguration.VideoExportType) -> HHPhotoPicker.ZLCameraConfiguration
}
@objc open class ZLCustomCamera : UIKit.UIViewController, QuartzCore.CAAnimationDelegate {
@objc public var takeDoneBlock: ((UIKit.UIImage?, Foundation.URL?) -> Swift.Void)?
@objc public var cancelBlock: (() -> Swift.Void)?
public var tipsLabel: UIKit.UILabel {
get
set(value)
}
public var bottomView: UIKit.UIView {
get
set(value)
}
public var largeCircleView: UIKit.UIVisualEffectView {
get
set(value)
}
public var smallCircleView: UIKit.UIView {
get
set(value)
}
public var animateLayer: QuartzCore.CAShapeLayer {
get
set(value)
}
public var retakeBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var doneBtn: UIKit.UIButton {
get
set(value)
}
public var dismissBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var switchCameraBtn: HHPhotoPicker.ZLEnlargeButton {
get
set(value)
}
public var focusCursorView: UIKit.UIImageView {
get
set(value)
}
public var takedImageView: UIKit.UIImageView {
get
set(value)
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc deinit
@objc dynamic public init()
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic open func viewDidLoad()
@objc override dynamic open func viewWillAppear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic open func viewWillDisappear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidDisappear(_ animated: Swift.Bool)
@objc override dynamic open func viewDidLayoutSubviews()
@objc public func animationDidStop(_ anim: QuartzCore.CAAnimation, finished flag: Swift.Bool)
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLCustomCamera : AVFoundation.AVCapturePhotoCaptureDelegate {
@objc dynamic public func photoOutput(_ output: AVFoundation.AVCapturePhotoOutput, willCapturePhotoFor resolvedSettings: AVFoundation.AVCaptureResolvedPhotoSettings)
@objc dynamic public func photoOutput(_ output: AVFoundation.AVCapturePhotoOutput, didFinishProcessingPhoto photoSampleBuffer: CoreMedia.CMSampleBuffer?, previewPhoto previewPhotoSampleBuffer: CoreMedia.CMSampleBuffer?, resolvedSettings: AVFoundation.AVCaptureResolvedPhotoSettings, bracketSettings: AVFoundation.AVCaptureBracketedStillImageSettings?, error: Swift.Error?)
}
extension ZLCustomCamera : AVFoundation.AVCaptureFileOutputRecordingDelegate {
@objc dynamic public func fileOutput(_ output: AVFoundation.AVCaptureFileOutput, didStartRecordingTo fileURL: Foundation.URL, from connections: [AVFoundation.AVCaptureConnection])
@objc dynamic public func fileOutput(_ output: AVFoundation.AVCaptureFileOutput, didFinishRecordingTo outputFileURL: Foundation.URL, from connections: [AVFoundation.AVCaptureConnection], error: Swift.Error?)
}
extension ZLCustomCamera : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizer(_ gestureRecognizer: UIKit.UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
@objc public protocol ZLImageStickerContainerDelegate {
@objc var selectImageBlock: ((UIKit.UIImage) -> Swift.Void)? { get set }
@objc var hideBlock: (() -> Swift.Void)? { get set }
@objc func show(in view: UIKit.UIView)
}
@objc @_inheritsConvenienceInitializers public class ZLEditImageConfiguration : ObjectiveC.NSObject {
@objc public enum EditTool : Swift.Int, Swift.CaseIterable {
case draw
case clip
case imageSticker
case textSticker
case mosaic
case filter
case adjust
public init?(rawValue: Swift.Int)
public typealias AllCases = [HHPhotoPicker.ZLEditImageConfiguration.EditTool]
public typealias RawValue = Swift.Int
public static var allCases: [HHPhotoPicker.ZLEditImageConfiguration.EditTool] {
get
}
public var rawValue: Swift.Int {
get
}
}
@objc public enum AdjustTool : Swift.Int, Swift.CaseIterable {
case brightness
case contrast
case saturation
public init?(rawValue: Swift.Int)
public typealias AllCases = [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool]
public typealias RawValue = Swift.Int
public static var allCases: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool] {
get
}
public var rawValue: Swift.Int {
get
}
}
public var tools: [HHPhotoPicker.ZLEditImageConfiguration.EditTool] {
get
set(newValue)
}
@objc public var tools_objc: [Swift.Int] {
@objc get
@objc set(value)
}
@objc public var drawColors: [UIKit.UIColor] {
@objc get
@objc set(newValue)
}
@objc public var defaultDrawColor: UIKit.UIColor
@objc public var clipRatios: [HHPhotoPicker.ZLImageClipRatio] {
@objc get
@objc set(newValue)
}
@objc public var textStickerTextColors: [UIKit.UIColor] {
@objc get
@objc set(newValue)
}
@objc public var textStickerDefaultTextColor: UIKit.UIColor
@objc public var filters: [HHPhotoPicker.ZLFilter] {
@objc get
@objc set(newValue)
}
@objc public var imageStickerContainerView: (UIKit.UIView & HHPhotoPicker.ZLImageStickerContainerDelegate)?
public var adjustTools: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool] {
get
set(newValue)
}
@objc public var adjustTools_objc: [Swift.Int] {
@objc get
@objc set(value)
}
@objc public var impactFeedbackWhenAdjustSliderValueIsZero: Swift.Bool
@objc public var impactFeedbackStyle: UIKit.UIImpactFeedbackGenerator.FeedbackStyle
@objc override dynamic public init()
@objc deinit
}
extension ZLEditImageConfiguration {
@discardableResult
public func tools(_ tools: [HHPhotoPicker.ZLEditImageConfiguration.EditTool]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func drawColors(_ colors: [UIKit.UIColor]) -> HHPhotoPicker.ZLEditImageConfiguration
public func defaultDrawColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func clipRatios(_ ratios: [HHPhotoPicker.ZLImageClipRatio]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func textStickerTextColors(_ colors: [UIKit.UIColor]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func textStickerDefaultTextColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func filters(_ filters: [HHPhotoPicker.ZLFilter]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func imageStickerContainerView(_ view: (UIKit.UIView & HHPhotoPicker.ZLImageStickerContainerDelegate)?) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func adjustTools(_ tools: [HHPhotoPicker.ZLEditImageConfiguration.AdjustTool]) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func impactFeedbackWhenAdjustSliderValueIsZero(_ value: Swift.Bool) -> HHPhotoPicker.ZLEditImageConfiguration
@discardableResult
public func impactFeedbackStyle(_ style: UIKit.UIImpactFeedbackGenerator.FeedbackStyle) -> HHPhotoPicker.ZLEditImageConfiguration
}
@objc public class ZLImageClipRatio : ObjectiveC.NSObject {
public var title: Swift.String
final public let whRatio: CoreGraphics.CGFloat
@objc public init(title: Swift.String, whRatio: CoreGraphics.CGFloat, isCircle: Swift.Bool = false)
@objc override dynamic public init()
@objc deinit
}
extension ZLImageClipRatio {
@objc public static var custom: HHPhotoPicker.ZLImageClipRatio
@objc public static var circle: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh1x1: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh3x4: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh4x3: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh2x3: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh3x2: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh9x16: HHPhotoPicker.ZLImageClipRatio
@objc public static var wh16x9: HHPhotoPicker.ZLImageClipRatio
}
@objc public class ZLEditImageModel : ObjectiveC.NSObject {
final public let drawPaths: [HHPhotoPicker.ZLDrawPath]
final public let mosaicPaths: [HHPhotoPicker.ZLMosaicPath]
final public let editRect: CoreGraphics.CGRect?
final public let angle: CoreGraphics.CGFloat
final public let brightness: Swift.Float
final public let contrast: Swift.Float
final public let saturation: Swift.Float
final public let selectRatio: HHPhotoPicker.ZLImageClipRatio?
final public let selectFilter: HHPhotoPicker.ZLFilter?
final public let textStickers: [(state: HHPhotoPicker.ZLTextStickerState, index: Swift.Int)]?
final public let imageStickers: [(state: HHPhotoPicker.ZLImageStickerState, index: Swift.Int)]?
public init(drawPaths: [HHPhotoPicker.ZLDrawPath], mosaicPaths: [HHPhotoPicker.ZLMosaicPath], editRect: CoreGraphics.CGRect?, angle: CoreGraphics.CGFloat, brightness: Swift.Float, contrast: Swift.Float, saturation: Swift.Float, selectRatio: HHPhotoPicker.ZLImageClipRatio?, selectFilter: HHPhotoPicker.ZLFilter, textStickers: [(state: HHPhotoPicker.ZLTextStickerState, index: Swift.Int)]?, imageStickers: [(state: HHPhotoPicker.ZLImageStickerState, index: Swift.Int)]?)
@objc override dynamic public init()
@objc deinit
}
@objc open class ZLEditImageViewController : UIKit.UIViewController {
@objc public var drawColViewH: CoreGraphics.CGFloat
@objc public var filterColViewH: CoreGraphics.CGFloat
@objc public var adjustColViewH: CoreGraphics.CGFloat
@objc public var ashbinNormalBgColor: UIKit.UIColor
@objc public var cancelBtn: HHPhotoPicker.ZLEnlargeButton {
@objc get
@objc set(value)
}
@objc public var mainScrollView: UIKit.UIScrollView {
@objc get
@objc set(value)
}
@objc public var topShadowView: UIKit.UIView {
@objc get
@objc set(value)
}
@objc public var topShadowLayer: QuartzCore.CAGradientLayer {
@objc get
@objc set(value)
}
@objc public var bottomShadowView: UIKit.UIView
@objc public var bottomShadowLayer: QuartzCore.CAGradientLayer
@objc public var doneBtn: UIKit.UIButton
@objc public var revokeBtn: UIKit.UIButton
@objc public var ashbinView: UIKit.UIView {
@objc get
@objc set(value)
}
@objc public var ashbinImgView: UIKit.UIImageView {
@objc get
@objc set(value)
}
@objc public var drawLineWidth: CoreGraphics.CGFloat
@objc public var mosaicLineWidth: CoreGraphics.CGFloat
@objc public var editFinishBlock: ((UIKit.UIImage, HHPhotoPicker.ZLEditImageModel?) -> Swift.Void)?
@objc public var cancelEditBlock: (() -> Swift.Void)?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc deinit
@objc public class func showEditImageVC(parentVC: UIKit.UIViewController?, animate: Swift.Bool = false, image: UIKit.UIImage, editModel: HHPhotoPicker.ZLEditImageModel? = nil, cancel: (() -> Swift.Void)? = nil, completion: ((UIKit.UIImage, HHPhotoPicker.ZLEditImageModel?) -> Swift.Void)?)
@objc public init(image: UIKit.UIImage, editModel: HHPhotoPicker.ZLEditImageModel? = nil)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic open func viewDidLoad()
@objc override dynamic open func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLEditImageViewController : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLEditImageViewController : UIKit.UIScrollViewDelegate {
@objc dynamic public func viewForZooming(in scrollView: UIKit.UIScrollView) -> UIKit.UIView?
@objc dynamic public func scrollViewDidZoom(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndZooming(_ scrollView: UIKit.UIScrollView, with view: UIKit.UIView?, atScale scale: CoreGraphics.CGFloat)
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndScrollingAnimation(_ scrollView: UIKit.UIScrollView)
}
extension ZLEditImageViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegate {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
}
@objc @_hasMissingDesignatedInitializers public class ZLDrawPath : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_hasMissingDesignatedInitializers public class ZLMosaicPath : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_hasMissingDesignatedInitializers public class ZLEditVideoViewController : UIKit.UIViewController {
@objc public var editFinishBlock: ((Foundation.URL?) -> Swift.Void)?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
@objc get
}
@objc deinit
@objc public init(avAsset: AVFoundation.AVAsset, animateDismiss: Swift.Bool = false)
@objc override dynamic public func viewDidLoad()
@objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
}
extension ZLEditVideoViewController : UIKit.UIGestureRecognizerDelegate {
@objc dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLEditVideoViewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDragging(_ scrollView: UIKit.UIScrollView, willDecelerate decelerate: Swift.Bool)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, insetForSectionAt section: Swift.Int) -> UIKit.UIEdgeInsets
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, willDisplay cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
}
@objc @_inheritsConvenienceInitializers public class ZLEnlargeButton : UIKit.UIButton {
public var enlargeInsets: UIKit.UIEdgeInsets
public var enlargeInset: CoreGraphics.CGFloat {
get
set(value)
}
@objc override dynamic public func point(inside point: CoreGraphics.CGPoint, with event: UIKit.UIEvent?) -> Swift.Bool
@objc override dynamic public init(frame: CoreGraphics.CGRect)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc deinit
}
public typealias ZLFilterApplierType = ((UIKit.UIImage) -> UIKit.UIImage)
@objc public enum ZLFilterType : Swift.Int {
case normal
case chrome
case fade
case instant
case process
case transfer
case tone
case linear
case sepia
case mono
case noir
case tonal
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public class ZLFilter : ObjectiveC.NSObject {
public var name: Swift.String
@objc public init(name: Swift.String, filterType: HHPhotoPicker.ZLFilterType)
@objc public init(name: Swift.String, applier: HHPhotoPicker.ZLFilterApplierType?)
@objc override dynamic public init()
@objc deinit
}
extension ZLFilter {
@objc public static var all: [HHPhotoPicker.ZLFilter]
@objc public static var normal: HHPhotoPicker.ZLFilter
@objc public static var clarendon: HHPhotoPicker.ZLFilter
@objc public static var nashville: HHPhotoPicker.ZLFilter
@objc public static var apply1977: HHPhotoPicker.ZLFilter
@objc public static var toaster: HHPhotoPicker.ZLFilter
@objc public static var chrome: HHPhotoPicker.ZLFilter
@objc public static var fade: HHPhotoPicker.ZLFilter
@objc public static var instant: HHPhotoPicker.ZLFilter
@objc public static var process: HHPhotoPicker.ZLFilter
@objc public static var transfer: HHPhotoPicker.ZLFilter
@objc public static var tone: HHPhotoPicker.ZLFilter
@objc public static var linear: HHPhotoPicker.ZLFilter
@objc public static var sepia: HHPhotoPicker.ZLFilter
@objc public static var mono: HHPhotoPicker.ZLFilter
@objc public static var noir: HHPhotoPicker.ZLFilter
@objc public static var tonal: HHPhotoPicker.ZLFilter
}
@objc public enum ZLURLType : Swift.Int {
case image
case video
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc @_hasMissingDesignatedInitializers public class ZLImagePreviewController : UIKit.UIViewController {
@objc public var longPressBlock: ((HHPhotoPicker.ZLImagePreviewController?, UIKit.UIImage?, Swift.Int) -> Swift.Void)?
@objc public var doneBlock: (([Any]) -> Swift.Void)?
@objc public var videoHttpHeader: [Swift.String : Any]?
@objc override dynamic public var prefersStatusBarHidden: Swift.Bool {
@objc get
}
@objc override dynamic public var preferredStatusBarStyle: UIKit.UIStatusBarStyle {
@objc get
}
@objc public init(datas: [Any], index: Swift.Int = 0, showSelectBtn: Swift.Bool = true, showBottomView: Swift.Bool = true, urlType: ((Foundation.URL) -> HHPhotoPicker.ZLURLType)? = nil, urlImageLoader: ((Foundation.URL, UIKit.UIImageView, @escaping (CoreGraphics.CGFloat) -> Swift.Void, @escaping () -> Swift.Void) -> Swift.Void)? = nil)
@objc override dynamic public func viewDidLoad()
@objc override dynamic public func viewWillAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidAppear(_ animated: Swift.Bool)
@objc override dynamic public func viewDidLayoutSubviews()
@objc override dynamic public init(nibName nibNameOrNil: Swift.String?, bundle nibBundleOrNil: Foundation.Bundle?)
@objc deinit
}
extension ZLImagePreviewController {
@objc dynamic public func scrollViewDidScroll(_ scrollView: UIKit.UIScrollView)
@objc dynamic public func scrollViewDidEndDecelerating(_ scrollView: UIKit.UIScrollView)
}
extension ZLImagePreviewController : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, minimumInteritemSpacingForSectionAt section: Swift.Int) -> CoreGraphics.CGFloat
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, minimumLineSpacingForSectionAt section: Swift.Int) -> CoreGraphics.CGFloat
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, insetForSectionAt section: Swift.Int) -> UIKit.UIEdgeInsets
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreGraphics.CGSize
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didEndDisplaying cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
}
@objc @_hasMissingDesignatedInitializers public class ZLImageStickerState : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLLanguageType : Swift.Int {
case system
case chineseSimplified
case chineseTraditional
case english
case japanese
case french
case german
case russian
case vietnamese
case korean
case malay
case italian
case indonesian
case portuguese
case spanish
case turkish
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
public struct ZLLocalLanguageKey : Swift.Hashable {
public let rawValue: Swift.String
public init(rawValue: Swift.String)
public static var previewCamera: HHPhotoPicker.ZLLocalLanguageKey
public static var previewCameraRecord: HHPhotoPicker.ZLLocalLanguageKey
public static var previewAlbum: HHPhotoPicker.ZLLocalLanguageKey
public static var cancel: HHPhotoPicker.ZLLocalLanguageKey
public static var noPhotoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var loading: HHPhotoPicker.ZLLocalLanguageKey
public static var hudLoading: HHPhotoPicker.ZLLocalLanguageKey
public static var done: HHPhotoPicker.ZLLocalLanguageKey
public static var ok: HHPhotoPicker.ZLLocalLanguageKey
public static var timeout: HHPhotoPicker.ZLLocalLanguageKey
public static var noPhotoLibratyAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var noCameraAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var noMicrophoneAuthority: HHPhotoPicker.ZLLocalLanguageKey
public static var cameraUnavailable: HHPhotoPicker.ZLLocalLanguageKey
public static var keepRecording: HHPhotoPicker.ZLLocalLanguageKey
public static var gotoSettings: HHPhotoPicker.ZLLocalLanguageKey
public static var photo: HHPhotoPicker.ZLLocalLanguageKey
public static var originalPhoto: HHPhotoPicker.ZLLocalLanguageKey
public static var back: HHPhotoPicker.ZLLocalLanguageKey
public static var edit: HHPhotoPicker.ZLLocalLanguageKey
public static var editFinish: HHPhotoPicker.ZLLocalLanguageKey
public static var revert: HHPhotoPicker.ZLLocalLanguageKey
public static var brightness: HHPhotoPicker.ZLLocalLanguageKey
public static var contrast: HHPhotoPicker.ZLLocalLanguageKey
public static var saturation: HHPhotoPicker.ZLLocalLanguageKey
public static var preview: HHPhotoPicker.ZLLocalLanguageKey
public static var notAllowMixSelect: HHPhotoPicker.ZLLocalLanguageKey
public static var save: HHPhotoPicker.ZLLocalLanguageKey
public static var saveImageError: HHPhotoPicker.ZLLocalLanguageKey
public static var saveVideoError: HHPhotoPicker.ZLLocalLanguageKey
public static var exceededMaxSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var exceededMaxVideoSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var lessThanMinVideoSelectCount: HHPhotoPicker.ZLLocalLanguageKey
public static var longerThanMaxVideoDuration: HHPhotoPicker.ZLLocalLanguageKey
public static var shorterThanMaxVideoDuration: HHPhotoPicker.ZLLocalLanguageKey
public static var iCloudVideoLoadFaild: HHPhotoPicker.ZLLocalLanguageKey
public static var imageLoadFailed: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraTips: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraTakePhotoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var customCameraRecordVideoTips: HHPhotoPicker.ZLLocalLanguageKey
public static var minRecordTimeTips: HHPhotoPicker.ZLLocalLanguageKey
public static var cameraRoll: HHPhotoPicker.ZLLocalLanguageKey
public static var panoramas: HHPhotoPicker.ZLLocalLanguageKey
public static var videos: HHPhotoPicker.ZLLocalLanguageKey
public static var favorites: HHPhotoPicker.ZLLocalLanguageKey
public static var timelapses: HHPhotoPicker.ZLLocalLanguageKey
public static var recentlyAdded: HHPhotoPicker.ZLLocalLanguageKey
public static var bursts: HHPhotoPicker.ZLLocalLanguageKey
public static var slomoVideos: HHPhotoPicker.ZLLocalLanguageKey
public static var selfPortraits: HHPhotoPicker.ZLLocalLanguageKey
public static var screenshots: HHPhotoPicker.ZLLocalLanguageKey
public static var depthEffect: HHPhotoPicker.ZLLocalLanguageKey
public static var livePhotos: HHPhotoPicker.ZLLocalLanguageKey
public static var animated: HHPhotoPicker.ZLLocalLanguageKey
public static var myPhotoStream: HHPhotoPicker.ZLLocalLanguageKey
public static var noTitleAlbumListPlaceholder: HHPhotoPicker.ZLLocalLanguageKey
public static var unableToAccessAllPhotos: HHPhotoPicker.ZLLocalLanguageKey
public static var textStickerRemoveTips: HHPhotoPicker.ZLLocalLanguageKey
public func hash(into hasher: inout Swift.Hasher)
public static func == (a: HHPhotoPicker.ZLLocalLanguageKey, b: HHPhotoPicker.ZLLocalLanguageKey) -> Swift.Bool
public var hashValue: Swift.Int {
get
}
}
public typealias Second = Swift.Int
@objc @_inheritsConvenienceInitializers public class ZLPhotoConfiguration : ObjectiveC.NSObject {
@objc public class func `default`() -> HHPhotoPicker.ZLPhotoConfiguration
@objc public class func resetConfiguration()
@objc public var sortAscending: Swift.Bool
@objc public var maxSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var maxVideoSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var minVideoSelectCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var allowMixSelect: Swift.Bool
@objc public var maxPreviewCount: Swift.Int
@objc public var cellCornerRadio: CoreGraphics.CGFloat
@objc public var allowSelectImage: Swift.Bool
@objc public var allowSelectVideo: Swift.Bool
@objc public var allowSelectGif: Swift.Bool
@objc public var allowSelectLivePhoto: Swift.Bool
@objc public var allowTakePhotoInLibrary: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowEditImage: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowEditVideo: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var animateSelectBtnWhenSelect: Swift.Bool
@objc public var selectBtnAnimationDuration: Swift.Double
@objc public var editAfterSelectThumbnailImage: Swift.Bool
@objc public var cropVideoAfterSelectThumbnail: Swift.Bool
@objc public var showClipDirectlyIfOnlyHasClipTool: Swift.Bool
@objc public var saveNewImageAfterEdit: Swift.Bool
@objc public var allowSlideSelect: Swift.Bool
@objc public var autoScrollWhenSlideSelectIsActive: Swift.Bool
@objc public var autoScrollMaxSpeed: CoreGraphics.CGFloat
@objc public var allowDragSelect: Swift.Bool
@objc public var allowSelectOriginal: Swift.Bool
@objc public var allowPreviewPhotos: Swift.Bool
@objc public var showPreviewButtonInAlbum: Swift.Bool
@objc public var showSelectCountOnDoneBtn: Swift.Bool
@objc public var columnCount: Swift.Int {
@objc get
@objc set(newValue)
}
@objc public var maxEditVideoTime: Swift.Int
@objc public var maxSelectVideoDuration: Swift.Int
@objc public var minSelectVideoDuration: Swift.Int
@objc public var editImageConfiguration: HHPhotoPicker.ZLEditImageConfiguration
@objc public var showCaptureImageOnTakePhotoBtn: Swift.Bool
@objc public var showSelectBtnWhenSingleSelect: Swift.Bool
@objc public var showSelectedMask: Swift.Bool
@objc public var showSelectedBorder: Swift.Bool
@objc public var showInvalidMask: Swift.Bool
@objc public var showSelectedIndex: Swift.Bool
@objc public var showSelectedPhotoPreview: Swift.Bool
@objc public var shouldAnialysisAsset: Swift.Bool
@objc public var timeout: Swift.Double
@objc public var languageType: HHPhotoPicker.ZLLanguageType {
@objc get
@objc set(value)
}
@objc public var useCustomCamera: Swift.Bool
@objc public var allowTakePhoto: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var allowRecordVideo: Swift.Bool {
@objc get
@objc set(newValue)
}
@objc public var minRecordDuration: HHPhotoPicker.Second {
@objc get
@objc set(newValue)
}
@objc public var maxRecordDuration: HHPhotoPicker.Second {
@objc get
@objc set(newValue)
}
@objc public var cameraConfiguration: HHPhotoPicker.ZLCameraConfiguration
@objc public var hudStyle: HHPhotoPicker.ZLProgressHUD.HUDStyle
@objc public var canSelectAsset: ((Photos.PHAsset) -> Swift.Bool)?
@objc public var showAddPhotoButton: Swift.Bool
@objc public var showEnterSettingTips: Swift.Bool
@objc public var noAuthorityCallback: ((HHPhotoPicker.ZLNoAuthorityType) -> Swift.Void)?
@objc public var operateBeforeDoneAction: ((UIKit.UIViewController, @escaping () -> Swift.Void) -> Swift.Void)?
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLNoAuthorityType : Swift.Int {
case library
case camera
case microphone
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension ZLPhotoConfiguration {
@discardableResult
public func sortAscending(_ ascending: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxVideoSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minVideoSelectCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowMixSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxPreviewCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cellCornerRadio(_ cornerRadio: CoreGraphics.CGFloat) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func allowSelectVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectGif(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectLivePhoto(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowTakePhotoInLibrary(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowEditImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowEditVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func animateSelectBtnWhenSelect(_ animate: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func selectBtnAnimationDuration(_ duration: CoreFoundation.CFTimeInterval) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func editAfterSelectThumbnailImage(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cropVideoAfterSelectThumbnail(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showClipDirectlyIfOnlyHasClipTool(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func saveNewImageAfterEdit(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSlideSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func autoScrollWhenSlideSelectIsActive(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func autoScrollMaxSpeed(_ speed: CoreGraphics.CGFloat) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowDragSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowSelectOriginal(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowPreviewPhotos(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showPreviewButtonInAlbum(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectCountOnDoneBtn(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func columnCount(_ count: Swift.Int) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxEditVideoTime(_ second: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxSelectVideoDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minSelectVideoDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func editImageConfiguration(_ configuration: HHPhotoPicker.ZLEditImageConfiguration) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showCaptureImageOnTakePhotoBtn(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectBtnWhenSingleSelect(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedMask(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedBorder(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showInvalidMask(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedIndex(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func showSelectedPhotoPreview(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func shouldAnialysisAsset(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func timeout(_ timeout: Foundation.TimeInterval) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func languageType(_ type: HHPhotoPicker.ZLLanguageType) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func useCustomCamera(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowTakePhoto(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func allowRecordVideo(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func minRecordDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func maxRecordDuration(_ duration: HHPhotoPicker.Second) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func cameraConfiguration(_ configuration: HHPhotoPicker.ZLCameraConfiguration) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
public func hudStyle(_ style: HHPhotoPicker.ZLProgressHUD.HUDStyle) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func canSelectAsset(_ block: ((Photos.PHAsset) -> Swift.Bool)?) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func showAddPhotoButton(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func showEnterSettingTips(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func noAuthorityCallback(_ callback: ((HHPhotoPicker.ZLNoAuthorityType) -> Swift.Void)?) -> HHPhotoPicker.ZLPhotoConfiguration
@discardableResult
@objc dynamic public func operateBeforeDoneAction(_ block: ((UIKit.UIViewController, @escaping () -> Swift.Void) -> Swift.Void)?) -> HHPhotoPicker.ZLPhotoConfiguration
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoManager : ObjectiveC.NSObject {
@objc public class func saveImageToAlbum(image: UIKit.UIImage, completion: ((Swift.Bool, Photos.PHAsset?) -> Swift.Void)?)
@objc public class func saveVideoToAlbum(url: Foundation.URL, completion: ((Swift.Bool, Photos.PHAsset?) -> Swift.Void)?)
@objc public class func fetchPhoto(in result: Photos.PHFetchResult<Photos.PHAsset>, ascending: Swift.Bool, allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, limitCount: Swift.Int = .max) -> [HHPhotoPicker.ZLPhotoModel]
@objc public class func getPhotoAlbumList(ascending: Swift.Bool, allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, completion: ([HHPhotoPicker.ZLAlbumListModel]) -> Swift.Void)
@objc public class func getCameraRollAlbum(allowSelectImage: Swift.Bool, allowSelectVideo: Swift.Bool, completion: @escaping (HHPhotoPicker.ZLAlbumListModel) -> Swift.Void)
@discardableResult
@objc public class func fetchImage(for asset: Photos.PHAsset, size: CoreGraphics.CGSize, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (UIKit.UIImage?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@discardableResult
@objc public class func fetchOriginalImage(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (UIKit.UIImage?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@discardableResult
@objc public class func fetchOriginalImageData(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (Foundation.Data, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchLivePhoto(for asset: Photos.PHAsset, completion: @escaping (Photos.PHLivePhoto?, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchVideo(for asset: Photos.PHAsset, progress: ((CoreGraphics.CGFloat, Swift.Error?, Swift.UnsafeMutablePointer<ObjectiveC.ObjCBool>, [Swift.AnyHashable : Any]?) -> Swift.Void)? = nil, completion: @escaping (AVFoundation.AVPlayerItem?, [Swift.AnyHashable : Any]?, Swift.Bool) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchAVAsset(forVideo asset: Photos.PHAsset, completion: @escaping (AVFoundation.AVAsset?, [Swift.AnyHashable : Any]?) -> Swift.Void) -> Photos.PHImageRequestID
@objc public class func fetchAssetFilePath(asset: Photos.PHAsset, completion: @escaping (Swift.String?) -> Swift.Void)
@objc override dynamic public init()
@objc deinit
}
extension ZLPhotoManager {
@objc dynamic public class func hasPhotoLibratyAuthority() -> Swift.Bool
@objc dynamic public class func hasCameraAuthority() -> Swift.Bool
@objc dynamic public class func hasMicrophoneAuthority() -> Swift.Bool
}
extension ZLPhotoModel {
public enum MediaType : Swift.Int {
case unknown
case image
case gif
case livePhoto
case video
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
}
@objc public class ZLPhotoModel : ObjectiveC.NSObject {
final public let ident: Swift.String
final public let asset: Photos.PHAsset
public var type: HHPhotoPicker.ZLPhotoModel.MediaType
public var duration: Swift.String
public var isSelected: Swift.Bool
public var editImage: UIKit.UIImage? {
get
set(newValue)
}
public var second: HHPhotoPicker.Second {
get
}
public var whRatio: CoreGraphics.CGFloat {
get
}
public var previewSize: CoreGraphics.CGSize {
get
}
public var editImageModel: HHPhotoPicker.ZLEditImageModel?
public init(asset: Photos.PHAsset)
public func transformAssetType(for asset: Photos.PHAsset) -> HHPhotoPicker.ZLPhotoModel.MediaType
public func transformDuration(for asset: Photos.PHAsset) -> Swift.String
@objc override dynamic public init()
@objc deinit
}
extension ZLPhotoModel {
public static func == (lhs: HHPhotoPicker.ZLPhotoModel, rhs: HHPhotoPicker.ZLPhotoModel) -> Swift.Bool
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoPreviewSheet : UIKit.UIView {
@objc public var selectImageBlock: (([UIKit.UIImage], [Photos.PHAsset], Swift.Bool) -> Swift.Void)?
@objc public var selectImageRequestErrorBlock: (([Photos.PHAsset], [Swift.Int]) -> Swift.Void)?
@objc public var cancelBlock: (() -> Swift.Void)?
@objc deinit
@objc override dynamic public convenience init(frame: CoreGraphics.CGRect)
@objc public init(selectedAssets: [Photos.PHAsset]? = nil)
@objc required dynamic public init?(coder: Foundation.NSCoder)
@objc override dynamic public func layoutSubviews()
@objc public func showPreview(animate: Swift.Bool = true, sender: UIKit.UIViewController)
@objc public func showPhotoLibrary(sender: UIKit.UIViewController)
@objc public func previewAssets(sender: UIKit.UIViewController, assets: [Photos.PHAsset], index: Swift.Int, isOriginal: Swift.Bool, showBottomViewAndSelectBtn: Swift.Bool = true)
}
extension ZLPhotoPreviewSheet : UIKit.UIGestureRecognizerDelegate {
@objc override dynamic public func gestureRecognizerShouldBegin(_ gestureRecognizer: UIKit.UIGestureRecognizer) -> Swift.Bool
}
extension ZLPhotoPreviewSheet : UIKit.UICollectionViewDataSource, UIKit.UICollectionViewDelegateFlowLayout {
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, layout collectionViewLayout: UIKit.UICollectionViewLayout, sizeForItemAt indexPath: Foundation.IndexPath) -> CoreGraphics.CGSize
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, numberOfItemsInSection section: Swift.Int) -> Swift.Int
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, cellForItemAt indexPath: Foundation.IndexPath) -> UIKit.UICollectionViewCell
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, willDisplay cell: UIKit.UICollectionViewCell, forItemAt indexPath: Foundation.IndexPath)
@objc dynamic public func collectionView(_ collectionView: UIKit.UICollectionView, didSelectItemAt indexPath: Foundation.IndexPath)
}
extension ZLPhotoPreviewSheet : UIKit.UIImagePickerControllerDelegate, UIKit.UINavigationControllerDelegate {
@objc dynamic public func imagePickerController(_ picker: UIKit.UIImagePickerController, didFinishPickingMediaWithInfo info: [UIKit.UIImagePickerController.InfoKey : Any])
}
extension ZLPhotoPreviewSheet : Photos.PHPhotoLibraryChangeObserver {
@objc dynamic public func photoLibraryDidChange(_ changeInstance: Photos.PHChange)
}
@objc @_inheritsConvenienceInitializers public class ZLPhotoUIConfiguration : ObjectiveC.NSObject {
@objc public enum CancelButtonStyle : Swift.Int {
case text
case image
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc public class func `default`() -> HHPhotoPicker.ZLPhotoUIConfiguration
@objc public class func resetConfiguration()
@objc public var style: HHPhotoPicker.ZLPhotoBrowserStyle
@objc public var statusBarStyle: UIKit.UIStatusBarStyle
@objc public var navCancelButtonStyle: HHPhotoPicker.ZLPhotoUIConfiguration.CancelButtonStyle
@objc public var showStatusBarInPreviewInterface: Swift.Bool
@objc public var navViewBlurEffectOfAlbumList: UIKit.UIBlurEffect?
@objc public var navViewBlurEffectOfPreview: UIKit.UIBlurEffect?
@objc public var bottomViewBlurEffectOfAlbumList: UIKit.UIBlurEffect?
@objc public var bottomViewBlurEffectOfPreview: UIKit.UIBlurEffect?
@objc public var customImageNames: [Swift.String] {
@objc get
@objc set(value)
}
public var customImageForKey: [Swift.String : UIKit.UIImage?] {
get
set(value)
}
@objc public var customImageForKey_objc: [Swift.String : UIKit.UIImage] {
@objc get
@objc set(value)
}
public var customLanguageKeyValue: [HHPhotoPicker.ZLLocalLanguageKey : Swift.String] {
get
set(value)
}
@objc public var customLanguageKeyValue_objc: [Swift.String : Swift.String] {
@objc get
@objc set(value)
}
@objc public var themeFontName: Swift.String? {
@objc get
@objc set(value)
}
@objc public var sheetTranslucentColor: UIKit.UIColor
@objc public var sheetBtnBgColor: UIKit.UIColor
@objc public var sheetBtnTitleColor: UIKit.UIColor
@objc public var sheetBtnTitleTintColor: UIKit.UIColor
@objc public var navBarColor: UIKit.UIColor
@objc public var navBarColorOfPreviewVC: UIKit.UIColor
@objc public var navTitleColor: UIKit.UIColor
@objc public var navTitleColorOfPreviewVC: UIKit.UIColor
@objc public var navEmbedTitleViewBgColor: UIKit.UIColor
@objc public var albumListBgColor: UIKit.UIColor
@objc public var embedAlbumListTranslucentColor: UIKit.UIColor
@objc public var albumListTitleColor: UIKit.UIColor
@objc public var albumListCountColor: UIKit.UIColor
@objc public var separatorColor: UIKit.UIColor
@objc public var thumbnailBgColor: UIKit.UIColor
@objc public var previewVCBgColor: UIKit.UIColor
@objc public var bottomToolViewBgColor: UIKit.UIColor
@objc public var bottomToolViewBgColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnNormalTitleColor: UIKit.UIColor
@objc public var bottomToolViewDoneBtnNormalTitleColor: UIKit.UIColor
@objc public var bottomToolViewBtnNormalTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewDoneBtnNormalTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnDisableTitleColor: UIKit.UIColor
@objc public var bottomToolViewDoneBtnDisableTitleColor: UIKit.UIColor
@objc public var bottomToolViewBtnDisableTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewDoneBtnDisableTitleColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnNormalBgColor: UIKit.UIColor
@objc public var bottomToolViewBtnNormalBgColorOfPreviewVC: UIKit.UIColor
@objc public var bottomToolViewBtnDisableBgColor: UIKit.UIColor
@objc public var bottomToolViewBtnDisableBgColorOfPreviewVC: UIKit.UIColor
@objc public var selectMorePhotoWhenAuthIsLismitedTitleColor: UIKit.UIColor
@objc public var cameraRecodeProgressColor: UIKit.UIColor
@objc public var selectedMaskColor: UIKit.UIColor
@objc public var selectedBorderColor: UIKit.UIColor
@objc public var invalidMaskColor: UIKit.UIColor
@objc public var indexLabelTextColor: UIKit.UIColor
@objc public var indexLabelBgColor: UIKit.UIColor
@objc public var cameraCellBgColor: UIKit.UIColor
@objc public var adjustSliderNormalColor: UIKit.UIColor
@objc public var adjustSliderTintColor: UIKit.UIColor
@objc override dynamic public init()
@objc deinit
}
@objc public enum ZLPhotoBrowserStyle : Swift.Int {
case embedAlbumList
case externalAlbumList
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
extension ZLPhotoUIConfiguration {
@discardableResult
public func style(_ style: HHPhotoPicker.ZLPhotoBrowserStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func statusBarStyle(_ statusBarStyle: UIKit.UIStatusBarStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navCancelButtonStyle(_ style: HHPhotoPicker.ZLPhotoUIConfiguration.CancelButtonStyle) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func showStatusBarInPreviewInterface(_ value: Swift.Bool) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navViewBlurEffectOfAlbumList(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navViewBlurEffectOfPreview(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomViewBlurEffectOfAlbumList(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomViewBlurEffectOfPreview(_ effect: UIKit.UIBlurEffect?) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customImageNames(_ names: [Swift.String]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customImageForKey(_ map: [Swift.String : UIKit.UIImage?]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func customLanguageKeyValue(_ map: [HHPhotoPicker.ZLLocalLanguageKey : Swift.String]) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func themeFontName(_ name: Swift.String) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetTranslucentColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func sheetBtnTitleTintColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navBarColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navBarColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func navEmbedTitleViewBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func embedAlbumListTranslucentColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func albumListCountColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func separatorColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func thumbnailBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func previewVCBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnNormalTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnNormalTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnDisableTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewDoneBtnDisableTitleColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnNormalBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func bottomToolViewBtnDisableBgColorOfPreviewVC(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectMorePhotoWhenAuthIsLismitedTitleColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func cameraRecodeProgressColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectedMaskColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func selectedBorderColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func invalidMaskColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func indexLabelTextColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func indexLabelBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func cameraCellBgColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func adjustSliderNormalColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
@discardableResult
public func adjustSliderTintColor(_ color: UIKit.UIColor) -> HHPhotoPicker.ZLPhotoUIConfiguration
}
@objc @_hasMissingDesignatedInitializers public class ZLProgressHUD : UIKit.UIView {
@objc public enum HUDStyle : Swift.Int {
case light
case lightBlur
case dark
case darkBlur
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
@objc deinit
@objc public init(style: HHPhotoPicker.ZLProgressHUD.HUDStyle)
@objc public func show(timeout: Foundation.TimeInterval = 100)
@objc public func hide()
@objc override dynamic public init(frame: CoreGraphics.CGRect)
}
@objc @_hasMissingDesignatedInitializers public class ZLTextStickerState : ObjectiveC.NSObject {
@objc override dynamic public init()
@objc deinit
}
@objc @_inheritsConvenienceInitializers public class ZLVideoManager : ObjectiveC.NSObject {
@objc public class func mergeVideos(fileUrls: [Foundation.URL], completion: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
@objc override dynamic public init()
@objc deinit
}
extension ZLVideoManager {
@objc dynamic public class func exportVideo(for asset: Photos.PHAsset, exportType: HHPhotoPicker.ZLVideoManager.ExportType = .mov, presetName: Swift.String = AVAssetExportPresetMediumQuality, complete: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
@objc dynamic public class func exportVideo(for asset: AVFoundation.AVAsset, range: CoreMedia.CMTimeRange = CMTimeRange(start: .zero, duration: .positiveInfinity), exportType: HHPhotoPicker.ZLVideoManager.ExportType = .mov, presetName: Swift.String = AVAssetExportPresetMediumQuality, complete: @escaping ((Foundation.URL?, Swift.Error?) -> Swift.Void))
}
extension ZLVideoManager {
@objc public enum ExportType : Swift.Int {
case mov
case mp4
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
get
}
}
}
framework module HHPhotoPicker {
umbrella header "HHPhotoPicker-umbrella.h"
export *
module * { export * }
}
module HHPhotoPicker.Swift {
header "HHPhotoPicker-Swift.h"
requires objc
}
// Generated by Apple Swift version 5.4.2 (swiftlang-1205.0.28.2 clang-1205.0.19.57)
#ifndef HHSDKBASE_SWIFT_H
#define HHSDKBASE_SWIFT_H
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wgcc-compat"
#if !defined(__has_include)
# define __has_include(x) 0
#endif
#if !defined(__has_attribute)
# define __has_attribute(x) 0
#endif
#if !defined(__has_feature)
# define __has_feature(x) 0
#endif
#if !defined(__has_warning)
# define __has_warning(x) 0
#endif
#if __has_include(<swift/objc-prologue.h>)
# include <swift/objc-prologue.h>
#endif
#pragma clang diagnostic ignored "-Wauto-import"
#include <Foundation/Foundation.h>
#include <stdint.h>
#include <stddef.h>
#include <stdbool.h>
#if !defined(SWIFT_TYPEDEFS)
# define SWIFT_TYPEDEFS 1
# if __has_include(<uchar.h>)
# include <uchar.h>
# elif !defined(__cplusplus)
typedef uint_least16_t char16_t;
typedef uint_least32_t char32_t;
# endif
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
#endif
#if !defined(SWIFT_PASTE)
# define SWIFT_PASTE_HELPER(x, y) x##y
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
#endif
#if !defined(SWIFT_METATYPE)
# define SWIFT_METATYPE(X) Class
#endif
#if !defined(SWIFT_CLASS_PROPERTY)
# if __has_feature(objc_class_property)
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
# else
# define SWIFT_CLASS_PROPERTY(...)
# endif
#endif
#if __has_attribute(objc_runtime_name)
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
#else
# define SWIFT_RUNTIME_NAME(X)
#endif
#if __has_attribute(swift_name)
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
#else
# define SWIFT_COMPILE_NAME(X)
#endif
#if __has_attribute(objc_method_family)
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
#else
# define SWIFT_METHOD_FAMILY(X)
#endif
#if __has_attribute(noescape)
# define SWIFT_NOESCAPE __attribute__((noescape))
#else
# define SWIFT_NOESCAPE
#endif
#if __has_attribute(ns_consumed)
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
#else
# define SWIFT_RELEASES_ARGUMENT
#endif
#if __has_attribute(warn_unused_result)
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
#else
# define SWIFT_WARN_UNUSED_RESULT
#endif
#if __has_attribute(noreturn)
# define SWIFT_NORETURN __attribute__((noreturn))
#else
# define SWIFT_NORETURN
#endif
#if !defined(SWIFT_CLASS_EXTRA)
# define SWIFT_CLASS_EXTRA
#endif
#if !defined(SWIFT_PROTOCOL_EXTRA)
# define SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_ENUM_EXTRA)
# define SWIFT_ENUM_EXTRA
#endif
#if !defined(SWIFT_CLASS)
# if __has_attribute(objc_subclassing_restricted)
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# else
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
# endif
#endif
#if !defined(SWIFT_RESILIENT_CLASS)
# if __has_attribute(objc_class_stub)
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
# else
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
# endif
#endif
#if !defined(SWIFT_PROTOCOL)
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
#endif
#if !defined(SWIFT_EXTENSION)
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
#endif
#if !defined(OBJC_DESIGNATED_INITIALIZER)
# if __has_attribute(objc_designated_initializer)
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
# else
# define OBJC_DESIGNATED_INITIALIZER
# endif
#endif
#if !defined(SWIFT_ENUM_ATTR)
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
# else
# define SWIFT_ENUM_ATTR(_extensibility)
# endif
#endif
#if !defined(SWIFT_ENUM)
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# if __has_feature(generalized_swift_name)
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
# else
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
# endif
#endif
#if !defined(SWIFT_UNAVAILABLE)
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
#endif
#if !defined(SWIFT_UNAVAILABLE_MSG)
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
#endif
#if !defined(SWIFT_AVAILABILITY)
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
#endif
#if !defined(SWIFT_WEAK_IMPORT)
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
#endif
#if !defined(SWIFT_DEPRECATED)
# define SWIFT_DEPRECATED __attribute__((deprecated))
#endif
#if !defined(SWIFT_DEPRECATED_MSG)
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
#endif
#if __has_feature(attribute_diagnose_if_objc)
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
#else
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
#endif
#if !defined(IBSegueAction)
# define IBSegueAction
#endif
#if __has_feature(modules)
#if __has_warning("-Watimport-in-framework-header")
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
#endif
@import Foundation;
@import ObjectiveC;
@import UIKit;
#endif
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
#if __has_warning("-Wpragma-clang-attribute")
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
#endif
#pragma clang diagnostic ignored "-Wunknown-pragmas"
#pragma clang diagnostic ignored "-Wnullability"
#if __has_attribute(external_source_symbol)
# pragma push_macro("any")
# undef any
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHSDKBase",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
# pragma pop_macro("any")
#endif
@class NSString;
SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK")
@interface HHBaseSDK : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;)
+ (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
/// SDK init
- (void)start;
/// 登录账户
/// <ul>
/// <li>
/// Parameters:
/// </li>
/// <li>
/// userToken: 用户的唯一标志
/// </li>
/// <li>
/// completion: 完成的回调
/// </li>
/// </ul>
- (void)loginWithUserToken:(NSString * _Nonnull)userToken completion:(void (^ _Nonnull)(NSString * _Nullable))completion;
/// 登出
/// \param callback 登出回调(字符串为空表示成功)
///
- (void)logout:(void (^ _Nullable)(NSString * _Nullable))callback;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils")
@interface HHDateUtils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC9HHSDKBase15HHDeviceManager")
@interface HHDeviceManager : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC9HHSDKBase18HHFileCacheManager")
@interface HHFileCacheManager : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC9HHSDKBase23HHMediaStatusCheckUtils")
@interface HHMediaStatusCheckUtils : NSObject
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
SWIFT_CLASS("_TtC9HHSDKBase18HHMedicNetObserver")
@interface HHMedicNetObserver : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
@class NSNumber;
/// 基础全局配置
SWIFT_CLASS("_TtC9HHSDKBase16HHSDKBaseOptions")
@interface HHSDKBaseOptions : NSObject
SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKBaseOptions * _Nonnull default_;)
+ (HHSDKBaseOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
/// 调试模式(打印日志)
@property (nonatomic) BOOL isDebug;
/// 是否开启测试服
@property (nonatomic) BOOL isDevelopment;
/// 是否是SDK
@property (nonatomic) BOOL isSDK;
/// 是否是腾讯
@property (nonatomic) BOOL isTRTC;
/// 产品ID
@property (nonatomic, copy) NSString * _Nonnull sdkProductId;
/// app version
@property (nonatomic, copy) NSString * _Nonnull appVersion;
/// 是否配置DNS
@property (nonatomic) BOOL needDNS;
/// 脚本修改
@property (nonatomic, copy) NSString * _Nonnull sdkVersion;
/// hud
@property (nonatomic) NSTimeInterval hudDisTime;
- (void)setConfig:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelopment:(BOOL)isDevelopment isTrtc:(BOOL)isTrtc needDNS:(BOOL)needDNS;
- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
@end
@interface UIViewController (SWIFT_EXTENSION(HHSDKBase))
- (void)hhCloseThisController;
- (void)hhPopThisController;
@end
#if __has_attribute(external_source_symbol)
# pragma clang attribute pop
#endif
#pragma clang diagnostic pop
#endif
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
#import "HHMBProgressHUD.h"
#import "ObjectMapper.h"
#import "HHAnimatedImageRep.h"
#import "HHImageCache.h"
#import "HHImageCacheConfig.h"
#import "HHWebImageCoder.h"
#import "HHWebImageCoderHelper.h"
#import "HHWebImageCodersManager.h"
#import "HHWebImageCompat.h"
#import "HHWebImageDownloader.h"
#import "HHWebImageDownloaderOperation.h"
#import "HHWebImageFrame.h"
#import "HHWebImageGIFCoder.h"
#import "HHWebImageImageIOCoder.h"
#import "HHWebImageManager.h"
#import "HHWebImageOperation.h"
#import "HHWebImagePrefetcher.h"
#import "HHWebImageTransition.h"
#import "NSData+hhImageContentType.h"
#import "NSImage+hhWebCache.h"
#import "UIButton+hhWebCache.h"
#import "UIImage+hhForceDecode.h"
#import "UIImage+hhGIF.h"
#import "UIImage+hhMultiFormat.h"
#import "UIImageView+hhHighlightedWebCache.h"
#import "UIImageView+hhWebCache.h"
#import "UIView+hhWebCache.h"
#import "UIView+hhWebCacheOperation.h"
FOUNDATION_EXPORT double HHSDKBaseVersionNumber;
FOUNDATION_EXPORT const unsigned char HHSDKBaseVersionString[];