com.badlogic.gdx.backends.android
Class AndroidPreferences

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidPreferences
All Implemented Interfaces:
Preferences

public class AndroidPreferences
extends Object
implements Preferences


Constructor Summary
AndroidPreferences(android.content.SharedPreferences preferences)
           
 
Method Summary
 void clear()
           
 boolean contains(String key)
           
 void flush()
           
 Map<String,?> get()
           
 boolean getBoolean(String key)
           
 boolean getBoolean(String key, boolean defValue)
           
 float getFloat(String key)
           
 float getFloat(String key, float defValue)
           
 int getInteger(String key)
           
 int getInteger(String key, int defValue)
           
 long getLong(String key)
           
 long getLong(String key, long defValue)
           
 String getString(String key)
           
 String getString(String key, String defValue)
           
 void put(Map<String,?> vals)
           
 void putBoolean(String key, boolean val)
           
 void putFloat(String key, float val)
           
 void putInteger(String key, int val)
           
 void putLong(String key, long val)
           
 void putString(String key, String val)
           
 void remove(String key)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidPreferences

public AndroidPreferences(android.content.SharedPreferences preferences)
Method Detail

putBoolean

public void putBoolean(String key,
                       boolean val)
Specified by:
putBoolean in interface Preferences

putInteger

public void putInteger(String key,
                       int val)
Specified by:
putInteger in interface Preferences

putLong

public void putLong(String key,
                    long val)
Specified by:
putLong in interface Preferences

putFloat

public void putFloat(String key,
                     float val)
Specified by:
putFloat in interface Preferences

putString

public void putString(String key,
                      String val)
Specified by:
putString in interface Preferences

put

public void put(Map<String,?> vals)
Specified by:
put in interface Preferences

getBoolean

public boolean getBoolean(String key)
Specified by:
getBoolean in interface Preferences

getInteger

public int getInteger(String key)
Specified by:
getInteger in interface Preferences

getLong

public long getLong(String key)
Specified by:
getLong in interface Preferences

getFloat

public float getFloat(String key)
Specified by:
getFloat in interface Preferences

getString

public String getString(String key)
Specified by:
getString in interface Preferences

getBoolean

public boolean getBoolean(String key,
                          boolean defValue)
Specified by:
getBoolean in interface Preferences

getInteger

public int getInteger(String key,
                      int defValue)
Specified by:
getInteger in interface Preferences

getLong

public long getLong(String key,
                    long defValue)
Specified by:
getLong in interface Preferences

getFloat

public float getFloat(String key,
                      float defValue)
Specified by:
getFloat in interface Preferences

getString

public String getString(String key,
                        String defValue)
Specified by:
getString in interface Preferences

get

public Map<String,?> get()
Specified by:
get in interface Preferences

contains

public boolean contains(String key)
Specified by:
contains in interface Preferences

clear

public void clear()
Specified by:
clear in interface Preferences

flush

public void flush()
Specified by:
flush in interface Preferences

remove

public void remove(String key)
Specified by:
remove in interface Preferences


Copyright © 2014. All Rights Reserved.