12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #import <UIKit/UIKit.h>
- #import "CTAssetItemViewController.h"
- #import "CTAssetPlayButton.h"
- #import "CTAssetSelectionButton.h"
- NS_ASSUME_NONNULL_BEGIN
- extern NSString * const CTAssetScrollViewDidTapNotification;
- extern NSString * const CTAssetScrollViewPlayerWillPlayNotification;
- extern NSString * const CTAssetScrollViewPlayerWillPauseNotification;
- @interface CTAssetScrollView : UIScrollView
- @property (nonatomic, assign) BOOL allowsSelection;
- @property (nonatomic, strong, readonly, nullable) UIImage *image;
- @property (nonatomic, strong, readonly, nullable) AVPlayer *player;
- @property (nonatomic, strong, readonly) UIImageView *imageView;
- @property (nonatomic, strong, readonly) CTAssetPlayButton *playButton;
- @property (nonatomic, strong, readonly) CTAssetSelectionButton *selectionButton;
- - (void)startActivityAnimating;
- - (void)stopActivityAnimating;
- - (void)setProgress:(CGFloat)progress;
- - (void)bind:(PHAsset *)asset image:(nullable UIImage *)image requestInfo:(nullable NSDictionary<NSString*, id> *)info;
- - (void)bind:(AVPlayerItem *)playerItem requestInfo:(nullable NSDictionary *)info;
- - (void)updateZoomScalesAndZoom:(BOOL)zoom;
- - (void)playVideo;
- - (void)pauseVideo;
- @end
- NS_ASSUME_NONNULL_END
|