Package io.didomi.sdk.user
Class UserRepository
-
- All Implemented Interfaces:
@Singleton() public final class UserRepository
-
-
Field Summary
Fields Modifier and Type Field Description private StringuserIdprivate final StringuserIdTypeprivate final SharedPreferencessharedPreferences
-
Constructor Summary
Constructors Constructor Description UserRepository(SharedPreferences sharedPreferences)
-
Method Summary
Modifier and Type Method Description final StringgetUserId()User ID final UnitsetUserId(String userId)User ID final StringgetUserIdType()Type of user ID final SharedPreferencesgetSharedPreferences()final StringresetUserId()Reset the user ID This only works if the user ID is a UUID stored on the device. -
-
Method Detail
-
getUserIdType
final String getUserIdType()
Type of user ID
-
getSharedPreferences
final SharedPreferences getSharedPreferences()
-
resetUserId
final String resetUserId()
Reset the user ID This only works if the user ID is a UUID stored on the device.
-
-
-
-