Package io.sentry

Class Hint

java.lang.Object
io.sentry.Hint

public final class Hint extends Object
  • Constructor Details

    • Hint

      public Hint()
  • Method Details

    • withAttachment

      @NotNull public static @NotNull Hint withAttachment(@Nullable @Nullable Attachment attachment)
    • withAttachments

      @NotNull public static @NotNull Hint withAttachments(@Nullable @Nullable List<Attachment> attachments)
    • set

      public void set(@NotNull @NotNull String name, @Nullable @Nullable Object hint)
    • get

      @Nullable public @Nullable Object get(@NotNull @NotNull String name)
    • getAs

      @Nullable public <T> T getAs(@NotNull @NotNull String name, @NotNull @NotNull Class<T> clazz)
    • remove

      public void remove(@NotNull @NotNull String name)
    • addAttachment

      public void addAttachment(@Nullable @Nullable Attachment attachment)
    • addAttachments

      public void addAttachments(@Nullable @Nullable List<Attachment> attachments)
    • getAttachments

      @NotNull public @NotNull List<Attachment> getAttachments()
    • replaceAttachments

      public void replaceAttachments(@Nullable @Nullable List<Attachment> attachments)
    • clearAttachments

      public void clearAttachments()
    • clear

      @Internal public void clear()
      Clears all attributes added via set(String, Object) Note: SDK internal attributes are being kept. This is useful to avoid leaking any objects (e.g. Android activities) being referenced.
    • setScreenshot

      public void setScreenshot(@Nullable @Nullable Attachment screenshot)
    • getScreenshot

      @Nullable public @Nullable Attachment getScreenshot()
    • setViewHierarchy

      public void setViewHierarchy(@Nullable @Nullable Attachment viewHierarchy)
    • getViewHierarchy

      @Nullable public @Nullable Attachment getViewHierarchy()
    • setThreadDump

      public void setThreadDump(@Nullable @Nullable Attachment threadDump)
    • getThreadDump

      @Nullable public @Nullable Attachment getThreadDump()
    • getReplayRecording

      @Nullable public @Nullable ReplayRecording getReplayRecording()
    • setReplayRecording

      public void setReplayRecording(@Nullable @Nullable ReplayRecording replayRecording)