Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.
/ trove Public archive

A "magical" iOS framework that provides an intelligent, transparent local cache of rich media web assets.

License

Notifications You must be signed in to change notification settings

npr/trove

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trove

Trove is an iOS framework that provides an intelligent, transparent local cache of rich media web assets. You know, for those precious offline moments when users don't have Internet connectivity but just can't stop using your app.

Requirements

  • Foundation.framework
  • Trove.framework
  • Reachability.h (included in the example project and found here)

Usage

Cache a media asset

NSString *sampleURL = @"http://foo.org/fooBar.mp4";
[[Trove sharedInstance] cacheAsset:[NSURL URLWithString:sampleURL]];

Retrieve a media asset

This method will return the locally stored file URL, if it is not in the cache directory, the original asset URL will be returned.

NSString *sampleURL = @"http://foo.org/fooBar.mp4";
[[Trove sharedInstance] assetURL:[NSURL URLWithString:sampleURL]];

Optional delegate methods

- (void)assetDownloadSuccessful:(NSURL*)assetPath;
- (void)assetDownloadFailed:(NSError*)error;

Credits

Trove was developed by Michael Seifollahi and Mikhail Sinanan. Nifty name "Trove" by Irakli Nadareishvili.

Contact

Follow NPR Tech on Twitter (@NPRTechTeam)

Maintainers

License

Code is licensed under MIT License Terms.

About

A "magical" iOS framework that provides an intelligent, transparent local cache of rich media web assets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published