To include the Datadog integration for Android TV in your project, add the following to your application's build.gradle.kts file.
dependencies {
implementation("com.datadoghq:dd-sdk-android-rum:<latest-version>")
implementation("com.datadoghq:dd-sdk-android-tv:<latest-version>")
}- Setup RUM monitoring, see the dedicated Datadog Android RUM Collection documentation to learn how.
- To receive more information about RUM action events for Android TV applications, provide the
LeanbackViewAttributesProviderwhen configuring RUM.
val rumConfiguration = RumConfiguration.Builder(applicationId)
...
.trackInteractions(touchTargetExtraAttributesProviders = arrayOf(LeanbackViewAttributesProvider()))
.build() RumConfiguration rumConfiguration = new RumConfiguration.Builder(applicationId)
...
.trackInteractions(new ViewAttributesProvider[]{new LeanbackViewAttributesProvider()})
.build();Pull requests are welcome. Open an issue first to discuss what you would like to change. For more information, see our Contributing Guide.