ActivityViewTrackingStrategy - DataDog/dd-sdk-android GitHub Wiki
class ActivityViewTrackingStrategy@JvmOverloadsconstructor(trackExtras: Boolean, componentPredicate: ComponentPredicate<Activity> = AcceptAllActivities()) : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy
A ViewTrackingStrategy that will track Activity as RUM Views.
Each activity's lifecycle will be monitored to start and stop RUM Views when relevant.
Parameters
trackExtras | whether to track the Activity's Intent information (extra attributes, action, data URI) |
componentPredicate | to accept the Activities that will be taken into account as valid RUM View events. |
Constructors
ActivityViewTrackingStrategy
constructor(trackExtras: Boolean, componentPredicate: ComponentPredicate<Activity> = AcceptAllActivities())
Parameters
trackExtras | whether to track the Activity's Intent information (extra attributes, action, data URI) |
componentPredicate | to accept the Activities that will be taken into account as valid RUM View events. |
Functions
equals
open operator override fun equals(other: Any?): Boolean
hashCode
onActivityResumed
open override fun onActivityResumed(activity: Activity)
onActivityStopped
open override fun onActivityStopped(activity: Activity)