Package 

Object SessionReplay


  • 
    public class SessionReplay
    
                        

    An entry point to Datadog Session Replay feature.

    • Method Summary

      Modifier and Type Method Description
      final static Unit enable(SessionReplayConfiguration sessionReplayConfiguration, SdkCore sdkCore) Enables a SessionReplay feature based on the configuration provided.
      final static Unit enable(SessionReplayConfiguration sessionReplayConfiguration) Enables a SessionReplay feature based on the configuration provided.
      final Unit startRecording(SdkCore sdkCore) Start recording session replay data.
      final Unit stopRecording(SdkCore sdkCore) Stop recording session replay data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • enable

        @JvmOverloads() final static Unit enable(SessionReplayConfiguration sessionReplayConfiguration, SdkCore sdkCore)

        Enables a SessionReplay feature based on the configuration provided. It is recommended to invoke this function as early as possible in the app's lifecycle, ideally within the Application#onCreate callback, to ensure proper initialization.

        Parameters:
        sessionReplayConfiguration - Configuration to use for the feature.
        sdkCore - SDK instance to register feature in.
      • enable

        @JvmOverloads() final static Unit enable(SessionReplayConfiguration sessionReplayConfiguration)

        Enables a SessionReplay feature based on the configuration provided. It is recommended to invoke this function as early as possible in the app's lifecycle, ideally within the Application#onCreate callback, to ensure proper initialization.

        Parameters:
        sessionReplayConfiguration - Configuration to use for the feature.
      • startRecording

         final Unit startRecording(SdkCore sdkCore)

        Start recording session replay data.

        Parameters:
        sdkCore - SDK instance to get the feature from.
      • stopRecording

         final Unit stopRecording(SdkCore sdkCore)

        Stop recording session replay data.

        Parameters:
        sdkCore - SDK instance to get the feature from.