-
public class CommonStorageManager
-
-
Constructor Summary
Constructors Constructor Description CommonStorageManager(Context context, String name)
-
Method Summary
Modifier and Type Method Description StringgetLoginId(boolean enableTrackOldData, Context context)voidsaveLoginId(String loginId)voidclearLoginId()Clearing an Account ID voidlogout(boolean enableTrackOldData, Context context)Clearing an Account ID StringgetIdentifyId()voidsetIdentifyId(String identify)voidclearIdentify()clear identify id booleangetEnableFlag()Gets the send pause status switch voidsaveEnableFlag(boolean flag)Save the switch of sending pause status booleangetOptOutFlag()Gets the send stop status switch voidsaveOptOutFlag(boolean flag)Save the switch of sending stop status booleangetPausePostFlag()Gets the saveOnly status switch voidsavePausePostFlag(boolean flag)save the saveOnly status switch JSONObjectgetSuperProperties()Gets the static public property voidsetSuperProperties(JSONObject superProperties, TimeZone timeZone)Save static public properties voidunsetSuperProperty(String superPropertyName)Cancels a public property voidclearSuperProperties()voidsaveSessionIndex(int index)intgetSessionIndex()-
-
Constructor Detail
-
CommonStorageManager
CommonStorageManager(Context context, String name)
-
-
Method Detail
-
getLoginId
String getLoginId(boolean enableTrackOldData, Context context)
- Parameters:
enableTrackOldData- enable track old datacontext- context
-
saveLoginId
void saveLoginId(String loginId)
- Parameters:
loginId- save loginId
-
clearLoginId
void clearLoginId()
Clearing an Account ID
-
logout
void logout(boolean enableTrackOldData, Context context)
Clearing an Account ID
- Parameters:
enableTrackOldData- enable track old datacontext- context
-
getIdentifyId
String getIdentifyId()
-
setIdentifyId
void setIdentifyId(String identify)
- Parameters:
identify- save identify id
-
clearIdentify
void clearIdentify()
clear identify id
-
getEnableFlag
boolean getEnableFlag()
Gets the send pause status switch
-
saveEnableFlag
void saveEnableFlag(boolean flag)
Save the switch of sending pause status
- Parameters:
flag- sending status
-
getOptOutFlag
boolean getOptOutFlag()
Gets the send stop status switch
-
saveOptOutFlag
void saveOptOutFlag(boolean flag)
Save the switch of sending stop status
- Parameters:
flag- switch of opt_out
-
getPausePostFlag
boolean getPausePostFlag()
Gets the saveOnly status switch
-
savePausePostFlag
void savePausePostFlag(boolean flag)
save the saveOnly status switch
- Parameters:
flag- switch of pause post
-
getSuperProperties
JSONObject getSuperProperties()
Gets the static public property
-
setSuperProperties
void setSuperProperties(JSONObject superProperties, TimeZone timeZone)
Save static public properties
- Parameters:
superProperties- super propertiestimeZone- time zone
-
unsetSuperProperty
void unsetSuperProperty(String superPropertyName)
Cancels a public property
- Parameters:
superPropertyName- property name
-
clearSuperProperties
void clearSuperProperties()
-
saveSessionIndex
void saveSessionIndex(int index)
-
getSessionIndex
int getSessionIndex()
-
-
-
-