Skip to content

Android TV Integration

TrueX Ad Renderer for Android provides native Android integration for Android TV and mobile devices.

Overview

The TrueX Android integration supports both Android TV (CTV) and mobile Android devices using native Android SDKs.

Platform Support

  • Android TV devices
  • Google TV
  • Fire TV (Android-based apps)
  • Android mobile phones and tablets

Documentation

For complete integration documentation, please refer to:

Quick Start

gradle
// Add dependency
dependencies {
    implementation 'com.truex:TruexAdRenderer-Android:x.x.x'
}
kotlin
// Initialize TrueX renderer
val truexAdRenderer = TruexAdRenderer(context)

truexAdRenderer.init(vastConfigUrl) { event ->
    when (event.type) {
        TruexAdEvent.AD_COMPLETED -> resumeVideo()
        TruexAdEvent.AD_ERROR -> {
            Log.e("TrueX", "Error: ${event.errorMessage}")
            resumeVideo()
        }
        TruexAdEvent.NO_ADS_AVAILABLE -> resumeVideo()
    }
}

Repository

Access the official Android integration repository:

Migration Notice

Full Android integration documentation will be migrated to this site in a future update. For now, please refer to the GitHub repository linked above.

Integration documentation for Infillion Ads