13785a2438
* Source for OS X uploader * Readme for OS X uploader * Export image * .gitignore for Xcode project * Remove redundant data * Update readme instructions * List formatting * Remove personal copyright notice added by Xcode * Added release build and updated readme * point to doc cdn
22 lines
571 B
Objective-C
22 lines
571 B
Objective-C
#import <Foundation/Foundation.h>
|
|
|
|
@class Uploader;
|
|
|
|
@protocol UploaderDelegate <NSObject>
|
|
|
|
- (void)uploader:(Uploader*)uploader transferredFile:(NSString*)file toMicroBit:(NSString*)microbit;
|
|
- (void)uploader:(Uploader*)uploader failedToTransferFile:(NSString*)file toMicroBit:(NSString*)microbit;
|
|
|
|
@end
|
|
|
|
@interface Uploader : NSObject
|
|
|
|
@property id<UploaderDelegate> delegate;
|
|
|
|
- (BOOL)shouldUploadFileAtPath:(NSString*)path;
|
|
- (NSArray<NSString*>*)microBitPaths;
|
|
- (void)uploadFile:(NSString*)file;
|
|
- (void)uploadFile:(NSString*)file toMicroBit:(NSString*)path;
|
|
|
|
@end
|