-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1684 from DataDog/jmoskovich/rum-1613/traversal-m…
…apper RUM-1613 Add mapper interface for traversing all children
- Loading branch information
Showing
7 changed files
with
115 additions
and
30 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
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
21 changes: 21 additions & 0 deletions
21
...n/com/datadog/android/sessionreplay/internal/recorder/mapper/TraverseAllChildrenMapper.kt
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,21 @@ | ||
/* | ||
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0. | ||
* This product includes software developed at Datadog (https://www.datadoghq.com/). | ||
* Copyright 2016-Present Datadog, Inc. | ||
*/ | ||
|
||
package com.datadog.android.sessionreplay.internal.recorder.mapper | ||
|
||
import android.view.View | ||
import com.datadog.android.sessionreplay.model.MobileSegment | ||
|
||
/** | ||
* Maps a View to a [List] of [MobileSegment.Wireframe]. | ||
* This is mainly used internally by the SDK but if you want to provide a different | ||
* Session Replay representation for a specific View type you can implement this on your end. | ||
* Note that mappers using this interface also traverse all the children of the view | ||
* instead of just the immediate one. This means that you will need to have mappers | ||
* for all child views of the view the mapper is traversing. | ||
*/ | ||
interface TraverseAllChildrenMapper<in T : View, out S : MobileSegment.Wireframe> : | ||
WireframeMapper<T, S> |
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