1234567891011121314151617181920212223242526272829303132 |
- //
- // VIMediaCacheWorker.h
- // VIMediaCacheDemo
- //
- // Created by Vito on 4/21/16.
- // Copyright © 2016 Vito. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "VICacheConfiguration.h"
- @class VICacheAction;
- @interface VIMediaCacheWorker : NSObject
- - (instancetype)initWithURL:(NSURL *)url;
- @property (nonatomic, strong, readonly) VICacheConfiguration *cacheConfiguration;
- @property (nonatomic, strong, readonly) NSError *setupError; // Create fileHandler error, can't save/use cache
- - (void)cacheData:(NSData *)data forRange:(NSRange)range error:(NSError **)error;
- - (NSArray<VICacheAction *> *)cachedDataActionsForRange:(NSRange)range;
- - (NSData *)cachedDataForRange:(NSRange)range error:(NSError **)error;
- - (void)setContentInfo:(VIContentInfo *)contentInfo error:(NSError **)error;
- - (void)save;
- - (void)startWritting;
- - (void)finishWritting;
- @end
|