Files
peko-ios/YuMi/Modules/YMMine/View/Medals/MedalsCollectionViewCell.h

34 lines
678 B
Objective-C

//
// MedalsCollectionViewCell.h
// YuMi
//
// Created by P on 2025/6/18.
//
#import <UIKit/UIKit.h>
@class MedalSeriesItemVo;
NS_ASSUME_NONNULL_BEGIN
@interface MedalsCollectionViewCell : UICollectionViewCell
+ (void)registerTo:(UICollectionView *)collectionView;
+ (instancetype)cellFor:(UICollectionView *)collectionView atIndexPath:(NSIndexPath *)index;
- (void)updateCell:(MedalSeriesItemVo *)model isForSquare:(BOOL)isSquare isForMine:(BOOL)isMine;
/**
* 当 cell 将要显示时调用
* 用于恢复 mp4 播放
*/
- (void)willDisplay;
/**
* 当 cell 结束显示时调用
* 用于暂停 mp4 播放
*/
- (void)didEndDisplaying;
@end
NS_ASSUME_NONNULL_END