Method CloudLoadAsync
CloudLoadAsync(string, bool, Action<bool, long, string>, ProgressCallback, int)
Load from the cloud asynchronously the data of an object which was saved with a known key
Declaration
RequestHandle CloudLoadAsync(string key, bool showIssueDialog, Action<bool, long, string> callback, ProgressCallback progress = null, int timeout = 30)
Parameters
Type | Name | Description |
---|---|---|
string | key | String that uniquely identifies this instance of the type. |
bool | showIssueDialog | Whether to show issue dialogs if the request fails |
Action<bool, long, string> | callback | A callback which returns whether the operation was successful, as well as the response code and serialized string of the object if it was |
ProgressCallback | progress | Called every frame while the request is in progress with two 0-1 values indicating upload and download progress, respectively |
int | timeout | The timeout duration (in seconds) for this request |
Returns
Type | Description |
---|---|
RequestHandle | A handle to the request which can be used to cancel it |
CloudLoadAsync(string, bool, Action<bool, long, byte[]>, ProgressCallback, int)
Load from the cloud asynchronously the byte array which was saved with a known key
Declaration
RequestHandle CloudLoadAsync(string key, bool showIssueDialog, Action<bool, long, byte[]> callback, ProgressCallback progress = null, int timeout = 30)
Parameters
Type | Name | Description |
---|---|---|
string | key | String that uniquely identifies this instance of the type |
bool | showIssueDialog | Whether to show issue dialogs if the request fails |
Action<bool, long, byte[]> | callback | A callback which returns whether the operation was successful, as well as the response code and byte array if it was. If the operation failed, the byte array will contain the error string |
ProgressCallback | progress | Called every frame while the request is in progress with two 0-1 values indicating upload and download progress, respectively |
int | timeout | The timeout duration (in seconds) for this request |
Returns
Type | Description |
---|---|
RequestHandle | A handle to the request which can be used to cancel it |