Skip to content

ActivityViewTrackingStrategy

Xavier F. Gouchet edited this page Sep 4, 2024 · 1 revision

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

@JvmOverloads

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

open override fun hashCode(): Int

onActivityResumed

@MainThread

open override fun onActivityResumed(activity: Activity)

onActivityStopped

@MainThread

open override fun onActivityStopped(activity: Activity)

Clone this wiki locally