Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Datadog Integration for Android TV applications

Getting Started

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>")
}

Initial Setup

  1. Setup RUM monitoring, see the dedicated Datadog Android RUM Collection documentation to learn how.
  2. To receive more information about RUM action events for Android TV applications, provide the LeanbackViewAttributesProvider when configuring RUM.

Kotlin Example

    val rumConfiguration = RumConfiguration.Builder(applicationId)
        ...
        .trackInteractions(touchTargetExtraAttributesProviders = arrayOf(LeanbackViewAttributesProvider()))
        .build()

Java Example

    RumConfiguration rumConfiguration = new RumConfiguration.Builder(applicationId)
        ...
        .trackInteractions(new ViewAttributesProvider[]{new LeanbackViewAttributesProvider()})
        .build();

Contributing

Pull requests are welcome. Open an issue first to discuss what you would like to change. For more information, see our Contributing Guide.

License

Apache License, v2.0