android-components / mozilla.components.concept.engine / EngineSession / TrackingProtectionPolicy

# TrackingProtectionPolicy

`class TrackingProtectionPolicy` (source)

Represents a tracking protection policy which is a combination of tracker categories that should be blocked.

### Constructors

<init> | `TrackingProtectionPolicy(categories: Int)` Represents a tracking protection policy which is a combination of tracker categories that should be blocked.

### Properties

categories | `val categories: Int`

### Functions

contains | `fun contains(category: Int): Boolean`
equals | `fun equals(other: Any?): Boolean`
hashCode | `fun hashCode(): Int`

### Companion Object Properties

AD | `const val AD: Int`
ANALYTICS | `const val ANALYTICS: Int`
CONTENT | `const val CONTENT: Int`
SOCIAL | `const val SOCIAL: Int`
WEBFONTS | `const val WEBFONTS: Int`

### Companion Object Functions

all | `fun all(): TrackingProtectionPolicy`
none | `fun none(): TrackingProtectionPolicy`
select | `fun select(vararg categories: Int): TrackingProtectionPolicy`