-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RUM-8652: add
customCallbacks
option to SessionReplayConfiguration …
…builder - have the option to override `getCurrentWindows` in order to improve cross-platform support - make `setCustomCallbacks`to be available only through internal proxy
- Loading branch information
Showing
11 changed files
with
124 additions
and
17 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
40 changes: 40 additions & 0 deletions
40
...n-replay/src/main/kotlin/com/datadog/android/sessionreplay/_SessionReplayInternalProxy.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,40 @@ | ||
/* | ||
* 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 | ||
|
||
import com.datadog.android.lint.InternalApi | ||
import com.datadog.android.sessionreplay.internal.recorder.SessionReplayCustomCallbacks | ||
|
||
/** | ||
* This class exposes internal methods that are used by other Datadog modules and cross platform | ||
* frameworks. It is not meant for public use. | ||
* | ||
* DO NOT USE this class or its methods if you are not working on the internals of the Datadog SDK | ||
* or one of the cross platform frameworks. | ||
* | ||
* Methods, members, and functionality of this class are subject to change without notice, as they | ||
* are not considered part of the public interface of the Datadog SDK. | ||
*/ | ||
@InternalApi | ||
@Suppress( | ||
"UndocumentedPublicClass", | ||
"UndocumentedPublicFunction", | ||
"UndocumentedPublicProperty", | ||
"ClassName", | ||
"ClassNaming", | ||
"VariableNaming" | ||
) | ||
class _SessionReplayInternalProxy { | ||
companion object { | ||
fun setCustomCallbacks( | ||
builder: SessionReplayConfiguration.Builder, | ||
customCallbacks: SessionReplayCustomCallbacks | ||
): SessionReplayConfiguration.Builder { | ||
return builder.setCustomCallbacks(customCallbacks) | ||
} | ||
} | ||
} |
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
13 changes: 13 additions & 0 deletions
13
...otlin/com/datadog/android/sessionreplay/internal/recorder/SessionReplayCustomCallbacks.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,13 @@ | ||
/* | ||
* 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 | ||
|
||
import android.view.Window | ||
|
||
data class SessionReplayCustomCallbacks( | ||
val getCurrentWindows: (() -> List<Window>)? = null | ||
) |
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