// // SREffectSvgaView.h // SoundRiver // // Created by 段智博 on 2020/10/26. // #import NS_ASSUME_NONNULL_BEGIN @interface QXEffectSvgaView : UIView /// isAutoPlay加载完成是否自动播放 【默认为YES】 - (instancetype)initWithFrame:(CGRect)frame isAutoPlay:(BOOL)isAutoPlay; @property (nonatomic,copy) void(^didFinishedDisplay)(QXEffectSvgaView *svgaView); @property (nonatomic,copy) void(^didStartAnimation)(void); /// 加载资源 - (void)loadSVGAPlayerWith:(NSString *)loadPath; /// 加载资源 - (void)loadSVGAPlayerWith:(NSString *)loadPath inBundle:(BOOL)inBundle; /// 加载资源 - (void)loadSVGAPlayerWith:(NSString *)loadPath inBundle:(BOOL)inBundle loop:(int)loop; /// 开始动画【不回调didStartAnimation开始block】 - (void)startEffectSvgaPlay; /// 暂停动画 - (void)pauseEffectSvgaPlay; /// 停止动画 - (void)stopEffectSvgaPlay; /// 销毁 - (void)destroySvga; @end NS_ASSUME_NONNULL_END