Method CloudSaveAsync
CloudSaveAsync(IUsesCloudStorage, string, string, bool, Action<bool, long, string>, ProgressCallback, int)
Save to the cloud asynchronously the data of an object with a specified key
Declaration
public static RequestHandle CloudSaveAsync(this IUsesCloudStorage user, string key, string serializedObject, bool showIssueDialog, Action<bool, long, string> callback = null, ProgressCallback progress = null, int timeout = 30)
Parameters
Type | Name | Description |
---|---|---|
IUsesCloudStorage | user | The functionality user |
string | key | String that uniquely identifies this instance of the type. |
string | serializedObject | String serialization of the object being saved. |
bool | showIssueDialog | Whether to show issue dialogs if the request fails |
Action<bool, long, string> | callback | A callback when the asynchronous call is done to show whether it was successful, with the response code and 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 |
CloudSaveAsync(IUsesCloudStorage, string, byte[], bool, Action<bool, long, string>, ProgressCallback, int)
Save to the cloud asynchronously data in a byte array with a specified key
Declaration
public static RequestHandle CloudSaveAsync(this IUsesCloudStorage user, string key, byte[] bytes, bool showIssueDialog, Action<bool, long, string> callback = null, ProgressCallback progress = null, int timeout = 30)
Parameters
Type | Name | Description |
---|---|---|
IUsesCloudStorage | user | The functionality user |
string | key | String that uniquely identifies this instance of the type. |
byte[] | bytes | Bytes array of the object being saved |
bool | showIssueDialog | Whether to show issue dialogs if the request fails |
Action<bool, long, string> | callback | A callback when the asynchronous call is done to show whether it was successful, with the response code and 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 |