Interface IFilesService
Namespace: Unity.Services.CloudSave.Internal
Assembly: solution.dll
Syntax
public interface IFilesService
Properties
Name | Description |
---|---|
Player |
Methods
Name | Description |
---|---|
DeleteAsync(string, DeleteOptions) | Delete a player-scoped file form the Cloud Save service. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened. |
GetMetadataAsync(string) | Returns the metadata of a file stored in Cloud Save for the logged in player. Throws a CloudSaveException with a reason code and explanation of what happened. |
ListAllAsync() | Returns all player-scoped files stored in Cloud Save for the logged in player. Throws a CloudSaveException with a reason code and explanation of what happened. This method includes pagination. |
LoadBytesAsync(string) | Upload a player-scoped file to the Cloud Save service, overwriting if the file already exists. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened. |
LoadStreamAsync(string) | Upload a player-scoped file to the Cloud Save service, overwriting if the file already exists. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened. |
SaveAsync(string, byte[], SaveOptions) | Upload a player-scoped file to the Cloud Save service, overwriting if the file already exists. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened. |
SaveAsync(string, Stream, SaveOptions) | Upload a player-scoped file to the Cloud Save service, overwriting if the file already exists. File name can only contain alphanumeric characters, dashes, and underscores and be up to a length of 255 characters. Throws a CloudSaveException with a reason code and explanation of what happened. |