public class AndroidPlayerData extends PlayerData
PlayerData| Constructor and Description |
|---|
AndroidPlayerData() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ensureDataDirectoryExists()
Internal method for setting up the save data directory (if required)
|
FileHandle |
resolve(java.lang.String[] filepath)
Returns a
FileHandle for a file or directory within the save data directory |
FileHandle |
resolveTmp(java.lang.String[] filepath)
Returns a
FileHandle for a temporary file or directory within the save data directory |
void |
wipe()
Wipes all data within the game data location
|
createDirectory, delete, ensureDirectoryExistsForFile, getFileHandle, hasDirectory, hasFile, readBytes, readJson, readString, readXml, writeBytes, writeJson, writeString, writeXmlpublic FileHandle resolve(java.lang.String[] filepath)
PlayerDataFileHandle for a file or directory within the save data directoryresolve in class PlayerDatafilepath - The path broken up by directory/fileFileHandle instancepublic FileHandle resolveTmp(java.lang.String[] filepath)
PlayerDataFileHandle for a temporary file or directory within the save data directoryresolveTmp in class PlayerDatafilepath - The path broken up by directory/fileFileHandle instanceprotected void ensureDataDirectoryExists()
throws java.io.IOException
PlayerDataensureDataDirectoryExists in class PlayerDatajava.io.IOExceptionpublic void wipe()
throws PlayerDataException,
java.io.IOException
PlayerDatawipe in class PlayerDataPlayerDataException - Thrown if the game data location cannot be accessed or the
data could not be wipedjava.io.IOException