-
@RestrictTo(value = Scope.LIBRARY) public class CoreMetaData extends CleverTapMetaData
This class stores run time state of CleverTap's instance
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanappForegroundprivate static WeakReference<Activity>currentActivityprivate WeakReference<Activity>appInboxActivityprivate static intactivityCountprivate longappInstallTimeprivate StringcurrentScreenNameprivate intcurrentSessionIdprivate booleancurrentUserOptedOutprivate booleanfirstRequestInSessionprivate intgeofenceSDKVersionprivate booleanisBgPingprivate booleanisLocationForGeofenceprivate booleanisProductConfigRequestedprivate intlastSessionLengthprivate LocationlocationFromUserprivate booleanwebInterfaceInitializedExternallyprivate longreferrerClickTimeprivate Stringsourceprivate Stringmediumprivate Stringcampaignprivate JSONObjectwzrkParamsprivate booleanrelaxNetwork
-
Method Summary
-
-
Method Detail
-
setAppForeground
static void setAppForeground(boolean isForeground)
-
setCurrentActivity
static void setCurrentActivity(@Nullable() Activity activity)
-
setAppInboxActivity
void setAppInboxActivity(@Nullable() Activity activity)
-
getActivityCount
static int getActivityCount()
-
setActivityCount
static void setActivityCount(int count)
-
getAppInstallTime
long getAppInstallTime()
-
setAppInstallTime
void setAppInstallTime(long appInstallTime)
-
setCurrentScreenName
void setCurrentScreenName(String currentScreenName)
-
getCurrentSessionId
int getCurrentSessionId()
-
setCurrentSessionId
void setCurrentSessionId(int sessionId)
-
setCurrentUserOptedOut
void setCurrentUserOptedOut(boolean enable)
-
setFirstRequestInSession
void setFirstRequestInSession(boolean firstRequestInSession)
-
getGeofenceSDKVersion
int getGeofenceSDKVersion()
-
setGeofenceSDKVersion
void setGeofenceSDKVersion(int geofenceSDKVersion)
-
isBgPing
boolean isBgPing()
-
isLocationForGeofence
boolean isLocationForGeofence()
-
isProductConfigRequested
boolean isProductConfigRequested()
-
getLastSessionLength
int getLastSessionLength()
-
setLastSessionLength
void setLastSessionLength(int lastSessionLength)
-
getLocationFromUser
Location getLocationFromUser()
-
setLocationFromUser
void setLocationFromUser(Location locationFromUser)
-
setWebInterfaceInitializedExternally
void setWebInterfaceInitializedExternally(boolean isInitialized)
-
getReferrerClickTime
long getReferrerClickTime()
-
setReferrerClickTime
void setReferrerClickTime(long referrerClickTime)
-
getCampaign
synchronized String getCampaign()
-
setCampaign
synchronized void setCampaign(String campaign)
-
getWzrkParams
synchronized JSONObject getWzrkParams()
-
setWzrkParams
synchronized void setWzrkParams(JSONObject wzrkParams)
-
setRelaxNetwork
void setRelaxNetwork(boolean relaxNetwork)
-
getCurrentActivityName
static String getCurrentActivityName()
-
isAppForeground
static boolean isAppForeground()
-
setProductConfigRequested
void setProductConfigRequested(boolean productConfigRequested)
-
getCustomSdkVersion
int getCustomSdkVersion(String customSdkName)
-
setCustomSdkVersion
void setCustomSdkVersion(String customSdkName, int customSdkVersion)
-
getAllCustomSdkVersions
HashMap<String, Integer> getAllCustomSdkVersions()
-
getScreenName
String getScreenName()
-
inCurrentSession
boolean inCurrentSession()
-
isAppLaunchPushed
boolean isAppLaunchPushed()
-
setBgPing
void setBgPing(boolean bgPing)
-
isCurrentUserOptedOut
boolean isCurrentUserOptedOut()
-
setEnabledSystemEvents
void setEnabledSystemEvents(boolean enable)
-
getEnabledSystemEvents
boolean getEnabledSystemEvents()
-
isFirstRequestInSession
boolean isFirstRequestInSession()
-
isFirstSession
boolean isFirstSession()
-
isInstallReferrerDataSent
boolean isInstallReferrerDataSent()
-
setLocationForGeofence
void setLocationForGeofence(boolean locationForGeofence)
-
isOffline
boolean isOffline()
-
isWebInterfaceInitializedExternally
boolean isWebInterfaceInitializedExternally()
-
isRelaxNetwork
boolean isRelaxNetwork()
-
-
-
-