Skip to content

MixedViewTrackingStrategy

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

class MixedViewTrackingStrategy : ActivityLifecycleTrackingStrategy, ViewTrackingStrategy

A ViewTrackingStrategy that will track Activity and Fragment as RUM View Events. This strategy will apply both the ActivityViewTrackingStrategy and the FragmentViewTrackingStrategy and will remain for you to decide whether to exclude some activities or fragments from tracking by providing an implementation for the right predicate in the constructor arguments.

Parameters

activityViewTrackingStrategy Strategy to track Activities.
fragmentViewTrackingStrategy Strategy to track Fragments.

See also

ActivityViewTrackingStrategy
FragmentViewTrackingStrategy

Constructors

MixedViewTrackingStrategy

@JvmOverloads

constructor(trackExtras: Boolean, componentPredicate: ComponentPredicate<Activity> = AcceptAllActivities(), supportFragmentComponentPredicate: ComponentPredicate<Fragment> = AcceptAllSupportFragments(), defaultFragmentComponentPredicate: ComponentPredicate<Fragment> = AcceptAllDefaultFragment())

Functions

equals

open operator override fun equals(other: Any?): Boolean

hashCode

open override fun hashCode(): Int

register

open override fun register(sdkCore: SdkCore, context: Context)

This method will register the tracking strategy to the current Context and SDK instance.

Parameters
sdkCore as SdkCore
context as Context

unregister

open override fun unregister(context: Context?)

This method will unregister the tracking strategy from the current Context.

Parameters
context as Context
Clone this wiki locally