cdts/xdts-ios 3/TreeHole/Code/Utility/KSPhotoBrowser/KSPhotoBrowser/KSPhotoItem.h
2023-07-27 09:20:00 +08:00

36 lines
1.4 KiB
Objective-C

//
// KSPhotoItem.h
// KSPhotoBrowser
//
// Created by Kyle Sun on 12/25/16.
// Copyright © 2016 Kyle Sun. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface KSPhotoItem : NSObject
@property (nonatomic, strong, nullable) UIView *sourceView;
@property (nonatomic, strong, readonly, nullable) UIImage *thumbImage;
@property (nonatomic, strong, readonly, nullable) UIImage *image;
@property (nonatomic, strong, readonly, nullable) NSURL *imageUrl;
@property (nonatomic, assign) BOOL finished;
- (nonnull instancetype)initWithSourceView:(nullable UIView *)view
thumbImage:(nullable UIImage *)image
imageUrl:(nullable NSURL *)url;
- (nonnull instancetype)initWithSourceView:(nullable UIImageView * )view
imageUrl:(nullable NSURL *)url;
- (nonnull instancetype)initWithSourceView:(nullable UIImageView *)view
image:(nullable UIImage *)image;
+ (nonnull instancetype)itemWithSourceView:(nullable UIView *)view
thumbImage:(nullable UIImage *)image
imageUrl:(nullable NSURL *)url;
+ (nonnull instancetype)itemWithSourceView:(nullable UIImageView *)view
imageUrl:(nullable NSURL *)url;
+ (nonnull instancetype)itemWithSourceView:(nullable UIImageView *)view
image:(nullable UIImage *)image;
@end