12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- //
- // SVGAParser.h
- // SVGAPlayer
- //
- // Created by 崔明辉 on 16/6/17.
- // Copyright © 2016年 UED Center. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @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
|