#import <OFCloudStorage.h>
Static Public Member Functions | |
(void) | + setDelegate: |
(OFRequestHandle *) | + upload:withKey: |
(OFRequestHandle *) | + downloadKeysForCurrentUser |
(OFRequestHandle *) | + downloadDataWithKey: |
The public interface for OFCloudStorage allows you to upload and download data from the Open Feint server. Data is associated uniquely in 3 fields
. This allows you to have static keys for your data in your application across all users (ex. static NSString* saveGameDataKey = "SaveGameData")
+ (OFRequestHandle*) downloadDataWithKey: | (NSString *) | key |
Downloads the data associated with the key stored on the server and returns it to the OFCloudStorageDelegate that is set.
+ (OFRequestHandle*) downloadKeysForCurrentUser |
Gets all cloud storage keys on the Open Feint server for this user.
+ (void) setDelegate: | (id< OFCloudStorageDelegate >) | delegate |
Set a delegate for all OFCloudStorage related actions. Must adopt the OFCloudStorageDelegate protocol.
+ (OFRequestHandle*) upload: | (NSData *) | data | |
withKey: | (NSString *) | key | |
Uploads the data to the OpenFeint Server and associates it with the key.
data | The data to upload to the server |
key | The key to associate with the data |