SVGAParser.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  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. @end