// // SVGAParser.h // SVGAPlayer // // Created by 崔明辉 on 16/6/17. // Copyright © 2016年 UED Center. All rights reserved. // #import @class SVGAVideoEntity; @interface SVGAParser : NSObject @property (nonatomic, assign) BOOL enabledMemoryCache; - (void)parseWithURL:(nonnull NSURL *)URL completionBlock:(void ( ^ _Nonnull )(SVGAVideoEntity * _Nullable videoItem))completionBlock failureBlock:(void ( ^ _Nullable)(NSError * _Nullable error))failureBlock; - (void)parseWithURLRequest:(nonnull NSURLRequest *)URLRequest completionBlock:(void ( ^ _Nonnull )(SVGAVideoEntity * _Nullable videoItem))completionBlock failureBlock:(void ( ^ _Nullable)(NSError * _Nullable error))failureBlock; - (void)parseWithData:(nonnull NSData *)data cacheKey:(nonnull NSString *)cacheKey completionBlock:(void ( ^ _Nullable)(SVGAVideoEntity * _Nonnull videoItem))completionBlock failureBlock:(void ( ^ _Nullable)(NSError * _Nonnull error))failureBlock; - (void)parseWithNamed:(nonnull NSString *)named inBundle:(nullable NSBundle *)inBundle completionBlock:(void ( ^ _Nullable)(SVGAVideoEntity * _Nonnull videoItem))completionBlock failureBlock:(void ( ^ _Nullable)(NSError * _Nonnull error))failureBlock; - (NSString * _Nullable)MD5String:(nonnull NSString * )str; /** 下载SVGAData * */ - (void)downloadSVGADataWithURLString:(nonnull NSString *)URLString; - (void)clearLocalSVGADataCacheWithURLString:(nonnull NSString *)URLString; @end