Skip to content

Instantly share code, notes, and snippets.

@rossmartin
Created November 27, 2012 06:02
Show Gist options
  • Save rossmartin/4152634 to your computer and use it in GitHub Desktop.
Save rossmartin/4152634 to your computer and use it in GitHub Desktop.
/********* PhoneGapDropbox.h Cordova Plugin Header *******/
#import <Cordova/CDV.h>
#import <DropboxSDK/DropboxSDK.h>
DBRestClient *restClient; // declare REST client instance var to use file upload/download methods
NSString* restoreJavaScript = nil; // declare restoreJavaScript instance var for restore JavaScript callback
@interface PhoneGapDropbox : CDVPlugin
- (void) link:(CDVInvokedUrlCommand*)command;
- (void) checkAuth:(CDVInvokedUrlCommand*)command;
- (void) unlink:(CDVInvokedUrlCommand*)command;
- (void) upload:(CDVInvokedUrlCommand*)command;
- (void) download:(CDVInvokedUrlCommand*)command;
@property (nonatomic, retain) NSString *restoreJavaScript;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment