CURRENT_USER_KEY
Constructor and Description |
---|
SharedPrefsUserStore(android.content.Context context) |
Modifier and Type | Method and Description |
---|---|
Collection<SyncUser> |
allUsers()
Returns a collection of all users saved in the User store.
|
void |
clear()
Removes all saved users.
|
SyncUser |
get(String key)
Retrieves the
SyncUser with the given key. |
SyncUser |
put(String key,
SyncUser user)
Saves a
SyncUser object under the given key. |
SyncUser |
remove(String key)
Removes the user with the given key from the store.
|
public SharedPrefsUserStore(android.content.Context context)
public SyncUser put(String key, SyncUser user)
SyncUser
object under the given key. If another user already exists, it will be replaced.public Collection<SyncUser> allUsers()