Skip to main content

Connected TV

The OptSens SDK runs on connected TV with no separate package. It detects the TV at runtime and switches the banner to a centered, large-screen layout with D-pad focus. Consent recording, the TC/AC strings and the IAB keys are identical to phone; only the layout and navigation change.

Supported: Apple TV (tvOS), Android TV / Google TV, Fire TV.

Packaging

Declare leanback support so one build installs on both phone and TV:

<uses-feature android:name="android.hardware.touchscreen" android:required="false" />
<uses-feature android:name="android.software.leanback" android:required="false" />

The floating button is not shown on TV. Place a re-consent entry in your own menu, reachable with the remote, and open the geo-aware preference path from it:

OptSensBanner.showPreferences(activity)

Do not use a QR-code-to-phone handoff for withdrawal. Consent given on the device must be withdrawable on the device.

What TV changes

  • The banner is one centered modal with safe-area padding; corner and bar layouts collapse to it.
  • Arrow keys move focus; the OK button activates the selection.
  • D-pad focus starts on the banner's controls, so the remote does not land on a long vendor list.
  • On TV, both IAB TCF and IAB GPP keys are written for connected-TV signaling.