TrackingOptOutConfig

class TrackingOptOutConfig(isCarrierTrackingEnabled: Boolean, isDeviceAttributeTrackingEnabled: Boolean, optOutActivities: Set<Class<*>>?)

Create an instance of the tracking opt-out.

Since

11.0.00

Parameters

isGaidTrackingEnabled

true if you want the SDK to track Google Advertising Identifier, else false.

isCarrierTrackingEnabled

true if you want the SDK to track the Carrier Name else false.

isDeviceAttributeTrackingEnabled

true if you want the SDK to track the device attributes, else false.

Constructors

TrackingOptOutConfig
Link copied to clipboard
fun TrackingOptOutConfig(isCarrierTrackingEnabled: Boolean, isDeviceAttributeTrackingEnabled: Boolean)
TrackingOptOutConfig
Link copied to clipboard
fun TrackingOptOutConfig(isCarrierTrackingEnabled: Boolean, isDeviceAttributeTrackingEnabled: Boolean, optOutActivities: Set<Class<*>>?)

Types

Companion
Link copied to clipboard
object Companion

Functions

addActivities
Link copied to clipboard
fun addActivities(clazzSet: Set<Class<*>>)

Add Set of Activity Class to the opt-out list.

addActivity
Link copied to clipboard
fun addActivity(clazz: Class<*>)

Add Activity Class to the opt-out list.

getOptedOutActivities
Link copied to clipboard
fun getOptedOutActivities(): Set<String>
toString
Link copied to clipboard
open override fun toString(): String

Properties

isCarrierTrackingEnabled
Link copied to clipboard
val isCarrierTrackingEnabled: Boolean

If false the Mobile Carrier name would not be tracked by the SDK, default value true.

isDeviceAttributeTrackingEnabled
Link copied to clipboard
val isDeviceAttributeTrackingEnabled: Boolean

If false device attributes like Product name, Model Name, Height Width, etc are not tracked, default value true.

optOutActivities
Link copied to clipboard
val optOutActivities: Set<Class<*>>?

Set of Activity Class objects to be excluded from tracking, default value empty set.