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
open override fun onActivityCreated(activity: Activity, savedInstanceState: Bundle?)
onActivityDestroyed
open override fun onActivityDestroyed(activity: Activity)
onActivityPaused
open override fun onActivityPaused(activity: Activity)
onActivityResumed
open override fun onActivityResumed(activity: Activity)
onActivitySaveInstanceState
open override fun onActivitySaveInstanceState(activity: Activity, outState: Bundle)
onActivityStarted
open override fun onActivityStarted(activity: Activity)
onActivityStopped
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 |