Package 

Interface LifecycleCallback

  • All Implemented Interfaces:
    android.app.Application.ActivityLifecycleCallbacks

    
    public interface LifecycleCallback
     implements Application.ActivityLifecycleCallbacks
                        

    The Session Replay related LifecycleCallback interface. It will be registered as Application.ActivityLifecycleCallbacks and will decide when the activity can be recorded or not based on the onActivityResume, onActivityPause callbacks. This is only meant for internal usage and later will change visibility from public to internal.

    • Method Summary

      Modifier and Type Method Description
      abstract Unit register(Application appContext) Registers the callback on the Application lifecycle.
      abstract Unit unregisterAndStopRecorders(Application appContext) Unregister the callback and stops any related recorders that were previously started.
      • Methods inherited from class com.datadog.android.sessionreplay.LifecycleCallback

        onActivityCreated, onActivityDestroyed, onActivityPaused, onActivityPostCreated, onActivityPostDestroyed, onActivityPostPaused, onActivityPostResumed, onActivityPostSaveInstanceState, onActivityPostStarted, onActivityPostStopped, onActivityPreCreated, onActivityPreDestroyed, onActivityPrePaused, onActivityPreResumed, onActivityPreSaveInstanceState, onActivityPreStarted, onActivityPreStopped, onActivityResumed, onActivitySaveInstanceState, onActivityStarted, onActivityStopped
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait