Skip to content

Instantly share code, notes, and snippets.

@skydoves
Created January 13, 2018 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skydoves/a356fafe0e459473807da375b68f5974 to your computer and use it in GitHub Desktop.
Save skydoves/a356fafe0e459473807da375b68f5974 to your computer and use it in GitHub Desktop.
Preference_UserProfile userProfile = Preference_UserProfile.getInstance(this);
userProfile.putNickname("my nickname"); // puts a SharedPreference in NickName key.
userProfile.getNickname(); // gets a SharedPreference value in NickName key.
userProfile.containsNickname(); // checks nickname key value is exist in SharedPreference.
userProfile.removeNickname(); // removes nickname key's value in SharedPreference.
userProfile.nicknameKeyName(); // returns nickname fields's key name.
userProfile.getEntityName(); // returns UserProfile entity's name;
userProfile.getkeyNameList(); // returns UserProfile entity's KeyName list of fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment