-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
28 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Feature — Layout Snapshots | ||
|
||
Layout snapshots are collected for every click event (with throttling). These are lightweight snapshots of the layout | ||
hierarchy which provide context on the UI which was visible to the user, without taking screenshots which are | ||
expensive to take and store. | ||
|
||
| Screenshot | Layout snapshot | | ||
|--------------------------------------------------------|--------------------------------------------------| | ||
| ) |  | | ||
|
||
## How it works | ||
|
||
Once a [gesture is detected](feature_gesture_tracking.md), the layout is parsed by going over every element | ||
(view or compose) and recording its dimensions and size information. The result is converted into an SVG and tracked | ||
as an [attachment](../../api/sdk/README.md#attachments). | ||
|
||
For view-based systems, it is simply done by traversing the entire layout once. While for Compose, this | ||
is done by traversing the semantics tree | ||
using [SemanticsOwner.getAllSemanticsNodes](https://developer.android.com/reference/kotlin/androidx/compose/ui/semantics/package-summary#(androidx.compose.ui.semantics.SemanticsOwner).getAllSemanticsNodes(kotlin.Boolean,kotlin.Boolean)). |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.