Skip to content

Commit

Permalink
add missing enum
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Aug 6, 2018
1 parent 8fcdc6e commit 8d5f81a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/VideoCaching/RCTVideoCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
#import <SPTPersistentCache/SPTPersistentCacheOptions.h>
#import <CommonCrypto/CommonDigest.h>

typedef NS_ENUM(NSUInteger, RCTVideoCacheStatus) {
RCTVideoCacheStatusMissingFileExtension,
RCTVideoCacheStatusUnsupportedFileExtension,
RCTVideoCacheStatusNotAvailable,
RCTVideoCacheStatusAvailable
};

@class SPTPersistentCache;
@class SPTPersistentCacheOptions;

Expand All @@ -22,7 +29,7 @@

+ (RCTVideoCache *)sharedInstance;
- (void)storeItem:(NSData *)data forUri:(NSString *)uri withCallback:(void(^)(BOOL))handler;
- (void)getItemForUri:(NSString *)url withCallback:(void(^)(AVAsset * _Nullable)) handler;
- (void)getItemForUri:(NSString *)url withCallback:(void(^)(RCTVideoCacheStatus, AVAsset * _Nullable)) handler;
- (NSURL *)createUniqueTemporaryFileUrl:(NSString * _Nonnull)url withExtension:(NSString * _Nonnull) extension;
- (AVURLAsset *)getItemFromTemporaryStorage:(NSString *)key;
- (BOOL)saveDataToTemporaryStorage:(NSData *)data key:(NSString *)key;
Expand Down

0 comments on commit 8d5f81a

Please sign in to comment.