-
public 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. -
-
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 eventhint
- the hintsdebounce
- true if capturing is marked for being debounced
-
-
-
-