mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-02 02:43:07 +00:00
35 lines
705 B
Objective-C
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
|