SVGAParser.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // SVGAParser.h
  3. // SVGAPlayer
  4. //
  5. // Created by 崔明辉 on 16/6/17.
  6. // Copyright © 2016年 UED Center. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @class SVGAVideoEntity;
  10. @interface SVGAParser : NSObject
  11. @property (nonatomic, assign) BOOL enabledMemoryCache;
  12. - (void)parseWithURL:(nonnull NSURL *)URL
  13. completionBlock:(void ( ^ _Nonnull )(SVGAVideoEntity * _Nullable videoItem))completionBlock
  14. failureBlock:(void ( ^ _Nullable)(NSError * _Nullable error))failureBlock;
  15. - (void)parseWithURLRequest:(nonnull NSURLRequest *)URLRequest
  16. completionBlock:(void ( ^ _Nonnull )(SVGAVideoEntity * _Nullable videoItem))completionBlock
  17. failureBlock:(void ( ^ _Nullable)(NSError * _Nullable error))failureBlock;
  18. - (void)parseWithData:(nonnull NSData *)data
  19. cacheKey:(nonnull NSString *)cacheKey
  20. completionBlock:(void ( ^ _Nullable)(SVGAVideoEntity * _Nonnull videoItem))completionBlock
  21. failureBlock:(void ( ^ _Nullable)(NSError * _Nonnull error))failureBlock;
  22. - (void)parseWithNamed:(nonnull NSString *)named
  23. inBundle:(nullable NSBundle *)inBundle
  24. completionBlock:(void ( ^ _Nullable)(SVGAVideoEntity * _Nonnull videoItem))completionBlock
  25. failureBlock:(void ( ^ _Nullable)(NSError * _Nonnull error))failureBlock;
  26. - (NSString * _Nullable)MD5String:(nonnull NSString * )str;
  27. /** 下载SVGAData
  28. *
  29. */
  30. - (void)downloadSVGADataWithURLString:(nonnull NSString *)URLString;
  31. - (void)clearLocalSVGADataCacheWithURLString:(nonnull NSString *)URLString;
  32. @end