LocalRepository

interface LocalRepository

Author

Umang Chamaria Date: 2020/11/05

Functions

addEvent
Link copied to clipboard
abstract fun addEvent(dataPoint: DataPoint): Long
addOrUpdateAttribute
Link copied to clipboard
abstract fun addOrUpdateAttribute(attribute: MoEAttribute)
addOrUpdateDeviceAttribute
Link copied to clipboard
abstract fun addOrUpdateDeviceAttribute(deviceAttribute: DeviceAttribute)
clearCachedData
Link copied to clipboard
abstract fun clearCachedData()
Deletes all the cached events, user attributes and batched events.
clearData
Link copied to clipboard
abstract fun clearData()
clearPushTokens
Link copied to clipboard
abstract fun clearPushTokens()
deleteBatch
Link copied to clipboard
abstract fun deleteBatch(batch: BatchData): Int
deleteInteractionData
Link copied to clipboard
abstract fun deleteInteractionData(dataPoints: List<DataPoint>)
deleteUserSession
Link copied to clipboard
abstract fun deleteUserSession()
getAdTrackingStatus
Link copied to clipboard
abstract fun getAdTrackingStatus(): Int
getAppVersionCode
Link copied to clipboard
abstract fun getAppVersionCode(): Int
getAttributeByName
Link copied to clipboard
abstract fun getAttributeByName(attributeName: String): MoEAttribute?
getBaseRequest
Link copied to clipboard
abstract fun getBaseRequest(): BaseRequest
getBatchedData
Link copied to clipboard
abstract fun getBatchedData(batchSize: Int): List<BatchData>
getConfigSyncTime
Link copied to clipboard
abstract fun getConfigSyncTime(): Long
getCurrentUserId
Link copied to clipboard
abstract fun getCurrentUserId(): String
getDataPoints
Link copied to clipboard
abstract fun getDataPoints(batchSize: Int): List<DataPoint>
getDeviceAttributeByName
Link copied to clipboard
abstract fun getDeviceAttributeByName(attributeName: String): DeviceAttribute?
getDeviceInfo
Link copied to clipboard
abstract fun getDeviceInfo(): JSONObject
getDevicePreferences
Link copied to clipboard
abstract fun getDevicePreferences(): DevicePreferences
getFeatureStatus
Link copied to clipboard
abstract fun getFeatureStatus(): FeatureStatus
getGaid
Link copied to clipboard
abstract fun getGaid(): String
getInstallStatus
Link copied to clipboard
abstract fun getInstallStatus(): Boolean
getLastInAppShownTime
Link copied to clipboard
abstract fun getLastInAppShownTime(): Long
getPushService
Link copied to clipboard
abstract fun getPushService(): String
getPushTokens
Link copied to clipboard
abstract fun getPushTokens(): PushTokens
getQueryParams
Link copied to clipboard
abstract fun getQueryParams(devicePreferences: DevicePreferences, pushTokens: PushTokens, sdkConfig: SdkConfig): JSONObject
getRemoteConfiguration
Link copied to clipboard
abstract fun getRemoteConfiguration(): String?
getSdkIdentifiers
Link copied to clipboard
abstract fun getSdkIdentifiers(): SdkIdentifiers
getSegmentAnonymousId
Link copied to clipboard
abstract fun getSegmentAnonymousId(): String?
getSentScreenNames
Link copied to clipboard
abstract fun getSentScreenNames(): Set<String>?
getUserAttributeUniqueId
Link copied to clipboard
abstract fun getUserAttributeUniqueId(): String?
getUserSession
Link copied to clipboard
abstract fun getUserSession(): UserSession?
getVerificationRegistrationTime
Link copied to clipboard
abstract fun getVerificationRegistrationTime(): Long
isDebugLogEnabled
Link copied to clipboard
abstract fun isDebugLogEnabled(): Boolean
isDeviceRegistered
Link copied to clipboard
abstract fun isDeviceRegistered(): Boolean
isDeviceRegisteredForVerification
Link copied to clipboard
abstract fun isDeviceRegisteredForVerification(): Boolean
removeExpiredData
Link copied to clipboard
abstract fun removeExpiredData()
removeUserConfigurationOnLogout
Link copied to clipboard
abstract fun removeUserConfigurationOnLogout()
saveUserAttributeUniqueId
Link copied to clipboard
abstract fun saveUserAttributeUniqueId(attribute: MoEAttribute)
storeAdTrackingStatus
Link copied to clipboard
abstract fun storeAdTrackingStatus(state: Int)
storeAppVersionCode
Link copied to clipboard
abstract fun storeAppVersionCode(versionCode: Int)
storeConfigSyncTime
Link copied to clipboard
abstract fun storeConfigSyncTime(time: Long)
storeDataTrackingPreference
Link copied to clipboard
abstract fun storeDataTrackingPreference(preference: Boolean)
storeDebugLogStatus
Link copied to clipboard
abstract fun storeDebugLogStatus(state: Boolean)
storeDeviceRegistrationState
Link copied to clipboard
abstract fun storeDeviceRegistrationState(state: Boolean)
storeFeatureStatus
Link copied to clipboard
abstract fun storeFeatureStatus(featureStatus: FeatureStatus)
storeGaid
Link copied to clipboard
abstract fun storeGaid(gaid: String)
storeInAppPreference
Link copied to clipboard
abstract fun storeInAppPreference(preference: Boolean)
storeInstallStatus
Link copied to clipboard
abstract fun storeInstallStatus(status: Boolean)
storeIsDeviceRegisteredForVerification
Link copied to clipboard
abstract fun storeIsDeviceRegisteredForVerification(hasVerificationRegistered: Boolean)
storeLastInAppShownTime
Link copied to clipboard
abstract fun storeLastInAppShownTime(currentTime: Long)
storePushCampaign
Link copied to clipboard
abstract fun storePushCampaign(inboxData: InboxData): Long
storePushNotificationPreference
Link copied to clipboard
abstract fun storePushNotificationPreference(preference: Boolean)
storePushService
Link copied to clipboard
abstract fun storePushService(pushService: String)
storePushToken
Link copied to clipboard
abstract fun storePushToken(key: String, token: String)
storeRemoteConfiguration
Link copied to clipboard
abstract fun storeRemoteConfiguration(configurationString: String)
storeSegmentAnonymousId
Link copied to clipboard
abstract fun storeSegmentAnonymousId(anonymousId: String)
storeSentScreenNames
Link copied to clipboard
abstract fun storeSentScreenNames(screenNames: Set<String>)
storeUserAttributeUniqueId
Link copied to clipboard
abstract fun storeUserAttributeUniqueId(uniqueId: String)
storeUserSession
Link copied to clipboard
abstract fun storeUserSession(session: UserSession)
storeVerificationRegistrationTime
Link copied to clipboard
abstract fun storeVerificationRegistrationTime(time: Long)
updateBatch
Link copied to clipboard
abstract fun updateBatch(batchData: BatchData): Int
writeBatch
Link copied to clipboard
abstract fun writeBatch(batch: BatchData): Long

Inheritors

CoreRepository
Link copied to clipboard
LocalRepositoryImpl
Link copied to clipboard