Code example for Preferences

Methods: getInt

0
    public void setAskBeforeScreenshot(boolean value) {
        set("askBeforeScreenshot", value);
    } 
     
    public int getPreferredScale() { 
        return applicationPreferences.getInt("scale", 100);
    } 
 
    public void setPreferredScale(int value) {
        set("scale", value);
    } 
    public boolean isHideEmulators() { 
        return applicationPreferences.getBoolean("hideEmulators", false);
    } 
 
    public void setHideEmulators(boolean value) {
        set("hideEmulators", value);
    } 
 
    public boolean isUpsideDown() { 
        return applicationPreferences.getBoolean("upsideDown", false);