Provides an Eye-Fi server for objective-c applications
-
To add the library to your project with CocoaPods, add this line to your Podfile:
pod 'CWEyeFiServer', :git => 'https://github.com/codewhisper/eye-fi-server.git'
-
Import CWEyeFiServer.h, create server object and start. Make sure to add your own upload key, usually you can find it in ~/Library/Eye-Fi/Settings.xml
#import "CWEyeFiServer.h" [...] CWEyeFiServer *_eyeFiServer = [[CWEyeFiServer alloc] initWithUploadKey:@"112233"]; NSError *error; [_eyeFiServer start:&error];
-
Add observer for file updates notifications
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(fileStatusNotification:) name:CWNotificationFileStatus object:nil];
- Check the Example directory for a working example
The code was heavily influenced by PhotoPad, thanks!