Package org. cleaninsights. sdk
Types
Link copied to clipboard
data class Campaign( val start: Calendar, val end: Calendar, val aggregationPeriodLength: Long, val numberOfPeriods: Int = 1, val onlyRecordOnce: Boolean = false, val eventAggregationRule: EventAggregationRule = EventAggregationRule.Sum, val strengthenAnonymity: Boolean = false)
Content copied to clipboard
Link copied to clipboard
class CampaignConsent(val campaignId: String, consent: Consent) : Consent
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class Configuration( val server: URL, val siteId: Int, val campaigns: Map<String, Campaign>, val timeout: Double = 5.0, val maxRetryDelay: Double = 3600.0, val maxAgeOfOldData: Int = 100, val persistEveryNTimes: Int = 10, val serverSideAnonymousUsage: Boolean = false, val debug: Boolean = false)
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Used for Java interop.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract class JavaStore @JvmOverloads constructor(args: Map<String, Any> = HashMap(), debug: DebugHandler? = null) : Store
Content copied to clipboard
The store holds the user's consents to the different Feature
s and Campaign
s, and their Visit
and Event
measurements.
Functions
Link copied to clipboard
fun CleanInsights.Companion.autoTrack( context: Context, server: URL, siteId: Int, campaigns: Map<String, Campaign>? = null): CleanInsights
Content copied to clipboard
Instantiates a singleton CleanInsights
object with a default configuration and a default campaign named "visits" which never expires.