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)
|
boolean |
isDataStorageConnected()
Returns if the player data storage is connected
|
boolean |
isDataStorageFull()
Returns if the player data storage is full
|
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 boolean isDataStorageFull()
throws java.lang.Exception
PlayerDataisDataStorageFull in class PlayerDatajava.lang.Exception - Thrown if storage cannot be accessedpublic boolean isDataStorageConnected()
PlayerDataisDataStorageConnected in class PlayerDatapublic 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