> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kontext.so/llms.txt
> Use this file to discover all available pages before exploring further.

# Who the viewer is

> Tell the SDK what you know about the viewer: user, consent, and what never to send.

Set what you know on `KontextVideo`; the next request carries it:

```kotlin theme={null}
KontextVideo.user = User { id = "user-1234"; keywords = listOf("romance", "drama") }
KontextVideo.variantId = "B"     // for A/B tests agreed with Kontext
```

> [!NOTE]
>
> Consent is read for you: on every request the SDK reads the IAB keys your consent platform writes to the default `SharedPreferences` (TCF, GPP, US Privacy). Only when the SDK cannot detect a signal, because your app has no such platform or keeps a signal elsewhere, set it yourself. A value your consent platform wrote still wins.
>
> ```kotlin theme={null}
> KontextVideo.regulatory = Regulatory {
>     gdpr = true
>     gdprConsent = "<TCF string>"
>     usPrivacy = "1YNN"
>     coppa = false
> }
> ```
>
> See [TCF & CMP](https://docs.kontext.so/video/guides/tcf-cmp.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.