-
- 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.ActivityLifecycleCallbacksand will decide when the activity can be recorded or not based on theonActivityResume,onActivityPausecallbacks. This is only meant for internal usage and later will change visibility from public to internal.
-
-
Method Summary
Modifier and Type Method Description abstract Unitregister(Application appContext)Registers the callback on the Application lifecycle. abstract UnitunregisterAndStopRecorders(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
-
-
Method Detail
-
register
abstract Unit register(Application appContext)
Registers the callback on the Application lifecycle.
-
unregisterAndStopRecorders
abstract Unit unregisterAndStopRecorders(Application appContext)
Unregister the callback and stops any related recorders that were previously started.
-
-
-
-