BogoVideoPlayCell.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. //
  2. // BogoVideoPlayCell.h
  3. // BuguLive
  4. //
  5. // Created by 宋晨光 on 2021/4/20.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class BogoVideoPlayCell;
  10. @protocol BogoVideoTableViewCellDataSource, BogoVideoTableViewCellDelegate;
  11. NS_ASSUME_NONNULL_BEGIN
  12. @interface BogoVideoPlayCell : UITableViewCell
  13. + (void)registerWithTableView:(UITableView *)tableView;
  14. + (instancetype)cellWithTableView:(UITableView *)tableView indexPath:(NSIndexPath *)indexPath;
  15. @property (nonatomic, weak, nullable) id<BogoVideoTableViewCellDataSource> dataSource;
  16. @property (nonatomic, weak, nullable) id<BogoVideoTableViewCellDelegate> delegate;
  17. @end
  18. @protocol BogoVideoTableViewCellDataSource
  19. @property (nonatomic, copy, readonly, nullable) NSString *cover;
  20. @property (nonatomic, copy, readonly, nullable) NSAttributedString *mediaTitle;
  21. @property (nonatomic, copy, readonly, nullable) NSString *avatar;
  22. @property (nonatomic, copy, readonly, nullable) NSAttributedString *username;
  23. @end
  24. @protocol BogoVideoTableViewCellDelegate
  25. - (void)coverItemWasTapped:(BogoVideoPlayCell *)cell;
  26. @end
  27. NS_ASSUME_NONNULL_END