2017-08-02 14:22:48 -07:00

35 lines
705 B
Objective-C

//
// LOTAnimationCache.h
// Lottie
//
// Created by Brandon Withrow on 1/9/17.
// Copyright © 2017 Brandon Withrow. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@class LOTComposition;
@interface LOTAnimationCache : NSObject
/// Global Cache
+ (instancetype)sharedCache;
/// Adds animation to the cache
- (void)addAnimation:(LOTComposition *)animation forKey:(NSString *)key;
/// Returns animation from cache.
- (LOTComposition * _Nullable)animationForKey:(NSString *)key;
/// Removes a specific animation from the cache
- (void)removeAnimationForKey:(NSString *)key;
/// Clears Everything from the Cache
- (void)clearCache;
@end
NS_ASSUME_NONNULL_END