结构调整
This commit is contained in:
39
QXLive/Room(房间)/View/礼物特效/QXEffectSvgaView.h
Executable file
39
QXLive/Room(房间)/View/礼物特效/QXEffectSvgaView.h
Executable file
@@ -0,0 +1,39 @@
|
||||
//
|
||||
// SREffectSvgaView.h
|
||||
// SoundRiver
|
||||
//
|
||||
// Created by 段智博 on 2020/10/26.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user