You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now there's little control over when screenshots or view hierarchies are captured. This can have a negative impact on the app performance itself (capturing many screenshots, contribution to quota) as well as the usability of the feature itself (no control when a screenshot should be taken or not).
markushi
changed the title
Add before-capture callbacks and debouncing for screenshots/view hierarchy
Add before-capture-callback and debouncing for screenshots/view hierarchy
Jun 28, 2023
Just a small explanation on what was done in Android.
We now have options.setBeforeScreenshotCaptureCallback and options.setBeforeViewHierarchyCaptureCallback
These callbacks have these parameters: event, hint and debounce (a flag which says the screenshot/vh should be debounced and ignored)
The callback can overwrite the debounce mechanism, forcing the screenshot/vh to be taken, or make it completely skipped.
here is the code for screenshots and view hierarchy
Right now there's little control over when screenshots or view hierarchies are captured. This can have a negative impact on the app performance itself (capturing many screenshots, contribution to quota) as well as the usability of the feature itself (no control when a screenshot should be taken or not).
Internal decision doc
Solution
BeforeCaptureCallback
Related Android PR: getsentry/sentry-java#2773
Tasks
before-capture-callback
and debouncing for screenshots/view hierarchy sentry-dart#1540The text was updated successfully, but these errors were encountered: