Method Save
Save(string, ISerializableData, Action, Action)
Asynchronously saves data onto the persistence layer. When the async save operation is done, onFinish Action get called.
Declaration
void Save(string identifier, ISerializableData content, Action onSaveCompleted = null, Action onSaveFailed = null)
Parameters
Type | Name | Description |
---|---|---|
string | identifier | Identifier of the persistence entry (filename, url, ...) |
ISerializableData | content | Data to persist (need to be serializable) |
Action | onSaveCompleted | Called when the saving is completed with success |
Action | onSaveFailed | Called when the loading failed |