-
- All Implemented Interfaces:
-
android.app.Application.ActivityLifecycleCallbacks,com.datadog.android.rum.tracking.TrackingStrategy,com.datadog.android.rum.tracking.ViewTrackingStrategy
public final class MixedViewTrackingStrategy extends ActivityLifecycleTrackingStrategy implements 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.
-
-
Constructor Summary
Constructors Constructor Description MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate, ComponentPredicate<Fragment> supportFragmentComponentPredicate, ComponentPredicate<Fragment> defaultFragmentComponentPredicate)MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate, ComponentPredicate<Fragment> supportFragmentComponentPredicate)MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate)MixedViewTrackingStrategy(Boolean trackExtras)
-
Method Summary
Modifier and Type Method Description Unitregister(SdkCore sdkCore, Context context)This method will register the tracking strategy to the current Context and SDK instance. Unitunregister(Context context)This method will unregister the tracking strategy from the current Context. Booleanequals(Object other)IntegerhashCode()-
Methods inherited from class com.datadog.android.rum.tracking.MixedViewTrackingStrategy
onActivityCreated, onActivityDestroyed, onActivityPaused, onActivityResumed, onActivitySaveInstanceState, onActivityStarted, onActivityStopped -
Methods inherited from class com.datadog.android.rum.tracking.ActivityLifecycleTrackingStrategy
onActivityPostCreated, onActivityPostDestroyed, onActivityPostPaused, onActivityPostResumed, onActivityPostSaveInstanceState, onActivityPostStarted, onActivityPostStopped, onActivityPreCreated, onActivityPreDestroyed, onActivityPrePaused, onActivityPreResumed, onActivityPreSaveInstanceState, onActivityPreStarted, onActivityPreStopped -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
MixedViewTrackingStrategy
MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate, ComponentPredicate<Fragment> supportFragmentComponentPredicate, ComponentPredicate<Fragment> defaultFragmentComponentPredicate)
-
MixedViewTrackingStrategy
MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate, ComponentPredicate<Fragment> supportFragmentComponentPredicate)
-
MixedViewTrackingStrategy
MixedViewTrackingStrategy(Boolean trackExtras, ComponentPredicate<Activity> componentPredicate)
-
MixedViewTrackingStrategy
MixedViewTrackingStrategy(Boolean trackExtras)
-
-
Method Detail
-
register
Unit register(SdkCore sdkCore, Context context)
This method will register the tracking strategy to the current Context and SDK instance.
- Parameters:
sdkCore- as SdkCorecontext- as Context
-
unregister
Unit unregister(Context context)
This method will unregister the tracking strategy from the current Context.
- Parameters:
context- as Context
-
-
-
-