info.metadude.android.typedpreferences.StringPreference Java Examples

The following examples show how to use info.metadude.android.typedpreferences.StringPreference. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference environment() {
    return new StringPreference(serverPreferences, Keys.BACKEND_ENVIRONMENT);
}
 
Example #2
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference host() {
    return new StringPreference(serverPreferences, Keys.BACKEND_HOST);
}
 
Example #3
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference url() {
    return new StringPreference(serverPreferences, Keys.BACKEND_URL);
}
 
Example #4
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference username() {
    return new StringPreference(serverPreferences, Keys.BACKEND_USERNAME);
}
 
Example #5
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference password() {
    return new StringPreference(serverPreferences, Keys.BACKEND_PASSWORD);
}
 
Example #6
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference personaId() {
    return new StringPreference(serverPreferences, Keys.BACKEND_PERSONA_ID);
}
 
Example #7
Source File: Preferences.java    From hawkular-android-client with Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference personaName() {
    return new StringPreference(serverPreferences, Keys.BACKEND_PERSONA_NAME);
}
 
Example #8
Source File: BasePreferenceUtil.java    From android-commons with Apache License 2.0 4 votes vote down vote up
public static StringPreference stringPreference(String key) {
  return new StringPreference(prefs, key);
}
 
Example #9
Source File: BasePreferenceUtil.java    From android-commons with Apache License 2.0 4 votes vote down vote up
public static StringPreference stringPreference(String key, String defaultValue) {
  return new StringPreference(prefs, key, defaultValue);
}
 
Example #10
Source File: PreferenceHelper.java    From TypedPreferences with Apache License 2.0 4 votes vote down vote up
PreferenceHelper(@NonNull final SharedPreferences mSharedPreferences) {
    mUserInputPreference = new StringPreference(
            mSharedPreferences, PREF_KEY_USER_INPUT);
}