Java Code Examples for info.metadude.android.typedpreferences.StringPreference

The following examples show how to use info.metadude.android.typedpreferences.StringPreference. These examples are extracted from open source projects. 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 Project: hawkular-android-client   Source File: Preferences.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference environment() {
    return new StringPreference(serverPreferences, Keys.BACKEND_ENVIRONMENT);
}
 
Example 2
Source Project: hawkular-android-client   Source File: Preferences.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference host() {
    return new StringPreference(serverPreferences, Keys.BACKEND_HOST);
}
 
Example 3
Source Project: hawkular-android-client   Source File: Preferences.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference url() {
    return new StringPreference(serverPreferences, Keys.BACKEND_URL);
}
 
Example 4
Source Project: hawkular-android-client   Source File: Preferences.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference username() {
    return new StringPreference(serverPreferences, Keys.BACKEND_USERNAME);
}
 
Example 5
Source Project: hawkular-android-client   Source File: Preferences.java    License: Apache License 2.0 4 votes vote down vote up
@NonNull
public StringPreference password() {
    return new StringPreference(serverPreferences, Keys.BACKEND_PASSWORD);
}
 
Example 6
Source Project: hawkular-android-client   Source File: Preferences.java    License: 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 Project: hawkular-android-client   Source File: Preferences.java    License: 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 Project: android-commons   Source File: BasePreferenceUtil.java    License: Apache License 2.0 4 votes vote down vote up
public static StringPreference stringPreference(String key) {
  return new StringPreference(prefs, key);
}
 
Example 9
Source Project: android-commons   Source File: BasePreferenceUtil.java    License: 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 Project: TypedPreferences   Source File: PreferenceHelper.java    License: Apache License 2.0 4 votes vote down vote up
PreferenceHelper(@NonNull final SharedPreferences mSharedPreferences) {
    mUserInputPreference = new StringPreference(
            mSharedPreferences, PREF_KEY_USER_INPUT);
}