UGCKitVideoPasterView.h 751 B

12345678910111213141516171819202122
  1. // Copyright (c) 2019 Tencent. All rights reserved.
  2. #import <UIKit/UIKit.h>
  3. #import "UGCKitTheme.h"
  4. @class UGCKitVideoPasterView;
  5. @protocol UGCKitVideoPasterViewDelegate <NSObject>
  6. - (void)onPasterViewTap;
  7. - (void)onRemovePasterView:(UGCKitVideoPasterView*)pasterView;
  8. @end
  9. @interface UGCKitVideoPasterView : UIView
  10. @property (nonatomic, weak) id<UGCKitVideoPasterViewDelegate> delegate;
  11. @property (nonatomic, strong) UIImageView *pasterImageView;
  12. @property (nonatomic, assign) CGFloat rotateAngle;
  13. @property (nonatomic, assign) UIImage* staticImage;
  14. - (id)initWithFrame:(CGRect)frame theme:(UGCKitTheme *)theme;
  15. - (void)setImageList:(NSArray *)imageList imageDuration:(float)duration;
  16. - (CGRect)pasterFrameOnView:(UIView*)view;
  17. @end