Objective-C Client Reference
Class PIOGameFS
Language: Objective-C
The Player.IO GameFS service.
Methods | |||
---|---|---|---|
- (void) |
|
||
- (void) |
|
||
- (NSString*) |
|
||
- (NSString*) |
|
downloadPath:toFile:useSecureHttp:timeout:progressBlock:successBlock:errorBlock:
Download a GameFS file to disk, using the default shared NSUrlCache. An application with more specific needs can create a custom NSURLCache object and set it as the shared cache instance using [NSUrlCache setSharedURLCache:]. The application should do so before any calls to this method.
Arguments
NSString* | path |
NSString* | filePath |
bool | useSecureHttp |
NSTimeInterval | timeout |
void(^)(floatprogress) | progressBlock |
void(^)(NSString*filePath) | successBlock |
void(^)(PIOError*error) | errorBlock |
downloadPath:useSecureHttp:timeout:progressBlock:successBlock:errorBlock:
Download a GameFS file, using the default shared NSUrlCache. An application with more specific needs can create a custom NSURLCache object and set it as the shared cache instance using [NSUrlCache setSharedURLCache:]. The application should do so before any calls to this method.
Arguments
NSString* | path |
bool | useSecureHttp |
NSTimeInterval | timeout |
void(^)(floatprogress) | progressBlock |
void(^)(NSData*data) | successBlock |
void(^)(PIOError*error) | errorBlock |
getUrlWithPath:
Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.
Arguments
NSString* | path |
Return Value
NSString* | An url that can be used to download the resource over the internet. |
getUrlWithPath:useSecureHttp:
Converts a GameFS path (like '/mygame.swf') into a full url, that can be downloaded over the internet. Important! Do not save or otherwise persist (bigdb, cookies, etc) the returned url, since the url will change over time.
Arguments
NSString* | path |
bool | useSecureHttp |
Return Value
NSString* | An url that can be used to download the resource over the internet. |