ViewAttributesProvider - DataDog/dd-sdk-android GitHub Wiki

interface ViewAttributesProvider

Provides the extra attributes for the as Map<String,Any?>.

Functions

extractAttributes

abstract fun extractAttributes(view: View, attributes: MutableMap<String, Any?>)

Add extra attributes to the default attributes Map.

Parameters
view the View.
attributes the default attributes Map. Usually this contains some default attributes which are determined and added by the SDK. Please make sure you do not override any of these reserved attributes.
See also
RumAttributes.TAG_TARGET_RESOURCE_ID
RumAttributes.TAG_TARGET_CLASS_NAME