-
Notifications
You must be signed in to change notification settings - Fork 57
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 #1854 from DataDog/jmoskovich/rum-2709/record-reso…
…urces RUM-2709: Implement resource capture during traversal
- Loading branch information
Showing
22 changed files
with
620 additions
and
216 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
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
24 changes: 24 additions & 0 deletions
24
...play/src/main/kotlin/com/datadog/android/sessionreplay/internal/async/DataQueueHandler.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,24 @@ | ||
/* | ||
* 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.async | ||
|
||
import com.datadog.android.sessionreplay.internal.recorder.SystemInformation | ||
import com.datadog.android.sessionreplay.model.MobileSegment | ||
|
||
internal interface DataQueueHandler { | ||
fun addResourceItem( | ||
identifier: String, | ||
applicationId: String, | ||
resourceData: ByteArray | ||
): ResourceRecordedDataQueueItem? | ||
fun addTouchEventItem( | ||
pointerInteractions: List<MobileSegment.MobileRecord> | ||
): TouchEventRecordedDataQueueItem? | ||
fun addSnapshotItem(systemInformation: SystemInformation): SnapshotRecordedDataQueueItem? | ||
fun tryToConsumeItems() | ||
fun clearAndStopProcessingQueue() | ||
} |
34 changes: 34 additions & 0 deletions
34
.../src/main/kotlin/com/datadog/android/sessionreplay/internal/async/NoopDataQueueHandler.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,34 @@ | ||
/* | ||
* 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.async | ||
|
||
import com.datadog.android.sessionreplay.internal.recorder.SystemInformation | ||
import com.datadog.android.sessionreplay.model.MobileSegment | ||
|
||
internal class NoopDataQueueHandler : DataQueueHandler { | ||
override fun addResourceItem( | ||
identifier: String, | ||
applicationId: String, | ||
resourceData: ByteArray | ||
): ResourceRecordedDataQueueItem? = null | ||
|
||
override fun addTouchEventItem( | ||
pointerInteractions: List<MobileSegment.MobileRecord> | ||
): TouchEventRecordedDataQueueItem? = null | ||
|
||
override fun addSnapshotItem( | ||
systemInformation: SystemInformation | ||
): SnapshotRecordedDataQueueItem? = null | ||
|
||
override fun tryToConsumeItems() { | ||
// noop | ||
} | ||
|
||
override fun clearAndStopProcessingQueue() { | ||
// noop | ||
} | ||
} |
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
Oops, something went wrong.