Method CloudSaveFileAsync
CloudSaveFileAsync(IUsesCloudStorage, string, string, bool, Action<bool, long, string>, ProgressCallback, int)
Save to the cloud asynchronously data in a file with a specified key
Declaration
public static RequestHandle CloudSaveFileAsync(this IUsesCloudStorage user, string key, string path, 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 | path | Path to the file 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 |