Package io.sentry

Class SentryReplayOptions

java.lang.Object
io.sentry.SentryReplayOptions

public final class SentryReplayOptions extends Object
  • Field Details

  • Constructor Details

    • SentryReplayOptions

      public SentryReplayOptions(boolean empty)
    • SentryReplayOptions

      public SentryReplayOptions(@Nullable @Nullable Double sessionSampleRate, @Nullable @Nullable Double onErrorSampleRate)
  • Method Details

    • getOnErrorSampleRate

      @Nullable public @Nullable Double getOnErrorSampleRate()
    • isSessionReplayEnabled

      public boolean isSessionReplayEnabled()
    • setOnErrorSampleRate

      public void setOnErrorSampleRate(@Nullable @Nullable Double onErrorSampleRate)
    • getSessionSampleRate

      @Nullable public @Nullable Double getSessionSampleRate()
    • isSessionReplayForErrorsEnabled

      public boolean isSessionReplayForErrorsEnabled()
    • setSessionSampleRate

      public void setSessionSampleRate(@Nullable @Nullable Double sessionSampleRate)
    • setMaskAllText

      public void setMaskAllText(boolean maskAllText)
      Mask all text content. Draws a rectangle of text bounds with text color on top. By default only views extending TextView are masked.

      Default is enabled.

    • setMaskAllImages

      public void setMaskAllImages(boolean maskAllImages)
      Mask all image content. Draws a rectangle of image bounds with image's dominant color on top. By default only views extending ImageView with BitmapDrawable or custom Drawable type are masked. ColorDrawable, InsetDrawable, VectorDrawable are all considered non-PII, as they come from the apk.

      Default is enabled.

    • getMaskViewClasses

      @NotNull public @NotNull Set<String> getMaskViewClasses()
    • addMaskViewClass

      public void addMaskViewClass(@NotNull @NotNull String className)
    • getUnmaskViewClasses

      @NotNull public @NotNull Set<String> getUnmaskViewClasses()
    • addUnmaskViewClass

      public void addUnmaskViewClass(@NotNull @NotNull String className)
    • getQuality

      @Internal @NotNull public @NotNull SentryReplayOptions.SentryReplayQuality getQuality()
    • setQuality

      public void setQuality(@NotNull @NotNull SentryReplayOptions.SentryReplayQuality quality)
    • getFrameRate

      @Internal public int getFrameRate()
    • getErrorReplayDuration

      @Internal public long getErrorReplayDuration()
    • getSessionSegmentDuration

      @Internal public long getSessionSegmentDuration()
    • getSessionDuration

      @Internal public long getSessionDuration()
    • setMaskViewContainerClass

      @Internal public void setMaskViewContainerClass(@NotNull @NotNull String containerClass)
    • setUnmaskViewContainerClass

      @Internal public void setUnmaskViewContainerClass(@NotNull @NotNull String containerClass)
    • getMaskViewContainerClass

      @Internal @Nullable public @Nullable String getMaskViewContainerClass()
    • getUnmaskViewContainerClass

      @Internal @Nullable public @Nullable String getUnmaskViewContainerClass()