Package 

Interface SentryAndroidOptions.BeforeCaptureCallback

    • Method Summary

      Modifier and Type Method Description
      abstract boolean execute(@NotNull() SentryEvent event, @NotNull() Hint hint, boolean debounce) A callback which can be used to suppress capturing of screenshots or view hierarchies.
      • Methods inherited from class java.lang.Object

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

      • execute

         abstract boolean execute(@NotNull() SentryEvent event, @NotNull() Hint hint, boolean debounce)

        A callback which can be used to suppress capturing of screenshots or view hierarchies. Thisgives more fine grained control when capturing should be performed. E.g. - only capturescreenshots for fatal events - overrule any debouncing for important events As capturing can be resource-intensive, the debounce parameter should be respected ifpossible.

         if (debounce) {
           return false;
         } else {
           // check event and hint
         }
        
        Parameters:
        event - the event
        hint - the hints
        debounce - true if capturing is marked for being debounced