public class

PreferenceManager

extends Object
java.lang.Object
   ↳ com.mapsted.template_core.managers.PreferenceManager

Summary

Public Methods
void addFacebookTokenId(String facebookTokenId)
Adds Facebook's token id to the shared preferences to fetch it later for easy login
void addGoogleTokenId(String googleTokenId)
Adds Google's token id to the shared preferences to fetch it later for easy login
void addMapstedIdPostLogin(String mapstedId)
String getFacebookTokenId()
Gets Facebook Token Id from the shared preferences to enable easy login
String getGoogleTokenId()
Gets Google Token Id from the shared preferences to enable easy login
synchronized static PreferenceManager getInstance(Context context)
String getMapstedId()
UserProfile getUserProfile()
void storeUserProfile(UserProfile userProfile)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public void addFacebookTokenId (String facebookTokenId)

Adds Facebook's token id to the shared preferences to fetch it later for easy login

Parameters
facebookTokenId String value for facebook token id

public void addGoogleTokenId (String googleTokenId)

Adds Google's token id to the shared preferences to fetch it later for easy login

Parameters
googleTokenId String value for google token id

public void addMapstedIdPostLogin (String mapstedId)

public String getFacebookTokenId ()

Gets Facebook Token Id from the shared preferences to enable easy login

Returns
  • String

public String getGoogleTokenId ()

Gets Google Token Id from the shared preferences to enable easy login

Returns
  • String

public static synchronized PreferenceManager getInstance (Context context)

public String getMapstedId ()

public UserProfile getUserProfile ()

public void storeUserProfile (UserProfile userProfile)