FragmentViewTrackingStrategy - DataDog/dd-sdk-android GitHub Wiki
class FragmentViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy
A ViewTrackingStrategy that will track Fragments as RUM Views.
Each fragment's lifecycle will be monitored to start and stop RUM Views when relevant.
Note: This version of the FragmentViewTrackingStrategy is compatible with the AndroidX Compat Library.
Constructors
FragmentViewTrackingStrategy
constructor(trackArguments: Boolean, supportFragmentComponentPredicate: ComponentPredicate<Fragment> = AcceptAllSupportFragments(), defaultFragmentComponentPredicate: ComponentPredicate<Fragment> = AcceptAllDefaultFragment())
Creates instance of FragmentViewTrackingStrategy.
Parameters
trackArguments | whether we track Fragment arguments |
supportFragmentComponentPredicate | to accept the Androidx Fragments that will be taken into account as valid RUM View events. |
defaultFragmentComponentPredicate | to accept the default Android Fragments that will be taken into account as valid RUM View events. |
Functions
equals
open operator override fun equals(other: Any?): Boolean
hashCode
onActivityStarted
open override fun onActivityStarted(activity: Activity)
onActivityStopped
open override fun onActivityStopped(activity: Activity)