-
public class SDKPrefManagerManages the shared preferences for the SDK.
-
-
Method Summary
Modifier and Type Method Description static voidregister(Context context)Registers the shared preferences with the given context. static voidsetIsMainHistoryLoadingForFirstTime(boolean readyToSendSubscribe)Sets whether the main history is loading for the first time. static booleangetIsMainHistoryLoadingForFirstTime()Checks if the main history is loading for the first time. static voidsetLastOnlineTime(long lastOnlineTime)Sets the last online time. static longgetLastOnlineTime()Retrieves the last online time. -
-
Method Detail
-
register
static void register(Context context)
Registers the shared preferences with the given context.
- Parameters:
context- The context to use for accessing shared preferences.
-
setIsMainHistoryLoadingForFirstTime
static void setIsMainHistoryLoadingForFirstTime(boolean readyToSendSubscribe)
Sets whether the main history is loading for the first time.
- Parameters:
readyToSendSubscribe- True if ready to send subscribe, false otherwise.
-
getIsMainHistoryLoadingForFirstTime
static boolean getIsMainHistoryLoadingForFirstTime()
Checks if the main history is loading for the first time.
-
setLastOnlineTime
static void setLastOnlineTime(long lastOnlineTime)
Sets the last online time.
- Parameters:
lastOnlineTime- The last online time to set.
-
getLastOnlineTime
static long getLastOnlineTime()
Retrieves the last online time.
-
-
-
-