ActivityLifecycleTrackingStrategy - DataDog/dd-sdk-android GitHub Wiki

abstract class ActivityLifecycleTrackingStrategy : Application.ActivityLifecycleCallbacks, TrackingStrategy

The ActivityLifecycleTrackingStrategy as an Application.ActivityLifecycleCallbacks based implementation of the TrackingStrategy.

Inheritors

ActivityViewTrackingStrategy
FragmentViewTrackingStrategy
MixedViewTrackingStrategy
NavigationViewTrackingStrategy

Constructors

ActivityLifecycleTrackingStrategy

constructor()

Functions

onActivityCreated

@MainThread

open override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)

onActivityDestroyed

@MainThread

open override fun onActivityDestroyed(activity: Activity)

onActivityPaused

@MainThread

open override fun onActivityPaused(activity: Activity)

onActivityResumed

@MainThread

open override fun onActivityResumed(activity: Activity)

onActivitySaveInstanceState

@MainThread

open override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle)

onActivityStarted

@MainThread

open override fun onActivityStarted(activity: Activity)

onActivityStopped

@MainThread

open override fun onActivityStopped(activity: Activity)

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