2015-07-08 23:15:06 -04:00
|
|
|
package com.virtualapplications.play;
|
|
|
|
|
|
|
|
public class SettingsManager
|
|
|
|
{
|
2017-07-05 10:17:37 -04:00
|
|
|
static
|
2015-07-08 23:15:06 -04:00
|
|
|
{
|
2017-05-28 16:24:26 -04:00
|
|
|
System.loadLibrary("Play");
|
2015-07-08 23:15:06 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public static native void save();
|
2017-07-05 10:17:37 -04:00
|
|
|
|
2015-07-08 23:15:06 -04:00
|
|
|
public static native void registerPreferenceBoolean(String name, boolean defaultValue);
|
2017-07-05 10:17:37 -04:00
|
|
|
|
2015-07-08 23:15:06 -04:00
|
|
|
public static native boolean getPreferenceBoolean(String name);
|
2017-07-05 10:17:37 -04:00
|
|
|
|
2015-07-08 23:15:06 -04:00
|
|
|
public static native void setPreferenceBoolean(String name, boolean value);
|
2019-03-29 11:28:56 +00:00
|
|
|
|
|
|
|
public static native int getPreferenceInteger(String name);
|
|
|
|
|
|
|
|
public static native void setPreferenceInteger(String name, int value);
|
2015-07-08 23:15:06 -04:00
|
|
|
}
|